RE: [SLUG] shares on samba

From: Stephen Ames (sames@managedwebservices.com)
Date: Wed Jun 16 2004 - 18:43:20 EDT


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 archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:46:51 EDT