For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > March 2005 > Simple? Samba configuration request.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Simple? Samba configuration request.
SM Ryan

2005-03-17, 3:57 am

On a unix (Mac OS X) when a Windows share is mounted, it's given permissions
u=rwx,go-rwx. Does anybody know a simple encantation for the samba configuration
file to mount a share u=rwx,go=rx and also ugo=rwx ?

Follow ups set to comp.unix.programmer.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
Title does not dictate behaviour.
Bill Marcum

2005-03-17, 3:57 am

On Thu, 17 Mar 2005 00:30:02 -0000, SM Ryan
<wyrmwif@tango-sierra-oscar-foxtrot-tango.fake.org> wrote:
> On a unix (Mac OS X) when a Windows share is mounted, it's given
> permissions u=rwx,go-rwx. Does anybody know a simple encantation for
> the samba configuration file to mount a share u=rwx,go=rx and also
> ugo=rwx ?
>

The samba configuration file controls how shares from your box are
mounted on Windows boxes. /etc/fstab controls how Windows shares are
mounted on the *ix box.
SM Ryan

2005-03-17, 3:57 am

Bill Marcum <bmarcum@iglou.com.urgent> wrote:

# The samba configuration file controls how shares from your box are
# mounted on Windows boxes. /etc/fstab controls how Windows shares are
# mounted on the *ix box.

Aha.

So it's doing something along the lines of

mount_smbfs ... -u 502 -d 755 -f 644 ... /mountpoint

It really helps once you're clued in where to look.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
I hope it feels so good to be right. There's nothing more
exhilirating pointing out the shortcomings of others, is there?
Martin Smith

2005-03-17, 3:59 pm

On Thu, 17 Mar 2005 00:30:02 -0000,
SM Ryan <wyrmwif@tango-sierra-oscar-foxtrot-tango.fake.org> wrote:
> On a unix (Mac OS X) when a Windows share is mounted, it's given permissions
> u=rwx,go-rwx. Does anybody know a simple encantation for the

samba configuration
> file to mount a share u=rwx,go=rx and also ugo=rwx ?
>
> Follow ups set to comp.unix.programmer.


if the share is actually on a windows machine there is nothing you
can do about it as it does not understand permissions the way we do.
However if the share is being dished out from the mac, then chmod....

--
Martin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com