Is it possible to change password database file(/etc/passwd) to some other file. How does this authentication mechanism work internally ?
Does it depend on pam ?
|
|
|||
|
You're right: And you really don't want to. Update: If you're trying to hide the Update: a possible solutionIf you have some custom software you need to access a different set of user/group databases, you could make a copy of the relevant PAM and NSS modules and patch them to use your custom databases. The original unix databases stay where they are so software isn't confused, but you can set PAM and NSS to use your custom modules wherever you need to and using whatever policy makes sense to you. Keep the unix databases essentially pristine and you have what you asked for. This is pretty much what the Going one step further: you can go back to PAM and NSS and disable the unix database lookups altogether. Leave the files there for old software (naturally, their views of the user/group databases will be inaccurate, but at least they won't break). |
|||||||||||
|
|
I'm not sure if it's possible out of the box, but It's definitely possible with some hacking. In order to do this you'll need to:
|
|||||
|
|
What you're looking for is the The |
|||
|
|
|
Use NIS or LDAP to authenticate your users. Their passwords won't be stored in the /etc/{password/shadow} file(s). |
|||
|
|

/etc/passwddoes not in fact contain the actual passwords or even the hashes -- shadowed passwords have been a de facto standard since before I started using unix two decades ago. – Shadur Jul 3 '12 at 13:38