> The above command does not work alone because vmail has no shell. So I > have to specify shell > like --shell=/bin/bash and then it can create just one directory > /var/vmail/admin > Earlier I created the user vmail using command > useradd -g vmail -d /var/vmail -m -s /bin/true vmail > > To check with shell I deleted the user vmail. Created the same user > again using command > useradd -g vmail -d /var/vmail -m vmail > > (Before that I deleted /var/vmail ) > Now with the command below it can create only one directory > /var/qmail/admin > > su vmail -c `cat /var/qmail/control/dirmaker` /var/vmail/admin ./Maildir
Show contents of /var/qmail/control/dirmaker We don't have access to your host and can't say say what command is executed. [EMAIL PROTECTED]:~$ cat /etc/passwd | grep vmail vmail:x:1009:1003::/home/maildirs: [EMAIL PROTECTED]:~$ cat /var/qmail/bin/dirmaker #!/bin/sh # public domain # /bin/mkdir -m 700 -p $1 #EOF [EMAIL PROTECTED]:~$ /bin/sh --version /bin/sh --version GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu) Copyright (C) 2002 Free Software Foundation, Inc. [EMAIL PROTECTED]:~$ -- Tomas
