changing root directory of a user
do to change the root directory of a user
|
do you mean swicthing directory?
to do that just type: cd /directory/ you want switch to or cd.. or if u mean changing user, type su user-name it should work. |
Can you be more specific? It's not real clear what you are trying to do. Are you wanting to use a different folder instead of /home/username?
|
To change the root directory you use chroot. If that's truly what you meant, which I am not sure.
|
Quote:
|
Hi,
Quote:
|
Quote:
|
you can change it in /etc/passwd file.
eg. fake:x:1002:1002:,,,,:/home/fake:/bin/bash fake:x:1002:1002:,,,,:<change_this>:/bin/bash |
Quote:
|
I have already done this but i am not quite satisfied. Actually i need two users to use same directory e.g. /home/default by many other users but the users cant find the /home/default directory because they are login are different. Is this logical?
>>>>Check that both users have rwx permissions to access the directory that you intend to use as home. then it should not be a problem! |
I think it's smarter to group this two users and give permissions to folders that this two useres will use.
|
All times are GMT -5. The time now is 03:49 PM. |