From: "Mário Gamito" <gamito@gmail.com>
To: linux-admin@vger.kernel.org
Subject: Can't create users and groups
Date: Thu, 15 Mar 2007 21:36:36 +0000 [thread overview]
Message-ID: <45F9BC64.2020901@gmail.com> (raw)
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
reply other threads:[~2007-03-15 21:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45F9BC64.2020901@gmail.com \
--to=gamito@gmail.com \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).