1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh if [ -z "`grep '^gdm:' /etc/group`" ] then /usr/sbin/groupadd -g 42 gdm fi if [ -z "`grep '^gdm:' /etc/passwd`" ] then /usr/sbin/useradd -u 42 -g gdm -d /var/gdm -s /bin/false gdm /bin/passwd -l gdm fi # End of file