On 06/09/2014 12:47 PM, lynn wrote:
13.1 Hi Why can't I run commands as sudo? e.g. lynn@catral:~> sudo automount -m root's password: sudo: automount: command not found Fails, but:
lynn@catral:~> su Password: hh16:/home/lynn # automount -m autofs dump map information
...works fine. Is this meant to be the default?
Probably. Sounds like a PATH problem to me. When you do a real 'su' you get root's PATH which includes /sbin and /usr/sbin. I suspect that the way you have sudo set up it does not replace the user's PATH with root's PATH. Which is probably the default. -- "It's not true unless it makes you laugh, but you don't understand until it makes you weep." -- Shea and Wilson, -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org