On Tue, Mar 16, 2004 at 04:37:26PM +0000, Thomas Mangin wrote: > > #ls -l /var/qmail/control/dirmaker > -rw-r--r-- 1 root root 30 Mar 16 11:33 > /var/qmail/control/dirmaker > > # cat /var/qmail/control/dirmaker > /var/qmail/bin/qmail-dirmaker > > # ls -l `cat /var/qmail/control/dirmaker` > -rwxr-xr-x 1 root root 64 Mar 16 15:34 > /var/qmail/bin/qmail-dirmaker*
What's the * at the end mean? Also I would have that owned by vmail, or whatever virtual account is going to run the script. Not that it matters. > # cat `cat /var/qmail/control/dirmaker` > #!/bin/sh > echo $1 > /tmp/delete-me-please > mkdir -m 700 -p $1 > > I added the echo as a test in case of insufficient permission, and > nothing gets created in /tmp/ So nothing at all gets put into /tmp/delete-me-please? That makes me wonder if the script is even being run. > # su [EMAIL PROTECTED] Huh, I didn't know you can have an @ sign in usernames. is this because PAM looks to LDAP for usernames? My dirmaker script is pretty basic, all it does is: 1) take in the user's UID from the command line 2) do an LDAP lookup to see what OU that person has 3) create the directory /var/qmail/maildirs/OU/UID 4) maildirmake a ./Maildir/ off of that 5) create some basic .qmail files for that user Chris
