LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-31-2007, 08:09 PM   #1
onthefritz
Member
 
Registered: Dec 2005
Location: Colorado
Distribution: Ubuntu, RHEL, openSUSE
Posts: 105

Rep: Reputation: 19
sudo sudo


I am running opensuse 10.2 and I am having a weird problem with the sudo command. To use it I must enter sudo two time.
Example
This does not work
Code:
sudo ifconfig
This does work
Code:
sudo sudo ifconfig
I know it is a weird problem but I thought I would throw it out there.
 
Old 05-31-2007, 08:32 PM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
"Does not work" does not work. We need specifics.

What exactly happens? What error message do you get when you try the one that doesn't work? Can you copy and paste the exact error message in a reply on this thread?
 
Old 06-01-2007, 11:46 AM   #3
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
Try

Code:
sudo /sbin/ifconfig
That works for me.

I'm guessing that since /sbin is not in a user's path that is why your first command doesn't work.

In your second, the sudo is executed as root and so /sbin is now in the path.

That's my guess anyway.
 
Old 06-05-2007, 03:25 PM   #4
onthefritz
Member
 
Registered: Dec 2005
Location: Colorado
Distribution: Ubuntu, RHEL, openSUSE
Posts: 105

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by statguy
Try

Code:
sudo /sbin/ifconfig
That works for me.

I'm guessing that since /sbin is not in a user's path that is why your first command doesn't work.

In your second, the sudo is executed as root and so /sbin is now in the path.

That's my guess anyway.

Yes that does work. I am going to add my account to the root group to see if that fixes the issue. Anyone got a better idea?
 
Old 06-05-2007, 03:37 PM   #5
google01103
Member
 
Registered: May 2006
Distribution: Suse 10.2 x64
Posts: 247

Rep: Reputation: 31
Quote:
Originally Posted by onthefritz
Yes that does work. I am going to add my account to the root group to see if that fixes the issue. Anyone got a better idea?
Yes, add /sbin to you $PATH variable
 
  


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 02:36 AM
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 04:20 PM
Sudo without having to type "sudo?" Mitch G Linux - Security 3 09-28-2006 03:16 PM
sudo pk21 Linux - Newbie 7 10-07-2003 08:53 AM
need help with sudo mla Linux - Software 4 10-02-2003 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:08 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration