Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


Search this Thread
Old 07-15-2005, 11:41 PM   #1
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,078

Rep: Reputation: 297Reputation: 297Reputation: 297
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.
Old 07-16-2005, 01:33 AM   #2
LQ Newbie
Registered: Jan 2005
Posts: 8

Rep: Reputation: 0
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.
Old 07-16-2005, 01:08 PM   #3
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,078

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTP Virtual Users chrooted to NTFS Help please murdocthecrackmongre Linux - Software 2 07-05-2005 06:43 PM
cron for chrooted users metobln Linux - Software 4 04-24-2005 05:39 AM
Jailed(chrooted) users and ftp linux_terror Linux - Security 4 08-29-2004 06:56 PM
ProFTPD for chrooted users (/home/hosting/user) ? Niels@debian Linux - Software 5 08-12-2004 07:38 PM
Changing Passwords TheRealDeal Linux - General 3 01-20-2004 11:01 PM

All times are GMT -5. The time now is 08:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration