Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY

Go Back   Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY > CentOS Việt Nam - Viet Nam Linux CentOS Community > Hỏi đáp về CentOS

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-11-2008
Hackingart Member
 
Join Date: Sep 2008
Posts: 22
Thanks: 0
Thanked 1 Time in 1 Post
Default i got error "Sorry, sudo must be setuid root"

sudo bash
i got
Sorry, sudo must be setuid root
Reply With Quote
  #2 (permalink)  
Old 08-11-2008
Admin's Avatar
Administrator
 
Join Date: Jun 2008
Location: USA
Posts: 406
Thanks: 22
Thanked 19 Times in 17 Posts
Send a message via Skype™ to Admin
Default

I got this error a couple of times, usually because I ran a recursive chmod command on a directory which had sudo symlinked inside.After this sudo or other affected commands which must be setuid root won't run.
The solution:
Find the affected command by which sudo or which... where ... is the affected command.
Then:
su
chown root:root /usr/bin/sudo
chmod 4111 /usr/bin/sudo

or whichever the path to the affected command.
__________________
Hacking - The Art of Exploitation
DomainKeys: Ch́a khóa quan trọng của Anti-Spammer
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:43 AM.


© Diễn đàn HackingArt (HA) được xây dựng và phát triển bởi các thành viên.
+ Diễn đàn HackingArt là nơi trao đổi của các webmaster chuyên nghiệp.