Undo jailing user

ju5t

Verified User
Joined
Sep 14, 2005
Messages
409
Location
Amsterdam
Is there a way to remove all the binaries and jail from a user easily? Or is it just a matter of removing bin, etc, sbin, tmp, user, var and home from it's account and change the /etc/passwd file?
 
There is no way to do that automatically (at the moment) :) You must do that manually.
 
No problem. Do you have a list of changes done when jailing a user perhaps?
Saves me some time running through the code ;)
 
I need this too! It would me really nice to be able to "unjail" users and clean their home. Could you at least post some instructions to do this manually?
 
Just change the login shell back to the default one (bash perhaps) like this: chsh -s /bin/bash <user>

Then you can delete the folders created in the users home directory.

cd /home/<user>
rm -rf usr
rm -rf bin
etc...
 
Back
Top