I would like to have an user that can execute al command with sudo.
I configured sudo with yast2 and in the sudoers file actually there is a line with:
USER ALL = (ALL) ALL
Where user is my username.
But I can’t use some command like ifconfig becouse it say that it can’t find the command. I think that this is becouse of path, but shouldn’t i get root path using sudo?
Better yet, move away from ifconfig since it is, by definition, obsolete
on systems that matter. The ip command replaces it and (most importantly)
is much shorter to type (and it’s in the default path for users).
ip addr
for link information, including statistics:
ip -s link
and for route information, it’s all here too!
ip route
Good luck.
On 11/29/2010 08:06 AM, ken yap wrote:
>
> Or use sudo -i to get the target user’s environment.
>
> Incidentally you do not need root privilege if you just want to run
> ifconfig to view the current config. Just do /sbin/ifconfig.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/