Displaying 1 result from an estimated 1 matches for "firstlogon".
2008 Oct 21
0
WG: Create user home directory or user-own folder on sambaserver on first login to samba
Hello
In the [homes] section at first with root preexec=/path/to/script
Ex:
[homes]
Root preexec=/scripts/./firstlogon
In the firstlogon this could be:
#!/bin/bash
#probe if $1=user exist and his home share
If test -d /users/$1
Then
#write only to log file
Echo "$1 User and Share exist" >> /somewhere/logfile
#if not exist make it
Else
Mkdir /users/$1
Chmod -R 700 /users/S1
Chown -R $1:"Domai...