• Quick note - the problem with Youtube videos not embedding on the forum appears to have been fixed, thanks to ZiprHead. If you do still see problems let me know.

Setting file rights on Linux

Diamond

Illuminator
Joined
Jun 2, 2003
Messages
4,729
I need to understand how to set rights on files and directories on Linux, beyond just setting CHMOD to 777 and hoping for the best.

My experience with users, groups, file and directory rights derives from Netware, NDS and Windows 2000, and I've realised that I don't know how to setup grouprights for directories on my CentOS-based server

Does anyone know of any straightforward guides to Linux security to help me bridge the gap?

Thanks :boggled:

Edit: sorry I put this on the wrong forum. Can some kind admin please move it?
 
Dumb questions:

Can a group have permissions set on a directory and

Can multiple groups have different permissions on the same directory?
 
I don't have to bother much with permissions and such so I hope I don't mislead you.

A directory can have permissions set same as a file. The files in the folder may have permissions that override the directory permissions.

No, I don't believe that more than one group can be assigned a directory but a single user can belong to more than one group. If you have a directory with a project that you only want certain people accessing you can create a group for the project. Assign that directory to that group and add each user to that group.
 
Can multiple groups have different permissions on the same directory?
No, not using the traditional UNIX permission model. If you need more flexible permissions, Linux does support access control listWPs (ACL) for file systems that support it, but it's usually not turned on by default.

I'll just dump a few links, in case you are interested:
http://en.opensuse.org/SDB:POSIX_Access_Control_List_(ACL)_Support
http://www.vanemery.com/Linux/ACL/linux-acl.html
http://beranger.org/index.php?article=1213
http://www.enterprisenetworkingplanet.com/netsysm/article.php/10954_3077971_1
 
No, not using the traditional UNIX permission model. If you need more flexible permissions, Linux does support access control listWPs (ACL) for file systems that support it, but it's usually not turned on by default.

I'll just dump a few links, in case you are interested:
http://en.opensuse.org/SDB:POSIX_Access_Control_List_(ACL)_Support
http://www.vanemery.com/Linux/ACL/linux-acl.html
http://beranger.org/index.php?article=1213
http://www.enterprisenetworkingplanet.com/netsysm/article.php/10954_3077971_1

That IS helpful. Thanks
 
Install Windows.


Sorry, I couldn't resist. :D
Where everyone ignores file rights, and many programs won't run unless you are an administrator or know how to locate and fix permissions. XP Home hides even the existence of file permissions from the user.
 

Back
Top Bottom