Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: visudo... where?
PostPosted: Fri Mar 26, 2010 7:52 pm 
Offline
Newbie

Joined: Fri Mar 26, 2010 7:38 pm
Posts: 2
I'm trying to get 'sudo su' to work for two users (one of whom is me) so I can disable logins from the root acount itself. However, I can't find visudo anywhere on our vm. I logged in, su'ed, and tried to launch it directly (file not found). I then tried to do 'whereis visudo', with equally unsuccessful results. Am I doing something wrong (is visudo only for Debian/Ubuntu-derivatives?), do I need to grab & install something with YUM, or am I just doing something wrong here?


Top
   
 Post subject:
PostPosted: Fri Mar 26, 2010 10:30 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
Typically /usr/sbin/sudo

If you su to root then do "su -" to ensure your path is set to the normal root path (which should include /usr/sbin) and not a normal users path (which does not).

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Fri Mar 26, 2010 11:24 pm 
Offline
Newbie

Joined: Fri Mar 26, 2010 7:38 pm
Posts: 2
Hmm. I don't have /usr/sbin/sudo, either. I'm starting to wonder whether the guys who helped set it up this afternoon deleted those files at the same time they disabled root logins. If they did, is there any easy way to get them back?


Top
   
 Post subject:
PostPosted: Fri Mar 26, 2010 11:44 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Hmm... have you tried yum install sudo


Top
   
 Post subject:
PostPosted: Sat Mar 27, 2010 2:57 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
bitbang wrote:
Hmm. I don't have /usr/sbin/sudo, either. I'm starting to wonder whether the guys who helped set it up this afternoon deleted those files at the same time they disabled root logins. If they did, is there any easy way to get them back?

My mistake; /usr/sbin/visudo

Sorry!

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group