RE: [Samba] preexec script problem

2004-05-12 Thread daniel . jarboe
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

Re: [Samba] preexec script problem

2004-05-12 Thread Buchan Milne
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 | | 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 | --- | |

Re: [Samba] preexec script problem

2004-05-12 Thread ip.guy
i guess my original post wasn't clear. i wanted to grab the FULLNAME of the user, not the username (%U) well, here is the script, adding that to smb.conf will pull the FULLNAME of the user from the SID file on a PDC and make a dir in /samba/test/ preexec = fullname=`getent passwd | grep %U \