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. cheers, JW- -- o \ Juergen Weigert paint it green! __/ _=======.=======_ <V> | jw@suse.de back to ascii! __/ _---|____________\/ \ | 0911 74053-508 __/ (____/ /\ (/) | _____________________________/ _/ \_ vim:set sw=2 wm=8 SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) "You are trying to use packages from project 'openSUSE:11.3'. Note that malicious packages can compromise your system." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org