User Management in Grackle
Users in Grackle are not stored in a separate database anywhere on the system, they are simply normal Linux accounts.
bin/gruser
is the shell script which handles managing user accounts in a Grackle system. Like the other shell scripts that make up Grackle, gruser
is easily modified to suit your specific environment.
Creating Users
$ gruser new
To create a new user account, run the new
command, and fill in the prompts.
$ gruser new USERNAME
Append a username to the new
command, to skip interactive mode.
Removing Users
$ gruser delete
Deletes the specified application account, but preserves the data so that the new
command can recreate the account if desired.
$ gruser delete USERNAME
Append a username to the delete
command, to skip interactive mode.
$ gruser purge
The same as the delete
command, except that it goes scorched earth and forever deletes everything associated with the application from the system.
$ gruser purge USERNAME
Append a username to the purge
command, to skip interactive mode.
Feature Control
$ gruser admin-on|admin-off
Grants admin access on the system to the specified user account.
$ gruser admin-on|admin-off USERNAME
Append a username to the admin-on
and admin-off
commands, to skip interactive mode.
$ gruser shell-on|shell-off
Turns on and off shell access for the specified user account.
$ gruser shell-on|shell-off USERNAME
Append a username to the shell-on
and shell-off
commands, to skip interactive mode.
Utility Commands
$ gruser fix-perms
Resets user ownership over home directory files and chmods everything to 600/700.
$ gruser fix-perms USERNAME
Append a username to the fix-perms
command, to skip interactive mode.