LinuxQuestions.org
Review your favorite Linux distribution.
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 05-19-2006, 04:17 PM   #1
Dralnu
Member
 
Registered: Jul 2005
Posts: 335

Rep: Reputation: Disabled
Require sudo to need 2 password


Basically, topic.

I'd like to make sudo require 2 passwords (root & user) to execute a command. I know NOTHING of security (cept the obvious bits), and being able to do such seems like a fairly good idea from my stand point.
 
Old 05-19-2006, 04:27 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I'm not sure you can do that with the existing sudo. The point of using sudo is to make it so users can run some of root's commands without having root access. If they had to use the root password to use sudo, that sort of defeats the purpose because they could just su to root (they have the password).

The idea of sudo is to only allow users to run certain commands. Thus if you setup sudo, don't use the default file which lists users like username ALL=(ALL) ALL because that would give that user access to all of root's commands. What you want to do is give them only as much access as they need, such as username ALL= /sbin/reboot which would only give the user the ability to reboot the machine.
 
Old 05-19-2006, 08:52 PM   #3
soulestream
Member
 
Registered: Nov 2005
Posts: 183

Rep: Reputation: 30
if you give a user root password then they dont need sudo. the point of sudo is so you dont have to give someone who only needs access to cups, root priviledges for the whole system.

If you want better security force good passwords. Remember one 8 digit password is harder to crack than two 4 digit ones.


Soule
 
  


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
No password for sudo? orange400 Linux - Software 9 03-18-2012 10:08 AM
sudo password...? yubimusubi Linux - General 15 09-04-2009 12:08 AM
make sudo ask for a password andy753421 Linux - Security 1 01-13-2005 07:32 PM
Piping password to sudo Umek Linux - General 7 03-21-2004 01:11 PM
How to config sendmail to require username/password? jimwillsher Linux - Security 1 02-09-2004 09:57 AM

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

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

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