setup_chroot.sh overwrites passwd
Bug #740656 reported by
Srdan Dukic
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
scponly (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: scponly
The setup_chroot.sh script copies the relevant lines from /etc/passwd to the $fakeroot/
The bug is at line #258 of the script:
/bin/grep $targetuser /etc/passwd > $targetdir/
The fix should be to append to this file instead of overwriting it in the case that it already exists:
/bin/grep $targetuser /etc/passwd >> $targetdir/
Ubuntu version: 10.04.2
scponly version: 4.8-4
To post a comment you must log in.
This package has been removed from Ubuntu. Closing all related bugs.