[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: install script




Ok, I am starting to understand this exit status thing:

/var/qmail/bin/qmail-getpw test2 kishonti.hu; echo $?
111
/var/qmail/bin/qmail-getpw test2; echo $? Segmentation Fault(coredump)
139
csh -cf '/var/qmail/rc &'; echo $? [1] 532
0

This my passwd table:
userdb=# SELECT * FROM passwd;
login | uid | gid | home | virtual_host | password | hardquota | startdate | stopdate | enabled | lastlogin
-------+-------+-------+---------------------------------------+--------------+----------+-----------+------------------------+----------+---------+-----------
test | 10000 | 10000 | /export/virtualmail/kishonti.hu/test | kishonti.hu | 123456 | 2000 | 2001-03-15 00:01:35+01 | infinity | t | test2 | 10000 | 10000 | /export/virtualmail/kishonti.hu/test2 | kishonti.hu | qwertz | 2000 | 2001-03-16 21:42:43+01 | infinity | t | alias | 10000 | 10000 | /var/qmail/alias | kishonti.hu | | 2000 | 2001-03-16 23:19:35+01 | infinity | t | lacka | 10000 | 10000 | /export/home/lacka | kishonti.hu | 911porse | 2000 | 2001-03-16 23:53:31+01 | infinity | t |
(4 rows)

All the 4 directories is readable and some are writeable too:

cd /export/virtualmail/kishonti.hu
ls -al
total 8
drw-rwxrwx   4 root     nofiles      512 már 17 18:51 .
drwxr-xr-x   3 root     other        512 már 14  2001 ..
drwxrwxrwx   2 root     other        512 már 17 18:51 test
drwxrwxrwx   2 root     other        512 már 17 18:51 test2

cd /var/qmail/alias:
ls -al
total 10
drwxrwsrwx   2 alias    qmail        512 már 15  2001 .
drwxr-xr-x  10 root     qmail        512 már 17 18:32 ..
-rw-r--r--   1 root     qmail         18 már 15  2001 .qmail-POSTmaster
-rw-r--r--   1 root     qmail         18 már 15  2001 .qmail-mailer-daemon
-rw-r--r--   1 root     qmail         18 már 15  2001 .qmail-root
(all 3 .qmail* files are targeting my lacka@xxxxxxxxxxx user, which is a real UNIX user)

cd /export/home/lacka/Maildir
ls -al
total 10
drwxrw-rw-   5 lacka    staff        512 már 12  2001 .
drwxrwxrwx   6 lacka    staff        512 már 12  2001 ..
drwxrw-rw-   2 lacka    staff        512 már 12  2001 cur
drwxrw-rw-   2 lacka    staff        512 már 12  2001 new
drwxrw-rw-   2 lacka    staff        512 már 12  2001 tmp

Thank you in advance,
Laszlo


Michael Devogelaere wrote:

Michael,

is it possible, that the exit status is nothing like below?

/var/qmail/bin/qmail-getpw test2; echo $

You should type echo $?
Segmentation Fault(coredump)

This is ok: qmail-getpw wants a domain-name as second parameter

$
/var/qmail/bin/qmail-getpw test2 kishonti.hu; echo $
$


Did you create an alias-user for kishonti.hu in your database ?

Kindly regards,
Michael Devogelaere