https://github.com/dbackowski/make_chroot
Debian 6.0 (squeeze) script to make chrooted user account.
https://github.com/dbackowski/make_chroot
Last synced: 6 months ago
JSON representation
Debian 6.0 (squeeze) script to make chrooted user account.
- Host: GitHub
- URL: https://github.com/dbackowski/make_chroot
- Owner: dbackowski
- Created: 2012-01-24T19:10:41.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-19T11:26:08.000Z (about 14 years ago)
- Last Synced: 2024-12-29T12:40:44.344Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Debian 6.0 (squeeze) shell script to set up chrooted user account.
-------------------------------------------------------------
USAGE:
Create new chrooted account or
add existing User to chroot-jail:
-> ./make_chroot.sh username
or specify the chroot-shell file and path where the jail should be located:
-> ./make_chroot.sh username [/path/to/chroot-shell [/path/to/jail]]
Default shell = /bin/chroot-shell
Default chroot-path = /home/jail
-------------------------------------------------------------
Updating files in the chroot-jail:
-> ./make_chroot.sh update [/path/to/chroot-shell [/path/to/jail]]
-------------------------------------------------------------
To uninstall:
# userdel $USER
# rm -rf /home/jail
(this deletes all Users' files!)
# rm -f /bin/chroot-shell
manually delete the User's line from /etc/sudoers
This script is based on http://www.fuschlberger.net/programs/ssh-scp-sftp-chroot-jail by Wolfgang Fuschlberger.
Copyright (c) 2012 [Damian Baćkowski], released under the GPL v2 license.