LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-15-2014, 08:16 AM   #1
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
unusual response to sudo yum update


Yesterday, I ran some commands to restore permissions of my files on my Centos 6.5, 64 bit system.

I had mistakenly typed chmod -R +w 777. So I needed to restore permissions or reinstall the system.

It seemed to work. The commands can be found here.

http://www.adminlinux.org/2009/07/ho...lt-system.html

I got through it and ran both lines of commands. It works, I am not sure how, but it works.

Now when I came in the morning and typed

Code:
sudo yum update
sudo:effective uid is not 0, is sudo installed setuid root?
I am wondering how to fix this.

Any help appreciated. Thanks in advance.

Respectfully,

jyunker
 
Old 01-15-2014, 08:54 AM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
Hi jyunker,

check the permission of your sudo command:
Code:
$ ls -l /usr/bin/sudo
-rwsr-xr-x 2 root root 127668 2013-02-27 21:41 /usr/bin/sudo
It should look like above
if it doesn't log as root and set the right permission:
Code:
$ su -
# chown root:root /usr/bin/sudo
# chmod 755 /usr/bin/sudo
# chmod u+s /usr/bin/sudo
 
Old 01-15-2014, 09:33 AM   #3
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
unusual response to sudo yum update

I just checked what you said and its resonse:


-rwxr-xr-x.1 root root 123832 ..

It looks like it is correct. What else do I do?

Respectfully,

jyunker
 
Old 01-15-2014, 10:17 AM   #4
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
Hy jyunker,

Nop, the stiky bit is not set:
Your config:
-rwxr-xr-x

The way it should be:
-rwsr-xr-x

Type the following as root should solve the issue:
Code:
# chmod u+s /usr/bin/sudo
Best regrads,
Angel.

Last edited by angel115; 01-15-2014 at 10:19 AM.
 
Old 01-15-2014, 10:40 AM   #5
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
unusual repsone when running sudo

In order to do that must I run sudo? As I said sudo does not run.

If I do not need to run sudo I guess that will work.

Do I need to run sudo?

sudo chmod ...

Respectfully,

jyunker
 
Old 01-16-2014, 12:51 AM   #6
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
No, do not use sudo command as that doesn't work.
Login as root using the su - command:
Code:
$ su -
password:
# chmod u+s /usr/bin/sudo

Last edited by angel115; 01-16-2014 at 12:52 AM.
 
  


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
after yum update, can't yum update yet, some error occured novelbean Linux - Newbie 5 04-03-2013 08:13 PM
cannot check for updates using yum in centos,gives unusual error SarahGurung Linux - Newbie 7 04-04-2012 12:44 AM
Issues when running 'sudo yum update' veeruk101 Linux - Newbie 2 10-19-2011 05:13 PM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
unusual update of dbus ....mdv2008 aus9 Mandriva 4 12-09-2007 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 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
Open Source Consulting | Domain Registration