Commit a593d306 authored by Przemysław Pawełczyk's avatar Przemysław Pawełczyk Committed by Natanael Copa
Browse files

Add -g option (GECOS/comment) to adduser in scripts.

This way we can avoid ugly default:

    Linux user,,,
parent ccc056db
#!/bin/sh
adduser -S -h /var/lib/caddy -D -s /sbin/nologin caddy 2>/dev/null
adduser -S -h /var/lib/caddy -D -s /sbin/nologin -g caddy caddy 2>/dev/null
adduser caddy www-data 2>/dev/null
exit 0
#!/bin/sh
addgroup -S docker-registry 2>/dev/null
adduser -S -H -h /dev/null -s /sbin/nologin -D -G docker-registry docker-registry 2>/dev/null
adduser -S -H -h /dev/null -s /sbin/nologin -D -G docker-registry -g docker-registry docker-registry 2>/dev/null
exit 0
#!/bin/sh
adduser -S -h /var/lib/domoticz -D -s /sbin/nologin domoticz 2>/dev/null
adduser -S -h /var/lib/domoticz -D -s /sbin/nologin -g domoticz domoticz 2>/dev/null
exit 0
#!/bin/sh
addgroup -S icinga 2>/dev/null
addgroup -S icingacmd 2>/dev/null
adduser -S -G icinga -H -h /var/spool/icinga2 -s /sbin/nologin -D icinga 2>/dev/null
adduser -S -G icinga -H -h /var/spool/icinga2 -s /sbin/nologin -D -g icinga icinga 2>/dev/null
adduser icinga icingacmd 2>/dev/null 2>/dev/null
exit 0
#!/bin/sh
adduser -S -s /sbin/nologin -D -h /var/lib/minetest minetest games 2>/dev/null
adduser -S -s /sbin/nologin -D -h /var/lib/minetest -g minetest minetest games 2>/dev/null
exit 0
#!/bin/sh
adduser -S -H -D -s /sbin/nologin oscam 2>/dev/null
adduser -S -H -D -s /sbin/nologin -g oscam oscam 2>/dev/null
addgroup oscam usb 2>/dev/null
exit 0
#!/bin/sh
addgroup -S -g 82 www-data 2>/dev/null
adduser -S -H -h /usr/share/webapps/redmine -s /bin/sh -D redmine 2>/dev/null
adduser -S -H -h /usr/share/webapps/redmine -s /bin/sh -D -g redmine redmine 2>/dev/null
addgroup redmine www-data 2>/dev/null
exit 0
#!/bin/sh
addgroup -S smsd &>/dev/null
adduser -S -h /var/spool/sms -s /sbin/nologin -G smsd -D smsd &>/dev/null
adduser -S -h /var/spool/sms -s /sbin/nologin -G smsd -D -g smsd smsd &>/dev/null
adduser -G uucp smsd &>/dev/null
exit 0
#!/bin/sh
addgroup -S sniproxy 2>/dev/null
adduser -S -h /var/log/sniproxy -s /bin/false -D sniproxy 2>/dev/null
adduser -S -h /var/log/sniproxy -s /bin/false -D -g sniproxy sniproxy 2>/dev/null
exit 0
#!/bin/sh
adduser -S -H -h /var/lib/syncthing -s /sbin/nologin -D syncthing 2>/dev/null
adduser -S -H -h /var/lib/syncthing -s /sbin/nologin -D -g syncthing syncthing 2>/dev/null
exit 0
#!/bin/sh
adduser -S -G video -s /sbin/nologin -H -h /usr/share/tvheadend tvheadend 2>/dev/null
adduser -S -G video -s /sbin/nologin -H -h /usr/share/tvheadend -g tvheadend tvheadend 2>/dev/null
addgroup tvheadend usb 2>/dev/null
exit 0
#!/bin/sh
addgroup -S amavis 2>/dev/null
adduser -S -D -G amavis -h /var/amavis -s /sbin/nologin amavis 2>/dev/null
adduser -S -D -G amavis -h /var/amavis -s /sbin/nologin -g amavis amavis 2>/dev/null
exit 0
#!/bin/sh
addgroup -S -g 82 www-data 2>/dev/null
adduser -S -H -h /var/www -s /sbin/nologin -D apache 2>/dev/null
adduser -S -H -h /var/www -s /sbin/nologin -D -g apache apache 2>/dev/null
addgroup apache www-data 2>/dev/null
exit 0
#!/bin/sh
adduser -S -D buildozer -s /bin/sh 2>/dev/null
adduser -S -D -g buildozer buildozer -s /bin/sh 2>/dev/null
exit 0
#!/bin/sh
adduser -S -H -s /sbin/nologin -D arpwatch 2>/dev/null
adduser -S -H -s /sbin/nologin -D -g arpwatch arpwatch 2>/dev/null
exit 0
#!/bin/sh
adduser -S -h /var/lib/asterisk -s /sbin/nologin -D asterisk 2>/dev/null
adduser -S -h /var/lib/asterisk -s /sbin/nologin -D -g asterisk asterisk 2>/dev/null
addgroup -S dialout 2>/dev/null
addgroup asterisk dialout 2>/dev/null
exit 0
#!/bin/sh
adduser -S -h /var/lib/asterisk -s /bin/false -D asterisk 2>/dev/null
adduser -S -h /var/lib/asterisk -s /bin/false -D -g asterisk asterisk 2>/dev/null
addgroup -S dialout 2>/dev/null
addgroup asterisk dialout 2>/dev/null
exit 0
#!/bin/sh
addgroup -S bacula 2>/dev/null
adduser -S -h /var/lib/bacula/ -s /sbin/nologin -G bacula -D bacula 2>/dev/null
adduser -S -h /var/lib/bacula/ -s /sbin/nologin -G bacula -D -g bacula bacula 2>/dev/null
exit 0
#!/bin/sh
addgroup -S bacula 2>/dev/null
adduser -S -h /var/lib/bacula/ -s /sbin/nologin -G bacula -D bacula 2>/dev/null
adduser -S -h /var/lib/bacula/ -s /sbin/nologin -G bacula -D -g bacula bacula 2>/dev/null
exit 0
#!/bin/sh
addgroup -S named 2>/dev/null
adduser -S -h /etc/bind -s /sbin/nologin -G named -D named 2>/dev/null
adduser -S -h /etc/bind -s /sbin/nologin -G named -D -g named named 2>/dev/null
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment