Can't create users and groups

Mário Gamito <[email protected]>
Newsgroups org.kernel.vger.linux-admin
Message-ID <[email protected]>
Hi,

I'm making a qmail RPM.
All goes well, except that the users and groups are not being created.
And they must be before running "make setup check".
I've tried all locations in the spec file, but nothing :(

Following my signature is the relevant part of the spec file.

Any help would be appreciated.

Warm Regards
-- 
:wq! Mário Gamito

%description
The most powerful MTA in the whole world.

%prep
%setup -q

%build
patch -p1 < qmail-ldap-1.03-20060201.patch

cp files/Makefile .
cp files/dirmaker .
cp qmail.schema /etc/openldap/schema

mkdir -p /var/qmail/
mkdir /var/log/qmail
mkdir /var/log/qmail/qmail-send
mkdir /var/log/qmail/qmail-smtpd
mkdir /var/log/qmail/qmail-popup

groupadd nofiles
useradd -g nofiles -s /bin/false -d /var/qmail/alias alias
useradd -g nofiles -s /bin/false -d /var/qmail qmaild
useradd -g nofiles -s /bin/false -d /var/qmail qmaill
useradd -g nofiles -s /bin/false -d /var/qmail qmailp
groupadd qmail
useradd -g qmail -s /bin/false -d /var/qmail qmailq
useradd -g qmail -s /bin/false -d /var/qmail qmailr
useradd -g qmail -s /bin/false -d /var/qmail qmails
chown -R root.qmail /var/qmail/
chown -R qmaill.qmail /var/log/qmail/
chmod 2700 /var/log/qmail/*

mkdir -p /var/qmail/supervise/qmail-send/log
mkdir -p /var/qmail/supervise/qmail-smtpd/log
mkdir -p /var/qmail/supervise/qmail-popup/log

echo "vmail:*:11184:2110::/var/qmail/maildirs/:/bin/true" >> /etc/passwd
echo "vmail::2110" >> /etc/group

mkdir /var/qmail/maildirs
chown -R vmail.vmail /var/qmail/maildirs

make setup check

%install
./config-fast mail.sincity.lan

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.