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

	comment = NT user profiles
	path = /export/profiles/%U
	root preexec = /usr/samba/bin/buildprofile %U %G
	public = no

The buildhome script is something like


umask 077

if [ ! -d /export/profiles/$user ]; then
   mkdir /export/profiles/$user
   chown $user /export/profiles/$user
   chgrp $group /export/profiles/$user

That way each user will have a directory in /export/profiles 
with the correct permissions and oewnership when they 

Hope this helps,

                            Gerald ( Jerry ) Carter	
Engineering Network Services                           Auburn University 
jerry at   

       "...a hundred billion castaways looking for a home."
                                  - Sting "Message in a Bottle" ( 1979 )

More information about the samba-ntdom mailing list