Re: File/folder access HELP!
From: Noi (noi_at_siam.com)
Date: 01/17/04
- Next message: Ulf Doz: "Re: Audio CD Burning"
- Previous message: ynotssor: "Re: Stopping all invalid domains from resolving to server IP"
- In reply to: Andrew M. Gray: "File/folder access HELP!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ------------------------------------------------------
- Next message: Ulf Doz: "Re: Audio CD Burning"
- Previous message: ynotssor: "Re: Stopping all invalid domains from resolving to server IP"
- In reply to: Andrew M. Gray: "File/folder access HELP!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|