1
I've a user account in a remote machine. but it doesn't have a home directory in that machine. Is it possible to create a home directory without having root account details. If yes, how it can be done.
1
I've a user account in a remote machine. but it doesn't have a home directory in that machine. Is it possible to create a home directory without having root account details. If yes, how it can be done.
1
No matter what, you will still need a directory where you can store your stuff (i.e. write permission and it is not being cleaned-up like /tmp
).
If you have such a directory setting the environment variable $HOME
to that path will already make a lot of programs treat it like a home directory. You can set that variable with
$ export HOME=/some/dir/
You could put above line in a shell script you execute after each login. In that file you should also start your shell in login mode or make it source your .profile
files.
Do you have shell access? What does
echo $HOME
tell you? What do you get for the next to last field if you dogrep yourusername /etc/passwd
? – Paused until further notice. – 2010-09-14T04:12:31.480$HOME is "/home/joe" and for grep, I got "joe:x:1013:1015::/home/joe:/bin/sh" – Joe – 2010-09-14T04:24:52.383
Do you have write permission in
/home/joe
? If yes, you do already have a$HOME
directory. – Benjamin Bannier – 2010-09-14T12:54:03.433