[Debconf-video-commits] r832 - fai-config/scripts/DEBCONF
Holger Levsen
holger at alioth.debian.org
Thu Apr 11 09:33:15 UTC 2013
Author: holger
Date: 2013-04-11 09:33:15 +0000 (Thu, 11 Apr 2013)
New Revision: 832
Added:
fai-config/scripts/DEBCONF/10-adduser-dvswitch
Log:
DEBCONF needs a dvswitch user too
Copied: fai-config/scripts/DEBCONF/10-adduser-dvswitch (from rev 822, fai-config/scripts/FOSDEM/10-adduser-dvswitch)
===================================================================
--- fai-config/scripts/DEBCONF/10-adduser-dvswitch (rev 0)
+++ fai-config/scripts/DEBCONF/10-adduser-dvswitch 2013-04-11 09:33:15 UTC (rev 832)
@@ -0,0 +1,23 @@
+#! /bin/bash
+
+#
+# (c) 2006-2009 Holger Levsen holger at layer-acht.org
+# GPL2 licenced
+#
+
+USER=dvswitch
+$ROOTCMD adduser --quiet --disabled-password --gecos "" $USER
+$ROOTCMD addgroup --quiet --gid 1000 dvswitch || true
+$ROOTCMD adduser --quiet $USER dvswitch
+
+$ROOTCMD mkdir -p /home/$USER/.ssh
+$ROOTCMD touch /home/$USER/.ssh/authorized_keys
+$ROOTCMD chown -R $USER.$USER /home/$USER/.ssh
+$ROOTCMD chmod 700 /home/$USER/.ssh
+
+# we normally get this group from ldap
+addgroup --quiet --gid 1008 videoteam || true
+
+# the videoteam group which owns the raw1394 device etc
+for i in dialout cdrom floppy audio video plugdev powerdev nvram netdev videoteam ; do $ROOTCMD adduser --quiet $USER $i ; done
+
More information about the Debconf-video-commits
mailing list