LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   chrooted users changing their passwords (https://www.linuxquestions.org/questions/linux-security-4/chrooted-users-changing-their-passwords-343643/)

btmiller 07-15-2005 11:41 PM

chrooted users changing their passwords
 
Hi All--

I have a system on which I've successfully chrooted a number of users. However, since the users are chrooted, they obviously don't have access to the /etc directory (the real one) to change their passwords if need be. I want users to be able to do this. Has anyone else set up a system that allows this? I was thinking of just writing a custom "password change daemon" that could handle password change requests for chrooted users, but was wondering if anyone has a more elegant solution.

ranelson 07-16-2005 01:33 AM

Let the users update a local (chroot) /etc/passwd and /etc/shadow then set up a script to move the single line for the users ID from the local /etc/shadow file to the real /etc/shadow. The only downside is the real password update will be delayed, so the user may need to use the old password until the update run.

btmiller 07-16-2005 01:08 PM

Yeah -- this was more or less what I was thinking, but I wanted to be sure there wasn't a better way. Thanks!


All times are GMT -5. The time now is 09:24 PM.