You are not logged in.
I have used linux mint for about 18 months.Recently i switched to Arch linux.
I have a doubt about arch's root user.
In terminal when i use su to gain root account , i am still in my own home folder.I think that i should be in root's home folder. In root account if i open thunar it shows my home folder. Also when i run firefox as root ,it takes my profile instead of a new profile. Is it the correct behavior or have i screwed up anything.
The results are the same when i use sudo.
Please clarify me.
Last edited by bharani (2009-07-29 16:00:34)
Tamil is my mother tongue.
Offline
By default, neither su nor sudo changes the environment for the running program. It doesn't make a difference to the privileges you have.
If you want to switch users as if you had logged in as root, use the - switch to su (just a plain hyphen) or the -i switch to sudo:
sudo -i
su -
Offline
To change to another user and take on their environment, the command you're looking for is:
su - username
Missing out the "-" just gives you their permissions and suchlike.
Offline
Read the fine manual I would guess su on some of the "easy distro's" are being aliased to su -
Offline
Thank you.
That clarifies me.
Tamil is my mother tongue.
Offline