Re: File/folder access HELP!

From: Noi (noi_at_siam.com)
Date: 01/17/04


Date: Sat, 17 Jan 2004 09:08:31 GMT

On Fri, 16 Jan 2004 15:13:27 -0900, Andrew M. Gray thoughtfully wrote:

> Hey y'all,
>
> I am in an office that has a server running Redhat, Samba, and MySQL.
> Our student that knows all this stuff has been gone awhile, so I've been
> trying to learn how to run the server myself. Question, and I can't
> figure this out, so bear with me!
>
> There are multiple users in different groups that use this server. One
> group in particular has a problem with file/folder access. If one of the
> three of them creates a new file or folder in their server folder, then
> the other two have only read-only access to that file/folder. I have
> (several times now) changed the permissions using CHMOD, and that solves
> the problem, but how can I change it so anything new they create can be
> read *and* modified by the others in the group. Our group in our office
> has no trouble with this, it's only the other group accross the hall...
> I can't figure it out, and need some advice.
>
> Also, try to dumb it down for me please. I know a little Unix and am
> learning Linux, but I'm a newbie, so please, make it simple.
>
> Thanks,
> Andrew

You could chmod that group's folder/files (recursive)
giving users and group members rwx permission on folder
and contained files in the folder but no writes for others.

root$ chmod ug+rwx,o-wx -R /groupfolder

If your using Samba then you can add the create mask = 0765
  for that group's folder in /etc/samba/smb.conf
  change folder something like :

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred ; I think you could use valid users = %G
; public = no
; writable = yes
; printable = no
; create mask = 0765

then
root$ service smb restart

-- 
------------------------------------------------------
Linux registered user #302812
using Fedora Core 1 kernel 2.4.22-1.2115.nptl
------------------------------------------------------


Relevant Pages

  • Re: SAMBA deletes folders in my home folder
    ... I use SAMBA to share printers between my WinXP ... SAMBA for each WinXP user, when SAMBA server appears in the Wokgroup ... see all printers shared and also a folder which acts as home folder for ...
    (Debian-User)
  • Re: Email enable doc lib
    ... navigate to the public folder and send some posts with attachments to the ... Microsoft CSS Online Newsgroup Support ... I have disabled forms base Athentication from the default V.Smtp server ...
    (microsoft.public.windows.server.sbs)
  • Re: SAMBA deletes folders in my home folder
    ... I use SAMBA to share printers between my WinXP machines and it works fine. ... As you know, when you careate an account in SAMBA for each WinXP user, when SAMBA server appears in the Wokgroup computers in WinXP machines, you can click on SAMBA server and you will see all printers shared and also a folder which acts as home folder for each WinXP user. ...
    (Debian-User)
  • Re: Newbie with a smallbiz2000 installation, check my config?
    ... > Windows creates a profile path under Documents & Settings. ... > a folder with that name already exists (maybe a local user with the ... > server, open the properties for this folder, and ensure that you have ... > you redirect key folders from a user's profile to a location on your ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: Network shares cannot connect
    ... User Name: SERVER$ ... Regarding the shares accessing problem, I suggest you try following steps ... let's focus on the Users Shared Folder first. ... To check this permission, please click the Advanced button, select ...
    (microsoft.public.windows.server.sbs)