LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   establishing user accounts & folder permissions (https://www.linuxquestions.org/questions/linux-software-2/establishing-user-accounts-and-folder-permissions-260071/)

mingarz 11-28-2004 04:20 AM

establishing user accounts & folder permissions
 
hi im trying to create user accounts for 5 departments... and with in these 5 departments there are 3 users,

each department has its own folder,
i want to allow the 3 users in the department to access their own department folder but restrict them to accessing other department folders,

the 5 departments are Sales, Manufacturing, Personnel, Accounting and General Office

how would i go about this?
and how can i save all this on a floppy?
thanks if u can help me...

mingarz 11-28-2004 04:24 AM

also do i create the departments as groups?

bobbens 11-28-2004 06:17 AM

Yes make groups of the departments, then you have to give ownership to each directory to a certain group with chown [owner.group] $FILE . Then you do chmod to give certain rights to the user: chmod xxx $FILE. It's a bit hard to explain so just search google for chmod and chown and youll find a ton of tutorials.

[EDIT] Do this as root, and about the floppy. This information is stored in the file or directory thats modified, so there is no need to store it as a floppy.

mingarz 11-28-2004 08:22 PM

Quote:

Originally posted by bobbens
Yes make groups of the departments, then you have to give ownership to each directory to a certain group with chown [owner.group] $FILE . Then you do chmod to give certain rights to the user: chmod xxx $FILE. It's a bit hard to explain so just search google for chmod and chown and youll find a ton of tutorials.

[EDIT] Do this as root, and about the floppy. This information is stored in the file or directory thats modified, so there is no need to store it as a floppy.

i need the accounts and groups on floppy so do you know which contents to copy from the root user?
cauz im using slackware and not so sure about the file structure and all...

btmiller 11-28-2004 09:09 PM

Why do you need the info on a floppy exactly? In any case the password and groups databases are stored in /etc/passwd, /etc/shadow, and /etc/group. If you need to apply these permissions accross multiple machines, you're better served going with a distributed user database such as NIS or LDAP over copying files around.

mingarz 11-30-2004 02:37 AM

okay i have turned to using red hat now...
im using the GUI to create my structure.....

heres how it looks like......


|Microchips (main directory)

|------------>Departments
|------------------------------>Sales
|------------------------------>Manufacturing
|------------------------------>Personnel
|------------------------------>Accounting
|------------------------------>General Office

|------------>Software
|------------------------------>Spreadsheets
|------------------------------>Word Processing
|------------------------------>Client Database
|------------------------------>Accounting Package


as mentioned there are 3 users in each department....

i was wondering how i would set the permissions to restrict the users of each department from accessing certain software?

and should this be done on the harddrive 1st and then copied to the floppy disk after im finished?

bobbens 12-07-2004 06:54 AM

chown
chmod


All times are GMT -5. The time now is 03:21 PM.