[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Allow password auth for one user with sftp?



On 2007-01-15 10:08:51 -0500 Adrian von Bidder <avbidder@fortytwo.ch> wrote:

On Monday 15 January 2007 10:26, Berend De Schouwer wrote:

You could set the passwords for a, b, c, and d to some invalid hash
in /etc/passwd, so no password will actually work, but public keys do
work.  Like ubuntu does with 'root' in the default install.

Good idea, except that I need a valid password for access via imaps :-(

I guess you could make ssh use something like libpam-pwdfile or libpam-dotfile instead of instead of pam_unix for authentication, so that it will use a file other than /etc/passwd, and you can keep the old passwords for imaps.

--
Hubert Chan <uhoreg@debian.org> -- Jabber: hubert@uhoreg.ca
PGP/GnuPG key: 1024D/124B61FA         http://www.uhoreg.ca/
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA



Reply to: