rouble
February 15th, 2008, 11:28 AM
Hi All,
I messed up my sudoers file, and so I had to enable my root account to fix stuff.
Anywayz, now whenever I use sudo, it tries to use the roots environment.
For eg. if I try to do ssh using sudo (to forward privileged ports):
~$ sudo ssh -L 80:localhost:80 hostname
Could not create directory '/home/root/.ssh'.
Or if I just try to use gvim:
~$ sudo gvim
Could not create per-user gnome configuration directory `/home/root/.gnome2/': No such file or directory
Earlier sudo gvim would just use the current user's environment.
I tired re-disabling the root account as mentioned here:
https://help.ubuntu.com/community/RootSudo#head-c625ac47fd3adc6178d573a652c589bf4ebedab5
But that doesn't stop sudo from trying to load root's environment. Any ideas on how to fix this?
tia,
rouble
I messed up my sudoers file, and so I had to enable my root account to fix stuff.
Anywayz, now whenever I use sudo, it tries to use the roots environment.
For eg. if I try to do ssh using sudo (to forward privileged ports):
~$ sudo ssh -L 80:localhost:80 hostname
Could not create directory '/home/root/.ssh'.
Or if I just try to use gvim:
~$ sudo gvim
Could not create per-user gnome configuration directory `/home/root/.gnome2/': No such file or directory
Earlier sudo gvim would just use the current user's environment.
I tired re-disabling the root account as mentioned here:
https://help.ubuntu.com/community/RootSudo#head-c625ac47fd3adc6178d573a652c589bf4ebedab5
But that doesn't stop sudo from trying to load root's environment. Any ideas on how to fix this?
tia,
rouble