Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user/group rights

Status
Not open for further replies.

Monsores

Technical User
Mar 4, 2002
39
BR
Hi.
I have 10 users (I will call it from u01 to u10) and a folder called 'data', and I would like to set the following permissions to this folder:
u01, u02, u03 -> read and write
u04, u05, u06 -> read only
u07, u08, u09 and u10 -> neither read nor write

I´m trying to replace a Netware server for a Linux one, and I can easily do this configuration on Netware, but I don´t know how to do this on Linux.

Thanks.
 
MadMaxRj,

Do the following:

chmod 666 u01 u02 u03
chmod 444 u04 u05 u06
chmod 000 u07 u08 u09 u10

JDL
 
JDL,
Thanks for your response, but I think I made a little confusion with my first message.
u01 till u10 are my usernames. The permissions I wrote are what they must have with the '/data' folder.

Thanks
 
MadMaxRj,

Sorry about that. I may have jumped the gun a little.

The only way I can see this happening is having 2separate directories for each group of users. Even if you make them a member of separate groups in /etc/group, you can only control the permissions on that group. It's simple enough not to give any perimissions to the last group. It's also simple enough to give only rw permissions to the first group or read only to the second group. But having the latter 2 to have different permissions at the same time to a directory is nearly impossible, or at least I haven't heard of since permissions are set on owner-group-others. The other way of setting it is in /etc/fstab. Do a man on fstab. But that's on filesystem level all users are affected the same way by doing it this way. Good luck. JDL2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top