This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # This will allow the remote user to SSH to the machine | |
| # and manage an isolated ZFS dataset. | |
| REMOTEUSER=myremoteuser | |
| useradd -s /usr/bin/rbash $REMOTEUSER | |
| mkdir -p /home/$REMOTEUSER | |
| cd /home/$REMOTEUSER |