One account with multiple passwords


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers One account with multiple passwords
# 1  
Old 08-06-2012
One account with multiple passwords

Hi
I am currently using saslauthd to authenticate users onto an imap server (cyrus).

I need to have it so that a user can logon to an account with multiple passwords (even just two would work). Is this at all possible within linux?

Right now I am using the shadow file for authentication with sasauthd, but it also supports PAM, and I understand that PAM might let me do this. Is this possible?
# 2  
Old 08-06-2012
You could set up two or more usernames with the password file entries specifying the same userID, groupID, home directory, etc., but have a different password for each.

Giving a user two passwords and allowing either one to be used could be done on some systems by setting up a PAM authentication module that accesses something other than (or in addition to) the normal file containing the encrypted passwords. You would also have to modify the passwd utility to change the right entry based on requesting the user's passwd and figuring out which one to change based on what the user enters...
This User Gave Thanks to Don Cragun For This Post:
# 3  
Old 08-07-2012
Hi

That worked perfectly. I am now using another module with pam to allow for dual authentication.

Thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Cybersecurity

Single ldap account, different passwords?

Is it possible, either by software solution or configuration, to provision a single user account that has different passwords depending on what group of servers it is attempting to connect to? We have a dev, sit, uat, and production environment. They want to be able to set passwords in dev for... (2 Replies)
Discussion started by: Blackacid
2 Replies

2. Shell Programming and Scripting

Bash for multiple accounts with auto-gen passwords

Hello, I am studying few things on unux and scripting. I need a script to create bulk users in unux. I need some assistance from you for creating 100 or more User IDs using a bash script: Here's my requirements: 1. I need to create 100 or even more user ids of different naming... (1 Reply)
Discussion started by: Shelldorado
1 Replies

3. Shell Programming and Scripting

How to change passwords for User accounts on multiple UNIX/Linux machines remotely?

Hello Experts, Need some direction on creating shell script for following environment: We have about 20 people in the team working as Oracle DBA's (sysdba's and appdba's). Total Servers which is a mix of Unix and Linux are 200. We do not have Root user access on any of the servers and... (3 Replies)
Discussion started by: sha2402
3 Replies

4. UNIX for Advanced & Expert Users

When did UNIX start using encrypted passwords, and not displaying passwords when you type them in?

I've been using various versions of UNIX and Linux since 1993, and I've never run across one that showed your password as you type it in when you log in, or one that stored passwords in plain text rather than encrypted. I'm writing a script for work for a security audit, and two of the... (5 Replies)
Discussion started by: Anne Neville
5 Replies

5. Shell Programming and Scripting

script to change passwords for the same user on multiple servers

I am trying to write a script to change passwords for the same user on multiple servers. My environment runs purely ssh / scp not rsh / rcp and therefore coping using rcp is not an option. I have been playing with expect to perform tasks but think there must be a better way. Has anyone got... (7 Replies)
Discussion started by: stolz
7 Replies
Login or Register to Ask a Question