LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Different passwords for different purposes (https://www.linuxquestions.org/questions/linux-newbie-8/different-passwords-for-different-purposes-910023/)

ajaygarg 10-25-2011 06:49 AM

Different passwords for different purposes
 
Hi all.

Is it possible to have different passwords - one for "login", and one for "sudo previleges" in Fedora?


Regards,
Ajay

kbp 10-25-2011 06:51 AM

Not that I'm aware of

ajaygarg 10-25-2011 06:57 AM

Thanks kbp for the reply.

Well, so it it possible that we may have the same password, but disable it during login, while keep it enabled while running "sudo previleged" commands?

Regards,
Ajay

Jenni 10-25-2011 07:04 AM

Sudo uses the users password, I'm not sure of any way to change that, however you can and should only give sudo access to accounts you need it for.

If your goal is to have a limited user account without sudo, but have the option for just you to perform superuser actions you could make a separate user with sudo privileges and use that when you need sudo.
Or use the su command to log in as a different account (either root or an administrative user) to perform tasks requiring elevated rights.

Why, may I ask, do you want separate passwords like this, though? It's usually easier to not share accounts, if that is the case, and make a new user for everyone who uses the computer.

theFreethinker 10-25-2011 07:05 AM

No, 'sudo' and 'su' use standard Unix authentication modules.

It is possible to create a workaround, but it lowers the security level and therefore not advised.


All times are GMT -5. The time now is 11:50 PM.