added 'acl' package to set advanced file perms
[fai-configs.git] / scripts / ECRYPTFS / 10-misc
1 #! /bin/bash
2
3 # Set the hostname
4 if [ -n $HOSTNAME ]; then
5 echo $HOSTNAME > $target/etc/hostname
6 fi
7
8 # Bug fix: ecryptfs needs /etc/mtab
9 $ROOTCMD touch /etc/mtab
10 # Create a local admin user
11 $ROOTCMD adduser --disabled-password --gecos "" --shell /bin/bash --encrypt-home fsf 2> /dev/null
12 $ROOTCMD echo -e "fsf\nfsf" | passwd fsf
13
14 #$ROOTCMD adduser --disabled-password --gecos "" --shell /bin/bash fsf
15 #$ROOTCMD echo -e "fsf\nfsf" | passwd fsf
16 #$ROOTCMD sudo -u fsf -H bash -c "ecryptfs-setup-private -u fsf -l fsf -m ' '"