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? |
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. |
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. |
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 |
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. |