LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   multi users on the same home directory (https://www.linuxquestions.org/questions/linux-general-1/multi-users-on-the-same-home-directory-89476/)

rpinatel 09-05-2003 01:41 AM

multi users on the same home directory
 
Hi,
I use the redhat7.3 linux OS.
I would like to know if it is possible to have different users with the same home directory?

joseph 09-05-2003 01:45 AM

did you mean you have a lot of users in your /home?
if yes the answer is yes too.
you can try this :
adduser xxx
adduser yyy
adduser zzz
and then go to your /home and see its contains.

rpinatel 09-05-2003 01:56 AM

Thank you for your answer.
I'm sorry but this is not the question. I want multiple users to have the same HOME ($HOME) directory.?
For example, I create 3 users and all log under the same directory.
Is it clear? thanks.

Looking_Lost 09-05-2003 04:01 AM

Yes if the users are in the same group as the owner and the directory has the appropriate permissions for the group eg. to use the directory owned by the user sales whose group is sales

/home/sales

can do

useradd -g sales -s /bin/bash -d /home/sales cheesysalesman

now chessysalesman should log into and have sales as his home dir


and of course set passwords

darthtux 09-05-2003 10:22 AM

You have to put the 3 users in the same group. Then on the home directory issue the command

chgrp groupname directory

chmod 770 directory


All times are GMT -5. The time now is 06:02 AM.