![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
||||
|
||||
|
You are probabally root. If you are root you would not need to enter a password to switch to any user with login rights.
|
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
Why would you need to???
root has full access to everything so if your root it doesnt matter if the user has a password. |
|
#7
|
|||
|
|||
|
thanks all.
Last edited by email-lalit; 08-01-2008 at 03:05 PM. |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|