Tomas Kuliavas wrote:
Well, output of dirmaker was there in the mail you have quoted text from (above).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]:~$
But still here it is again..
---< snip >---
quark:/home/sam# cat /etc/passwd | grep vmail
vmail:x:1018:1008::/var/vmail:
quark:/home/sam# cat /var/qmail/bin/dirmaker
#!/bin/sh
/bin/mkdir -m 0700 -p $1
quark:/home/sam# /bin/bash --version
GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
quark:/home/sam#
---< /snip >---
same output is there for /bin/sh --version
-- Sameer N. I. /****************************************************************/ / The early bird gets the coffee left over from the night before./ /****************************************************************/
