PDA

View Full Version : Is it possible to set up user classes?


wildscribe
14th September 2004, 06:06 PM
Hi Folks,

This is a newbie question.

I was wondering if this can be done, and is so, how would I set the permissions.

I am building a file server using Fedora Core 2 and need to set up three different classes
of users to get access to different directories.

For example:

Standard user would have access to BasicDirectory

PowerUser would have access to BasicDirectory + StandardDirectory

SupremePowerUser would have access to BasicDirectory + StandardDirectory + SupremeDirectory

I suppose I could use become root and use "chown" to manually set up user privileges, like:

"root# chown meuser -r StandardDirectory"

but I was wondering if there was a better, easiler way.

- - - Wild

crackers
15th September 2004, 04:55 AM
In Unix parlance, these are called "groups." What you do is create (through System Settings -> Users and Groups) your three different groups. Then you assign users to the specific groups you want.

For example, "stduser" will contain everyone from all three groups (*nix already has a "users" group, so this one will be quite sufficient). Then "pwruser" will contain the subset that contains members from the last two sets. And, finally, "spuser" will only contain those folks.

For further reading, look into the following: chmod chown umask

wildscribe
17th September 2004, 05:24 PM

Excellent advice! This does what I need it to do.

Thank you!!

- - - Wild


In Unix parlance, these are called "groups." What you do is create (through System Settings -> Users and Groups) your three different groups. Then you assign users to the specific groups you want.

For example, "stduser" will contain everyone from all three groups (*nix already has a "users" group, so this one will be quite sufficient). Then "pwruser" will contain the subset that contains members from the last two sets. And, finally, "spuser" will only contain those folks.

For further reading, look into the following: chmod chown umask