First, I followed the instructions on the FAQ's and I built the packages as user COURIER
Wrote: /home/courier/rpm/SRPMS/courier-0.37.2.20020215-1.7.2.src.rpm Wrote: /home/courier/rpm/RPMS/i386/courier-0.37.2.20020215-1.7.2.i386.rpm Wrote:/home/courier/rpm/RPMS/i386/courier-sendmail-wrapper-0.37.2.20020215-1 .7.2.i 386.rpm Wrote:/home/courier/rpm/RPMS/i386/courier-pop3d-0.37.2.20020215-1.7.2.i386.r pm Wrote:/home/courier/rpm/RPMS/i386/courier-imapd-0.37.2.20020215-1.7.2.i386.r pm Wrote:/home/courier/rpm/RPMS/i386/courier-webmail-0.37.2.20020215-1.7.2.i386 .rpm Wrote:/home/courier/rpm/RPMS/i386/courier-webadmin-0.37.2.20020215-1.7.2.i38 6.rpm Wrote:/home/courier/rpm/RPMS/i386/courier-mlm-0.37.2.20020215-1.7.2.i386.rpm Wrote:/home/courier/rpm/RPMS/i386/courier-maildrop-0.37.2.20020215-1.7.2.i38 6.rpm Wrote:/home/courier/rpm/RPMS/i386/courier-maildrop-wrapper-0.37.2.20020215-1 .7.2.i 386.rpm Wrote:/home/courier/rpm/RPMS/i386/courier-smtpauth-0.37.2.20020215-1.7.2.i38 6.rpm Wrote:/home/courier/rpm/RPMS/i386/courier-ldap-0.37.2.20020215-1.7.2.i386.rp m Wrote:/home/courier/rpm/RPMS/i386/courier-mysql-0.37.2.20020215-1.7.2.i386.r pm Wrote:/home/courier/rpm/RPMS/i386/courier-pgsql-0.37.2.20020215-1.7.2.i386.r pm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.75865 + umask 022 + cd /home/courier/rpm/BUILD + cd courier-0.37.2.20020215 + /bin/rm -rf /var/tmp/courier-install + exit 0 [courier@pac10fans courier]$ I will show you the output of those commands eventhough I built the packages. (NOTE) that before I added this user and ROOT was the only user I would dl RPM's to /usr/local/src and install them from them > grep courier /etc/group [courier@pac10fans courier]$ grep courier /etc/group root:x:0:root,courier bin:x:1:root,bin,daemon,courier daemon:x:2:root,bin,daemon,courier sys:x:3:root,bin,adm,courier adm:x:4:root,adm,daemon,courier disk:x:6:root,courier wheel:x:10:root,courier courier:x:503: > ls -l /usr/src/ [courier@pac10fans courier]$ ls -l /usr/src/ total 4 drwxr-xr-x 7 root root 4096 Jan 8 15:47 redhat > ls -l /usr/src/redhat [courier@pac10fans courier]$ ls -l /usr/src/redhat total 20 drwxr-xr-x 2 root root 4096 Sep 6 08:26 BUILD drwxr-xr-x 8 root root 4096 Jan 8 15:47 RPMS drwxr-xr-x 2 root root 4096 Jan 17 05:54 SOURCES drwxr-xr-x 2 root root 4096 Jan 17 05:54 SPECS drwxr-xr-x 2 root root 4096 Sep 6 08:26 SRPMS > I was then able to use the rpm as root. Note that I'd re-set the > user's home directory as mentioned above before trying this. So, as you can see , I did build the packages as USER COURIER. NOw I have to install the packages as ROOT but first I have to reset the user's home directory to what. Can you please tell me exactly what to do Which packages should I install. I have no idea. I have a full domain of pac10fans.com and I want to be able to send and receive email using this domain ----- Original Message ----- From: "William Rowden" <[EMAIL PROTECTED]> To: "M.B." <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, February 16, 2002 9:31 AM Subject: Re: [courier-users] Courier RPM's Please > Today, M.B. wrote: > > I am new to linux so some of the terminology is new to me as > > well. [...] I am the only user on all the systems so I really > > never bothered to make a new USER / GROUP so I really dont > > understand all of it and how to do it > > Even on a single-user system, there are advantages to working as a > non-root user, and changing to root (e.g., via `su`) only when > necessary. This provides some protection against mistakes and some > security for the root login. > > > After reading this "build the RPM's as a normal user, making > > sure that the user in question has read/write privileges to > > /usr/src/redhat" - I thought if I would make a new user with the > > same exact settings as ROOT everything would work out > > Showing us the output of these two command might help: > > grep courier /etc/group > ls -l /usr/src/ > > > 4. Changed courier's home directory to /root (again trying to > > give it the same settings as root) > > I don't think this is necessary, and it may complicate use of that > user, depending on how the permissions are set. (Note that `usermod > -d /home/courier courier` will change back to a typical > configuration-see `man usermod`.) > > > [courier@pac10fans courier]$ rpm -ta courier-0.37.2.20020215.tar.gz > > error: Failed to rename /usr/src/redhat/SPECS/rpm-spec.SOS8KZ to > > /usr/src/redhat/SPECS/rpm-spec.SOS8KZ: > > That's odd: those two filenames are identical, but the error > message isn't "are the same file". > > > Permission denied: No such file or directory > > Perhaps it would help to also see the output of this command: > > ls -l /usr/src/redhat > > > So since I am the only user I really dont know how to make a > > proper user especially for courier and without knowing that I > > wont be able to install it > > The user isn't for courier itself, but rather for building packages > (and other tasks) without being root. On Red Hat 7.2, `man useradd` > and `info su` have explanations for using these commands. > > > ----- Original Message ----- > [snip] > > > On Fri, 15 Feb 2002, M.B. wrote: > > > > I am wondering if anyone has pre built RPM;s > > for RH 7.2 > [snip] > > > (or build a similar tree in the user home directory, and set > > > the environment accordingly for rpm). > > FWIW, I built the rpm as a normal user, in that user's home > directory, something like this (cf. > <http://www.courier-mta.org/FAQ.html#rpm>). > > cd ~ > mkdir rpm > mkdir rpm/SOURCES > mkdir rpm/SPECS > mkdir rpm/BUILD > mkdir rpm/SRPMS > mkdir rpm/RPMS > mkdir rpm/RPMS/i386 > echo "%_topdir $HOME/rpm" >> .rpmmacros > > I was then able to use the rpm as root. Note that I'd re-set the > user's home directory as mentioned above before trying this. > -- > -William > You don't need a patch on your arm to have honor. > > > _______________________________________________ > courier-users mailing list > [EMAIL PROTECTED] > Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users > > _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
