Dne 18.8.2010 16:29, Juergen Weigert napsal(a):
On Aug 18, 10 16:11:14 +0200, Jan Matejek wrote:
hi,
i have been bitten by this too many times to count already. After setting reasonable permissions for group wheel in sudoers file, i get this:
matejcik@ws-pool1:~> yast2 Absolute path to 'yast2' is '/sbin/yast2', so running it may require superuser privileges (eg. root). matejcik@ws-pool1:~> sudo yast2 sudo: yast2: command not found
the question: how the <cobe> do i convince sudo that it should, in fact, use root's path?
Not only sudo's fault. Why the <cobe> was /sbin/ removed from users path in the first place? Are these tools no longer meant to be called by users: traceroute, ip, ifconfig, yast, showmount, ... -> they all have excellent reporting modes, that do not need root privileges.
/etc/profile has a section titled 'Make path more comfortable' if test "$UID" = 0 ; then test -d /opt/kde3/sbin && PATH=/opt/kde3/sbin:$PATH PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH fi Anyway, this does not appear to not work for sudo.
commenting out the if/fi did the trick for me, and sudo seems to work correctly as long as /usr/sbin is in my user path - so thanks for this tip. (but note that /etc/profile is only picked up at login, so making this change on a running system will not start working magically) regards m.
cheers, JW-
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org