subuserdel

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
FILES
BUGS
AUTHOR
SEE ALSO

NAME

subuserdel − delete a sub-user

SYNOPSIS

subuserdel username

DESCRIPTION

Deletes a subuser, including all their files, if the named user is a subuser of the calling user. You should retrieve any important data from the sub-user before deleting it.

For an overview of how the subuser tools interact and how they keep track of what users “belong” to whom, see subusers(7).

OPTIONS

username

the name of the user to delete, will be appended to the current user name plus a hopefully unique separator.

EXAMPLES

If alice has a subuser named bob, bob’s username is alice_bob:

alice@hostname$ subuserdel bob

Note that if alice tries to delete the user alice_bob, the utility will dutifully try to delete alice_alice_bob, which probably doesn’t exist. See the discussion of fully-qualified user names in subusers(7).

FILES

/etc/subusers

the file containing the ancestry relationships between users.

BUGS

This tool currently deletes all the files belonging to the subuser. A forthcoming version will optionally cause all these files to “bubble up” to the calling user, by chowning them to the caller and moving them to somewhere under the caller’s home directory.

This tool also does not yet traverse the tree to delete the subusers of the to-be-deleted subuser. Note that this can currently cause users to be “orphaned”. So, be sure to delete all the descendants of the named subuser.

AUTHOR

Phil Snowberger (psnowber (at) cse.nd.edu)

SEE ALSO

subuseradd(1) subuserchown(1) subusersu(1) subusersudo(1) subusers(7)