basic question on permissions for [profiles]
Gerald Carter
cartegw at Eng.Auburn.EDU
Wed Jan 13 06:30:29 GMT 1999
KFR wrote:
>
> Just curious where i might find documentation
> on the alternate(presexec that is).
Check the smb.conf man page on "root preexec"
Then create a share like this
[profiles]
comment = NT user profiles
path = /export/profiles/%U
root preexec = /usr/samba/bin/buildprofile %U %G
public = no
The buildhome script is something like
#!/bin/sh
umask 077
user=$1
group=$2
if [ ! -d /export/profiles/$user ]; then
mkdir /export/profiles/$user
chown $user /export/profiles/$user
chgrp $group /export/profiles/$user
fi
That way each user will have a directory in /export/profiles
with the correct permissions and oewnership when they
connect.
Hope this helps,
jerry
________________________________________________________________________
Gerald ( Jerry ) Carter
Engineering Network Services Auburn University
jerry at eng.auburn.edu http://www.eng.auburn.edu/users/cartegw
"...a hundred billion castaways looking for a home."
- Sting "Message in a Bottle" ( 1979 )
More information about the samba-ntdom
mailing list