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

Notices


Reply
  Search this Thread
Old 01-13-2005, 05:06 PM   #1
andy753421
Member
 
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 =
#%PAM-1.0

auth required /lib/security/pam_stack.so service=system-auth
auth required /lib/security/pam_nologin.so


/etc/sudoers =
Defaults env_reset
root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
 
Old 01-13-2005, 07:32 PM   #2
adriaanbw
Member
 
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:
Code:
$ alias sudo='su -c'
that will essentially call su for a one line command each time.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:07 PM.

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