Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-13-2005, 05:06 PM   #1
Registered: Apr 2004
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
make sudo ask for a password

sorry if this has been asked before. but how do you make sudo ask for the root password whenever you use it? I dont really want to have my desktop laying around with anyone being able to run anything without any passwords. I've tried some stuff but none of it seems to work. Anyway here's my files.
note: I'm in the wheel group

/etc/pam.d/sudo =

auth required /lib/security/ service=system-auth
auth required /lib/security/

/etc/sudoers =
Defaults env_reset
root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
Old 01-13-2005, 07:32 PM   #2
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128

Rep: Reputation: 16
You could set up an alias for sudo:
$ alias sudo='su -c'
that will essentially call su for a one line command each time.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
sudo password...? yubimusubi Linux - General 15 09-04-2009 12:08 AM
Sudo Su denies password accepted bu just Su arew264 Linux - Software 2 09-29-2005 07:35 PM
root password doesn't work when I use sudo ... bucovaina78 Linux - Security 5 11-10-2004 02:50 PM
Sudo authorizes me with incorrect password? jhermans Linux - Security 4 08-29-2004 09:15 PM
Piping password to sudo Umek Linux - General 7 03-21-2004 01:11 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration