-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Jos Collin on 3/31/2009 1:43 AM: > Hi, > > My personal computer is having a sudo user 'collin'. If I log into > 'collin' and do the following > > $cd ~ > $pwd > > It prints /home/collin , which is wrong.
How is that wrong? If $HOME (aka ~) is /home/collin, then that is the right thing to do. pwd doesn't lie. > But if I log in as root and from the root's home directory if I issue > a pwd, it prints /root. If your question is why logging in as collin (even when using sudo) picks a different $HOME than logging in as root, that is due to how your /etc/passwd file is set up for assigning the default home directory of the two different users. But there is nothing pwd can do to change how your system's user database is set up. - -- Don't work too hard, make some time for fun as well! Eric Blake [email protected] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknSAx8ACgkQ84KuGfSFAYC86wCdHudzYkwNDpfRuH/b/6oRkBti rJ4Anj2fh71wN+gr8i7qHQEjGRMeKIvB =XU/e -----END PGP SIGNATURE----- _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
