LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-16-2005, 05:19 PM   #1
kurtdriver
Member
 
Registered: May 2005
Location: Vancouver, Canada
Distribution: Fedora 18, Puppy Linux, various others
Posts: 107

Rep: Reputation: 15
Sorry, sudo must be setuid root


Suddenly, my core 3 box is having too much security: non-priveledged users are unable to use; usermount, shutdown, halt, may not shutdown from the gnome menu, and I am unable to sudo (I may su). Trying to sudo gets me the message," Sorry, sudo must be setuid root" . Here is the output of ls -l
-rwS--x--x 1 root root 93736 Oct 4 2004 sudo
This happens from gnome and also at virtual consoles. As I can su, I can run all these programs from with a xterm, but students at our school are unable to use the floppy or cdrom, and the staff members are unable to turn it off at nighttime, I have trained them not to press the big button on the front. And the usermount tool no longer has entries for the floppy or cdrom. Oh yeah, when I choose any program from the gnome menu which requires root-level access, I get the same message as anyone who tries to shudown from the menu; insufficient rights. These changes all occured at once. We are using:
gnome-desktop2.8.0-3
sudo-1.6.7p5-30.1
Thanks, kurt
 
Old 05-16-2005, 06:08 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
That's odd. Have you tried reinstalling those packages? GCC shouldn't affect those programs on Fedora.
 
Old 05-18-2005, 05:18 PM   #3
kurtdriver
Member
 
Registered: May 2005
Location: Vancouver, Canada
Distribution: Fedora 18, Puppy Linux, various others
Posts: 107

Original Poster
Rep: Reputation: 15
I had reinstalled sudo, without result. On a brighter note, I have discovered that both /etc/sudoers and /etc/fstab had been returned to their default state. I had been removed from sudoers and the entries for the floppy and cdrom had had the mount option <i>users</i> replaced with <i>pamconsole,exec</i>. I can't imagine how, unless it was part of an upgrade. But I don't think that should rewrite configutation files. an edit of the fstab file has once more given students the right to use floppys and cdroms, but the teaching staff is unable to halt the computer at nightime and I remain unable to sudo. Any help would be appreciated
 
Old 07-20-2008, 12:11 PM   #4
shadowbu
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
Had similiar problem on fedora 9. To correct I removed and re-install the usermode program.

# rpm -e --nodeps usermode
# yum install usermode
 
Old 10-21-2008, 07:11 PM   #5
RottenMutt
Member
 
Registered: Jul 2003
Location: dfw
Distribution: Latest Fedora Release
Posts: 195

Rep: Reputation: 31
Quote:
Originally Posted by shadowbu View Post
Had similiar problem on fedora 9. To correct I removed and re-install the usermode program.

# rpm -e --nodeps usermode
# yum install usermode
when trying to run "sudo hdparm" i get command not found. but i can log in as root and run hdparm! same goes for su.

i tried reinstalling usermode as suggested.
 
Old 10-22-2008, 11:57 AM   #6
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Rep: Reputation: 16
Quote:
Originally Posted by RottenMutt View Post
when trying to run "sudo hdparm" i get command not found. but i can log in as root and run hdparm! same goes for su.

i tried reinstalling usermode as suggested.
Where do "hdparm" resides ? (locate / -iname hdparm)
Try once "sudo /pathto/hdparm.

Maybe a "path issue".

Regards,
 
Old 10-22-2008, 07:47 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Well, the original idea of sudo was to allow only specified non-root users to only run specified root-powers cmds.
It wasn't really designed to give unlimited powers/cmds to any user in sudoers file, but that seems to be the way a lot of people use it these days...
Check the contents of sudoers file.
 
  


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
How to setuid root abridge Linux - Newbie 4 04-06-2005 03:59 PM
Userhelper must be setuid root leroux Linux - Newbie 9 03-10-2005 01:42 AM
Bash script to email setuid root files deoren LinuxQuestions.org Member Success Stories 1 01-30-2005 09:56 AM
setuid programs hang when run by non-root users in RH9 jbkrash Red Hat 0 09-21-2004 01:17 PM
smbmnt - setuid root harperonline Linux - General 1 11-16-2003 05:15 AM

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

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