RE: [SLUG] shares on samba

From: Larry Brown (larry.brown@dimensionnetworks.com)
Date: Wed Jun 16 2004 - 20:49:52 EDT


There is a directive in the smb.conf file that will force the
permissions in the directory being shared. I'm not sure what it is off
the top of my head but it is in the description for the share itself at
the bottom of the conf file. I believe they have some examples that use
it.

Larry

On Wed, 2004-06-16 at 18:43, Stephen Ames wrote:
> Does anybody know how to get this done in scp? I have a web server where
> different users copy files with scp from their MS XP machines to the web
> server. The server assigns the files -rw-r--r-- permissions and makes the
> user the owner as well as the group. (make sense?) So when another user
> comes along, they can't manipulate the files and I have to chmod and chgroup
> it to fix the ownership and the permissions. This only lasts so long until
> more changes are made. Ideally I would like to set permissions on the
> directory and have any files copied into it assume the permissions of the
> directory instead of retaining the permissions of the user.
>
> I hope I explained that well.
>
> Thanks,
>
> Steve
>
> -----Original Message-----
> From: slug@nks.net [mailto:slug@nks.net] On Behalf Of Backward Thinker
> Sent: Tuesday, June 01, 2004 12:57 PM
> To: slug@nks.net
> Subject: Re: [SLUG] shares on samba
>
>
>
> > [commons]
> > comment = common files directory
> > path = /mnt/commons
> > create mode = 777
> > directory mode = 777
> > browseable = no
> > writeable = yes
>
> create mode and directory mode are really just masks that allow you to
> specifically unset bits (man smb.conf for more details). Sounds like what
> you want are force create mode and force directory mode, which will force
> those bits on rather than allow them to be on (OR instead of AND).
>
> ~ Daniel
>
>
>
>
>
> ________________________________________________________________
> The best thing to hit the Internet in years - Juno SpeedBand! Surf the Web
> up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up
> today!
> -----------------------------------------------------------------------
> This list is provided as an unmoderated internet service by Networked
> Knowledge Systems (NKS). Views and opinions expressed in messages posted
> are those of the author and do not necessarily reflect the official policy
> or position of NKS or any of its employees.
>
>
> -----------------------------------------------------------------------
> This list is provided as an unmoderated internet service by Networked
> Knowledge Systems (NKS). Views and opinions expressed in messages
> posted are those of the author and do not necessarily reflect the
> official policy or position of NKS or any of its employees.
>

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:47:43 EDT