Displaying 1 result from an estimated 1 matches for "mkhomdironfly".
2018 May 30
5
Fw: Home directory is not created
Hi there,
I have following homes section on my smb.conf file.
[homes]
comment = Home Directories
browseable = no
read only = no
valid users = %S
guest ok = no
path = /home/remote/%U
root preexec = /usr/local/sbin/mkhomdironfly.sh %U
script to make home directory i.e mkhomdironfly.sh
if [ ! -e /home/remote/$1 ]; then
mkdir /home/remote/$1
cp /etc/skel/* /home/remote/$1
chown -R $1 /home/remote/$1
chgrp -R "domain users" /home/remote/$1
chmod -R 700 /home/remote/$1
fi
e...