DRBL

Diskless Remote Boot in Linux

DRBL management
Reset users' home directories to initial state

2016/Apr/05


Reset users' home directories to initial state

"drbl-user-env-switch" is used to reset account's home directory to initial state. This is very useful when you let users to share the same account in very client.
Syntax:

drbl-user-env-switch [-g|--group] group [-a|--all] [-r|--reset] [-v|--verbose]

-g, --group GROUP: assign group "GROUP" to be processed.
-a, --all: assign all user accounts (except root) to be processed.
-r, --reset: reset auto-login account's home directory to initial state.
-v, --verbose verbose output.

Note!!! To avoid reset all the user accounts, in this command the default chosen accounts are auto-login accounts

For example, to reset the home directories of accounts belong to group "g3c5", run:
# drbl-user-env-switch -g g3c5 -r