The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sudo question melias Security 12 05-26-2008 01:10 AM
sudo, or not sudo: that is the question iBot UNIX and Linux RSS News 1 02-07-2008 10:40 AM
Sudo question Zarnick Linux 2 01-22-2008 05:25 AM
SUDO question - please help sajjad02 UNIX for Advanced & Expert Users 5 04-27-2005 08:22 AM
sudo question TRUEST UNIX for Dummies Questions & Answers 1 01-16-2004 09:53 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-01-2008
Registered User
 

Join Date: May 2008
Posts: 36
sudo question.

Hello all,

Anyone fimilar with su -l command?

So when I do su -l <user> any user it doesn't prompt me for password for that user. How I enable sudo to prompt for password whenever su -l command is used.

Please help!

thanks,
-Lalit
Reply With Quote
Forum Sponsor
  #2  
Old 08-01-2008
Registered User
 

Join Date: May 2008
Posts: 77
Are you doing this as root? Why would you need sudo to do this as root?

If not, are you running Ubuntu? If so, there is no "root" account activated and the only way I could think of to fix this is to set root's password. Then it should prompt.


Other than that, sudo assumes you have privilege for 5 minutes, if I recall. You could change the sudoers file to only allow a few commands from sudo.
Reply With Quote
  #3  
Old 08-01-2008
Ikon's Avatar
Registered User
 

Join Date: Jul 2008
Location: Phoenix, Arizona
Posts: 414
You are probabally root. If you are root you would not need to enter a password to switch to any user with login rights.
Reply With Quote
  #4  
Old 08-01-2008
Registered User
 

Join Date: May 2008
Posts: 36
Yes I am login as root on Centos5.2.

But even i am login as a user i am still able to do login as another user with out prompting me for a password.

Can you help me to block this and prompt for password for that particualar user.

thanks,
-Lalit
Reply With Quote
  #5  
Old 08-01-2008
Registered User
 

Join Date: May 2008
Posts: 36
Sorry let me take this back.

I am prompt for password when i am login as user.


I am not prompt for password when i am login as root.

Anyway can block this even tho i am login as root.

thanks for the help.

-Lalit
Reply With Quote
  #6  
Old 08-01-2008
Ikon's Avatar
Registered User
 

Join Date: Jul 2008
Location: Phoenix, Arizona
Posts: 414
Why would you need to???

root has full access to everything so if your root it doesnt matter if the user has a password.
Reply With Quote
  #7  
Old 08-01-2008
Registered User
 

Join Date: May 2008
Posts: 36
thanks all.

Last edited by email-lalit; 08-01-2008 at 03:05 PM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0