gdm.start 167 B

1234567
  1. #!/bin/bash
  2. if ! id -u gdm >/dev/null 2>&1; then
  3. useradd -d /var/lib/gdm -M -r -s /sbin/nologin gdm
  4. usermod -aG video gdm
  5. chown -R gdm:gdm /var/lib/gdm
  6. fi