Home
Wednesday, June 28, 2017
5:03:54 PM
Users online: 0   You are here >> Home > Open Source OS

Forums | Open Source OS Forums search
Forum FAQ
   
  1  
sudo command is broken
espionage 
30/7/08 12:36:57 PM
Disciple
everything was working fine until yesterday, when i tried to change to root prompt using 'sudo -s' and didn't get one. after that any command i want to run as root using ' sudo xxxxx' fails. I cannot even reboot the machine. does anyone know what problem i'm currenty having? Please help.

-----

TheSecret 
30/7/08 1:12:34 PM
Master
Post your sudo.conf file.


Edited by TheSecret: 30/7/2008 1:13:01 PM

-----
Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.

espionage 
30/7/08 2:46:04 PM
Disciple
Quote by TheSecret
Post your sudo.conf file.


Edited by TheSecret: 30/7/2008 1:13:01 PM



sorry for being a n00b, but where can i find this sudo.conf file?

-----

robzy 
30/7/08 3:28:08 PM
Hero
Immortal


Quote by espionage
Quote by TheSecret
Post your sudo.conf file.


Edited by TheSecret: 30/7/2008 1:13:01 PM



sorry for being a n00b, but where can i find this sudo.conf file?


Generally assume that any configuration files (often denoted by .conf) can be found in /etc/.

So I'm guessing it would be /etc/sudo.conf

Rob.

-----
עם ישראל חי

Bob Hawke 
30/7/08 3:29:29 PM
Guru

have you rebooted yet?

-----
Ride a Bicycle!

espionage 
30/7/08 6:52:12 PM
Disciple
Quote by robzy
Quote by espionage
Quote by TheSecret
Post your sudo.conf file.


Edited by TheSecret: 30/7/2008 1:13:01 PM



sorry for being a n00b, but where can i find this sudo.conf file?




Generally assume that any configuration files (often denoted by .conf) can be found in /etc/.

So I'm guessing it would be /etc/sudo.conf

Rob.



thnks for the info. it is helpful to know all this stuff. however i found a workaround. rebooted in recovery mode and added the user to admin group. dunno how it was removed.


Edited by espionage: 30/7/2008 6:52:44 PM

-----

B82R3S 
30/7/08 8:45:18 PM
Titan

Yeah i was just about to ask if the user was part of the sudo group. Good to see its sorted

-----
E4400 @ 3.1ghz (388x8 w 1.39v) | P35-DS3 F6| 2 GB DDR 800 | X1950pro 512mb | 250gb | DVR 212
Debian Etch | AM2 X2 3800+ | 1GB DDR2 667 | 1.5TB Raid5 (4x500gb) | 1TB of corrupted Data =S

robzy 
31/7/08 1:26:49 AM
Hero
Immortal


Good on you for figuring it out, by yourself no less :)

Rob.

-----
עם ישראל חי

espionage 
31/7/08 3:48:16 PM
Master
thanks guys, i appreciate your support.

-----

wilsontc 
31/7/08 5:11:31 PM
Guru

Oh, and for future reference, the config file is /etc/sudoers :P

-----
Quote by Kothos
More importantly, do any of you girls like arse hair??



Linux_Inside V2 
31/7/08 7:49:25 PM
Immortal

Quote by wilsontc
Oh, and for future reference, the config file is /etc/sudoers :P



You've beaten me to the punch yet again!

-----

TheSecret 
1/8/08 6:50:23 AM
Master
It can be sudoers or sudo.conf, dependent upon distribution.

-----
Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.

espionage 
1/8/08 10:05:58 AM
Master
hmm, i read about sudoers but looking for sudo.conf initially as it was advised here. anyway i know now what to look for.

-----

Redhatter 
2/8/08 10:49:43 PM
Hero
Titan


And naturally, you use visudo to edit the sudoers file. Thus you don't have to remember -- the system does that for you.

-----
Stuart Longland (aka. Redhatter, VK4FSJL)
I haven't lost my mind it's backed up on a tape somewhere...
http://atomicdoc.yi.org <-- AtomicDOC Wiki
Resident Coolie-hatted Gentoo geek. (Gentoo MIPS & Mozilla herd member)

TheSecret 
3/8/08 12:34:22 PM
Master
Except if you want to post it to a forum.

-----
Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.

Linux_Inside V2 
3/8/08 12:40:52 PM
Immortal

Quote by TheSecret
It can be sudoers or sudo.conf, dependent upon distribution.



I can't remember the last time I saw a distro that used sudo.conf

If you're using a UNIX system, it should always be sudoers
Then again, Linux isn't Unix - It's like No Frills Cola compared to Coke.


Edited by Linux_Inside V2: 3/8/2008 12:44:18 PM

-----

TheSecret 
4/8/08 12:06:18 AM
Master
sudo.conf is apparently more common than you realize. sudoers is more common, but not the point you can say it should be so for all unix systems.

-----
Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.

Linux_Inside V2 
7/8/08 10:10:13 PM
Immortal

Quote by TheSecret
sudo.conf is apparently more common than you realize. sudoers is more common, but not the point you can say it should be so for all unix systems.



Unix is all about standardisation, so there should be only one file to store it in

sudo is maintained by one of the OpenBSD guys (Todd c. Miller), who set the default as /etc/sudoers so you can blame the linux distros (as always) for breaking away from the standard way of doing shit.
I bet Redhat/Fedora are the main culprits, maybe even SUSE too - they all like doing things their own little ways.



Edited by Linux_Inside V2: 7/8/2008 10:16:47 PM

-----

Redhatter 
9/8/08 11:56:02 AM
Hero
Titan


stuartl@taijia ~ $ ls -l /etc/sudo*  
-r--r----- 1 root root 1607 2007-06-28 22:20 /etc/sudoers
stuartl@taijia ~ $ uname -a
Linux taijia 2.6.23.14-mipsgit-20080206-lm2e #1 Wed Feb 20 23:28:06 EST
2008 mips64 ICT Loongson-2 V0.2 FPU V0.1 lemote-fulong GNU/Linux

-----
Stuart Longland (aka. Redhatter, VK4FSJL)
I haven't lost my mind it's backed up on a tape somewhere...
http://atomicdoc.yi.org <-- AtomicDOC Wiki
Resident Coolie-hatted Gentoo geek. (Gentoo MIPS & Mozilla herd member)

  1  
Forums | Open Source OS