added 'acl' package to set advanced file perms
[fai-configs.git] / scripts / ECRYPTFS / 10-misc
CommitLineData
99bad8c0
SC
1#! /bin/bash
2
3# Set the hostname
4if [ -n $HOSTNAME ]; then
5 echo $HOSTNAME > $target/etc/hostname
6fi
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 ' '"