diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-10-18 03:07:37 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-10-18 03:07:37 +0100 |
commit | cff2f48b0a291e3eeda4a10492716fbee56d8085 (patch) | |
tree | 30e1e2ea833d074aaabdd691508e0739d1bf19a1 | |
parent | 201843413dd7ed16316ddc5d6ac4907a687f8318 (diff) |
use usermod instead of gpasswd
-rwxr-xr-x | redcorelive-openrc.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/redcorelive-openrc.sh b/redcorelive-openrc.sh index 7ae3ba0..1d4e5af 100755 --- a/redcorelive-openrc.sh +++ b/redcorelive-openrc.sh @@ -19,9 +19,7 @@ addLive() { } liveGroups() { - for group in tty disk lp lpadmin wheel uucp console audio cdrom input tape games video cdrw usb plugdev messagebus portage smbshare ; do - /usr/bin/gpasswd -a "$liveuser" "$group" > /dev/null 2>&1 - done + /usr/sbin/usermod -aG tty,disk,lp,lpadmin,wheel,uucp,console,audio,cdrom,input,tape,games,video,cdrw,usb,plugdev,messagebus,portage,smbshare "$liveuser" > /dev/null 2>&1 } livePasswd() { |