6 [ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf
7 [ -n "$USERNAME" ] || USERNAME=grml
9 # FIXME: use /etc/grml/fai/... as base
10 cat > $target/etc/sudoers << EOF
12 # This file MUST be edited with the "visudo" command as root.
13 # See the man page for details on how to write a sudoers file.
15 # Host alias specification
17 # User alias specification
19 # Cmnd alias specification
21 # User privilege specification
24 # WARNING: This allows the unprivileged $USERNAME user to start commands as root
25 # WARNING: This is totally insecure and (almost) makes $USERNAME a second root account.
26 # WARNING: Never allow external access to the $USERNAME user!!!
27 $USERNAME ALL=NOPASSWD: ALL
29 # allow editing of files with editor:
30 # $USERNAME ALL=NOPASSWD: sudoedit
33 # $USERNAME ALL=NOPASSWD: /sbin/hdparm
34 # $USERNAME ALL=NOPASSWD: /usr/sbin/hwinfo
35 # Cmnd_Alias DEBIAN = /usr/bin/apt-get, /usr/bin/dpkg, /usr/bin/auto-apt, /usr/bin/apt-file
36 # $USERNAME ALL=NOPASSWD: DEBIAN
37 # chroot ALL=NOPASSWD: /usr/sbin/chroot, /bin/su - chroot
38 # chroot ALL=NOPASSWD: /usr/sbin/chroot, /bin/su - chroot
40 secvpn ALL=NOPASSWD: /usr/sbin/secvpn, /usr/sbin/pppd