Page 1 of 1

sudo: slapt-get: command not found

Posted: 8. Jan 2012, 23:28
by harroxelas
Hi all,

I've been using Debian on my main laptop and PC for some time so I decided I wanted to try something new on my even older laptop. Looked around and Salix OS XFCE seemed like a good choice. Never used Slackware or anything based on it before so I figured using Salix would be a good place to start.

This is distro is FAST! I loved it. Congrats to the developers and the community!

The problem I'm facing is this:

Edited sudoers to allow my regular account to run slapt-get but it simply won't run it. If I run "sudo /usr/sbin/slapt-get" or run slapt-get as root, then it works.

How can I fix this? How can I add /usr/sbin/ to the paths that my regular user account is able to access?

Thanks in advance.

Re: sudo: slapt-get: command not found

Posted: 9. Jan 2012, 05:30
by Akuna
And what happens if you run Gslapt from the regular system menu?

Otherwise the usual procedure from the command line is to issue:

Code: Select all

$ su -
Give your root password when asked and then:

Code: Select all

# slapt-get 
which should give you the help menu if you do not specify any options.

Re: sudo: slapt-get: command not found

Posted: 9. Jan 2012, 05:40
by gapan
harroxelas wrote:How can I fix this? How can I add /usr/sbin/ to the paths that my regular user account is able to access?
You can add a line to set it in your ~/.bashrc. You might also want to add /sbin and /usr/local/sbin

Code: Select all

PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH

Re: sudo: slapt-get: command not found

Posted: 9. Jan 2012, 10:06
by harroxelas
Thanks for the responses.
gapan wrote:
harroxelas wrote:How can I fix this? How can I add /usr/sbin/ to the paths that my regular user account is able to access?
You can add a line to set it in your ~/.bashrc. You might also want to add /sbin and /usr/local/sbin

Code: Select all

PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
gapan, that didn't work. Googling around, I saw different syntaxes of this command.

Well, I'll just use sourcery. Thanks!

Re: sudo: slapt-get: command not found

Posted: 9. Jan 2012, 10:13
by gapan
There is no way it couldn't work. Since you're not providing any information on how it didn't work, I can't offer any more help. Just a guess: you didn't open a new terminal window after you changed that, did you?

Re: sudo: slapt-get: command not found

Posted: 9. Jan 2012, 11:28
by harroxelas
gapan,

Sorry for not making myself clear. Here's what I did:

1) Logged as root
2) Edited .bashrc on the root dir
3) Added the line you provided on the end of the .bashrc
4) Closed the terminal and opened a new one (as .bashrc is executed on every new terminal session)
5) Got the same error message
6) Rebooted the system
7) Tried again and got the same error

I'm starting to think that the problem is on the sudores edit. I did what I had done on Debian:

1) Logged as root
2) visudo
3) just below the root permission (root ALL=(ALL) ALL) I added the line "myusername ALL=(ALL) ALL"
4) saved and quit
5) typed visudo again just to check if it saved correctly, and it did.

I don't know what else to do (except using sourcery) but I'd much prefer using the slapt-get, as I'm very used to apt-get.

Thanks for the help.

Re: sudo: slapt-get: command not found

Posted: 9. Jan 2012, 11:35
by gapan
You need to edit the .bashrc in your user's home directory, not root's .bashrc. That's why I wrote ~/.bashrc and not /root/.bashrc.

Re: sudo: slapt-get: command not found

Posted: 9. Jan 2012, 13:25
by harroxelas
/me taps his forehead. *Stupid!*

Cheers, gapan. Thanks for the help.