4
0
Fork 0

Add setup-boston-homedir and setup-boston-mailbox helper scripts for use after creating the LDAP account

master
Remigiusz Marcinkiewicz 2015-02-03 19:05:32 +01:00
parent 9f7c93c4ee
commit 66e067cf82
2 changed files with 11 additions and 0 deletions

5
bin/setup-boston-homedir Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
#% setup-boston-homedir user
#% Sets up the local homedir on boston-packets. Has to be run on boston-packets, obviously.
cp -R /etc/skel /home/$1
chown $1:$1 /home/$1 -R

6
bin/setup-boston-mailbox Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
#% setup-boston-mailbox user
#% Sets up the local mailbox on boston-packets. Has to be run on boston-packets, obviously.
mkdir /var/spool/mail/$1
chown $1:mail /var/spool/mail/