LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-29-2008, 12:00 PM   #1
sloganyart
LQ Newbie
 
Registered: Jan 2007
Location: Johor, Malaysia
Distribution: Slackware 9.2,12.2,13.0, Debian woody,sarge,etch,Centos5.3
Posts: 22

Rep: Reputation: 15
Unhappy Does sudo need a restart to work ?


I'm coming from a Debian background and I used to issue
Code:
/etc/init.d/sudo restart
whenever I made any changes to the sudoer file. But in Slackware, how do I do that ? I just add a user into the sudoer file but I guess I need a restart of the sudo daemon cause I got a 'command not found' after I tried running some root command. (I put 'ALL' privilege for that user) I have spent a lengthy time looking through LQ but could hardly find any guidance, and also after googling for the whole night

And BTW, in Slackware, if I'm not be able to find anything in /etc/rc.d/ that could let me to restart some service or server, where else do I find them or do I need to create one or they will be created during the installation ?

Many thanks for any helping hand, as I'm trying to learn Slackware now.
 
Old 12-29-2008, 12:28 PM   #2
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by sloganyart View Post
I'm coming from a Debian background and I used to issue
Code:
/etc/init.d/sudo restart
whenever I made any changes to the sudoer file. But in Slackware, how do I do that ? I just add a user into the sudoer file but I guess I need a restart of the sudo daemon cause I got a 'command not found' after I tried running some root command. (I put 'ALL' privilege for that user) I have spent a lengthy time looking through LQ but could hardly find any guidance, and also after googling for the whole night

And BTW, in Slackware, if I'm not be able to find anything in /etc/rc.d/ that could let me to restart some service or server, where else do I find them or do I need to create one or they will be created during the installation ?

Many thanks for any helping hand, as I'm trying to learn Slackware now.
There is no "sudo daemon". The
Code:
/etc/init.d/sudo
in debian does the same as
Code:
sudo -k
You could look into the script by yourself.

Last edited by guanx; 12-29-2008 at 12:30 PM.
 
Old 12-29-2008, 12:40 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
I'm not a sudo user but AFAIK there are no scripts to start/stop sudo in Slackware, thus I guess you'll have to make one yourself if you need it.

My understanding is that sudo is not so much used by most Slackers. May be they prefer to add relevant users in "powerful" groups like e.g. "wheel", as I do.

About the /etc/rc.d directory, it's basically populated at install time, but some scripts are added depending on which packages you install. This is the case e.g. for networks-scripts, MySQL and Apache.

Side note: if you want to learn Slackware, looking at the stuff in /etc and especially in /etc/rc.d helps a lot. The scripts there are generally well documented.

Tip : to know wich package include a given script, or any other file coming from the "official" distribution, you can use the packages and files browser.

Last edited by Didier Spaier; 12-29-2008 at 12:41 PM. Reason: typos
 
Old 12-29-2008, 01:52 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
It is the PATH, not the daemon (sounds spiritual)

Quote:
Originally Posted by sloganyart View Post
I just add a user into the sudoer file but I guess I need a restart of the sudo daemon cause I got a 'command not found' after I tried running some root command.
That is because the /sbin directory is not on the user's PATH.

In ~/.bash_profile or other suitable location, add:

Code:
export PATH=$PATH:/sbin
The user will need to logout and back in for that to have effect.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
sudo does not work any more moparcrazy Linux - Newbie 1 10-22-2008 10:27 AM
program does not work the first time, work only after restart powah General 1 11-18-2007 12:52 PM
How does sudo work? xlq Linux - General 7 05-25-2007 03:12 AM
How do I get sudo to work? Efwis Slackware 6 12-03-2006 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration