LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-12-2012, 09:04 PM   #1
xrideordie987x
LQ Newbie
 
Registered: Mar 2012
Location: Ohio
Distribution: Ubuntu 11.10
Posts: 5

Rep: Reputation: Disabled
sudo: must be setuid root


Hi, i am VERY new to linux so i only know basic commands but i can't use sudo anymore and i'm not sure how to fix it. so any help would be great thanks.
 
Old 03-12-2012, 09:15 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Well, it looks like you've changed perms on the sudo executable.
Should be
Code:
 ll /usr/bin/sudo
---s--x--x 1 root root 212904 Jul 21  2011 /usr/bin/sudo
 
1 members found this post helpful.
Old 03-13-2012, 05:48 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by xrideordie987x View Post
Hi, i am VERY new to linux so i only know basic commands but i can't use sudo anymore and i'm not sure how to fix it. so any help would be great thanks.
Is there any sort of error you are getting? It would be easier to help if you post the error and the distro you are using
 
Old 03-13-2012, 08:41 AM   #4
xrideordie987x
LQ Newbie
 
Registered: Mar 2012
Location: Ohio
Distribution: Ubuntu 11.10
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for the help and i am using ubuntu 11.10 but you are exactly right, the permissions are changed for sudo and a lot of others but I don't know how to change them. I used recovery mode so I was root and it said it was read only so I couldn't change it. So I am probably missing something obvious
 
Old 03-13-2012, 08:42 AM   #5
xrideordie987x
LQ Newbie
 
Registered: Mar 2012
Location: Ohio
Distribution: Ubuntu 11.10
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Well, it looks like you've changed perms on the sudo executable.
Should be
Code:
 ll /usr/bin/sudo
---s--x--x 1 root root 212904 Jul 21  2011 /usr/bin/sudo
Thanks for the help you are exactly right, the permissions are changed for sudo and a lot of others and i just changed it
---S--x--x 2 user root 156824 2011-09-11 15:06 sudo
but now when i use it, it says
bash: /usr/bin/sudo: Permission denied
??

Last edited by xrideordie987x; 03-13-2012 at 09:09 AM.
 
Old 03-13-2012, 08:45 AM   #6
xrideordie987x
LQ Newbie
 
Registered: Mar 2012
Location: Ohio
Distribution: Ubuntu 11.10
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by deep27ak View Post
Is there any sort of error you are getting? It would be easier to help if you post the error and the distro you are using
i am not really getting any error message just when i try to use sudo it says sudo: must be setuid root but i am on ubuntu 11.10
 
Old 03-13-2012, 07:46 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Linux is case sensitive; that's a lowercase 's'
 
1 members found this post helpful.
Old 03-13-2012, 11:47 PM   #8
xrideordie987x
LQ Newbie
 
Registered: Mar 2012
Location: Ohio
Distribution: Ubuntu 11.10
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Linux is case sensitive; that's a lowercase 's'
yeah that worked lol i knew it would be something obvious but thanks alot man.
 
  


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
sudo: must be setuid root mswamy78 Linux - Newbie 23 11-23-2012 09:20 AM
Linux AMI - Error: sudo: must be setuid root fortran Linux - Server 3 03-21-2012 09:45 AM
[SOLVED] sudo:must be setuid root rahulkya Linux - Software 7 02-21-2011 03:25 PM
Sorry, sudo must be setuid root kurtdriver Fedora 6 10-22-2008 07:47 PM
sudo stopped working: "must be setuid root" quincy_the_penquin Linux - Software 4 04-30-2007 06:37 AM


All times are GMT -5. The time now is 09:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration