sudo slackpkg = command not found
I edited my "sudoers" file with "visudo".
Added the line, after the root privileges definition. Code:
root ALL=(ALL) ALL Code:
$ sudo ls /root But then I try to: Code:
$ sudo slackpkg Code:
$ sudo su |
You should have /sbin and /usr/sbin in your normal user path if you want to use sudo. Otherwise a lot of packaging utilities will break.
|
Try typing the full path to slackpkg? e.g.: sudo /sbin/slackpkg
|
$ sudo /usr/sbin/slackpkg
works What is the most simple way to permanently add "/usr/sbin" to the $PATH variable? |
add PATH="$PATH:/usr/sbin" to one of your startup files
~/.profile or ~/.bash_login perhaps |
Why don't you just login with 'su -' ? That will give you a proper root login shell with paths etc.
|
I didn't know that sudo needs to be installed. But I followed the link and did what was asked. Finally got this message.
Quote:
Quote:
Quote:
Quote:
|
Hi,
I think you need commas as command separator, not semi-colons. :) |
Oops! Sorry Gabriel. I didn't realize that I was posting this in your thread. Sorry for that. I stumbled upon your thread because I think we two are trying to do the same thing. Hope my post comes in handy.
Thanks NonNonBa, will do what you are suggesting. |
|
I had the same problem. I fixed it by adding the following line to sudoers:
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" |
All times are GMT -5. The time now is 09:06 PM. |