12 lines
276 B
Bash
Executable File
12 lines
276 B
Bash
Executable File
#!/bin/bash
|
|
#% add-to-posix-group login group
|
|
#% Add user (identified by login) to group. group should be a posixGroup
|
|
. $LIB_DIR/common.sh
|
|
if [[ $# < 2 ]]; then
|
|
show-usage
|
|
exit 1
|
|
fi
|
|
tag-begin "Add user $1 to posix group $2"
|
|
basic-attr-op add "$2" memberUid "$1"
|
|
tag-end
|