Changing home directory

Jeroen van Meeuwen kanarip at kanarip.com
Fri Nov 24 12:54:17 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
arora.himanshu at gmail.com wrote:
> Hi, I want to change my home directory from /home/me to /tmp/me
> without getting root involved. It also means that whether I do ssh
> or scp or ftp or telnet it should see my home directory as /tmp/me.
> Any suggestions ?
>
> Thanks,
Do you have root privileges? You would not be getting the root user
involved ;)

For a normal user, .bashrc can fool ssh/telnet, maybe even scp, but
not ftp. To fool ftp, you would need to configure your ftpd which
probably requires root privileges. But then again, if you have those
root privileges, usermod -d /tmp/me <username> solves the problem for
ssh, scp and telnet, and maybe ftp.

Kind regards,

Jeroen van Meeuwen
- -kanarip
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
 
iD8DBQFFZut5KN6f2pNCvwgRAhEXAJ4rYnQKPsor0ozxczCjZix2d+dJngCfZfJ2
fu/Y7kkFAz7O1cDbUTyyBL4=
=JW7u
-----END PGP SIGNATURE-----




More information about the users mailing list