[Samba] preexec script problem

ipguy ip.guy at optushome.com.au
Wed May 12 01:53:55 GMT 2004


hi all

i'm running into a little problem when using preexec scripts for the creation 
of dir's on my samba server....

script
---
#! /bin/sh
name=`getent passwd | grep %U | awk -F: '{print $5}'`
mkdir /samba/test/"$name"
---

snip of smb.conf
---
[test]
        path = /samba/test
        preexec = /root/script
        browseable = Yes
        writeable = Yes
        valid users = @mygroup
        force group = @mygroup
        create mask = 0770
        force create mode = 770
---

anyone have any idea why the dir is not created under "/samba/test" ?

-ipuy


More information about the samba mailing list