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

Reply via email to