You are not logged in.
Pages: 1
Does anyone know a way to change the default directory when SSH'ing into a Linux machine? By default, I am always taken to /home/karam, but I'd rather be taken to /scratch/karam...
Last edited by tony5429 (2008-07-24 23:17:21)
Offline
Just figured out at least one solution:
Add 'cd /scratch/karam/' to ~/.bashrc
Offline
While that should work fine, would just like to add the official way to change the default home directory is by modifying /etc/password (easier/safer to do via usermod)
sudo usermod --home <new_home_dir> <username>
Note that adding -m to the options will even cause it to move the contents from the previous home dir to the new location.
Offline
I do not have root priveledges nor sudo priveledges on the machine so I have to stick with the ~/.bashrc fix. Thanks anyway.
Offline
Pages: 1