LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-12-2008, 08:39 PM   #1
Romanus81
Member
 
Registered: Feb 2008
Posts: 201

Rep: Reputation: 31
sudo not giving me all commands, I have to su.


Some commands, such as iwconfig, I can't run with sudo, I have to type su and then run iwconfig. It happens with some other apps, but I can't remember them now.
 
Old 03-12-2008, 08:41 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Prob'ly a path problem... /sbin isn't in a regular user's path. You can still run them with sudo, but you have to add the path...

sudo /sbin/iwconfig
 
Old 03-12-2008, 09:18 PM   #3
Romanus81
Member
 
Registered: Feb 2008
Posts: 201

Original Poster
Rep: Reputation: 31
can I add /sbin to my path?
 
Old 03-12-2008, 09:29 PM   #4
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Slackware != Ubuntu. It actually has a root account that you can log into. In Ubuntu they pretend the root account doesn't exist and instead allow the administrative account to run everything via sudo. In Slackware (and any other normal distro) you can run specific commands using 'su'. To run just one command without really logging in, try
Code:
$ su -c "command"
You need to supply your ROOT password, and not your user password. To use sudo (so you only have to enter your user password), you must add the specific commands to /etc/sudoers in a very specific format (look it up or try `man sudo`). To edit this file you should issue `visudo` as root (do NOT just open the file in a normal text editor -- visudo prevents multiple users from editing it at the same time and other lovely stuff).

I only set common commands (that require root privileges) up with sudo and use `su -c "command"` for less common tasks.
 
Old 03-14-2008, 03:05 AM   #5
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
...and people think I'm overreacting by objecting to Ubuntu's deliberately dimwitted applications of sudo.
 
Old 03-14-2008, 07:27 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by evilDagmar View Post
...and people think I'm overreacting by objecting to Ubuntu's deliberately dimwitted applications of sudo.

Between the abuse of sudo and the equally dimwitted "Lets have a COMPLETELY SEPARATE AND NEW DISTRO for every single X environment out there" its amazing that an *buntuers ever learn any Linux at all.

My apologies for the off-topic rant, we now return you to your regularly scheduled thread.
 
Old 03-14-2008, 09:26 AM   #7
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Ah yes, the "magic hammer" of sudo ;-)
 
  


Reply



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
Giving a user sudo 06jer Linux - Newbie 5 09-05-2007 07:49 PM
giving a router commands fakie_flip Linux - Software 1 08-01-2006 10:56 PM
Giving OS commands nyumedic2000 Linux - Newbie 1 04-15-2005 07:16 PM
sudo and at commands ulto Programming 2 05-01-2004 08:36 AM
giving commands blotch Linux - Newbie 9 06-22-2003 03:13 AM

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

All times are GMT -5. The time now is 01:23 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