Installations on different user/group
The Doctor
doctor at doctor.nl2k.ab.ca
Fri Jan 30 23:33:15 UTC 2009
On Fri, Jan 30, 2009 at 09:39:56PM +0100, Julien ÉLIE wrote:
> Hi Russ,
>
>>> Who takes care of the creation of tradspool.map and related things?
>>> Should it be during the installation?
>>
>> It's created on the first read-write instantiation of the storage API, I
>> think. I suspect that the problem is that nnprd initializes everything
>> read-only and if you'd started innd first, it would have all worked.
>
> It indeed works if I try to run innd (or rather rc.news) first. Thanks!
>
>
>>> * makedbz does not seem to work (it runs instantly -- whereas it takes
>>> almost ten seconds in news/news);
>>
>> Is this a fresh installation without anything in the history file? The
>> creation of the blank database should be fairly fast.
>
> It is a fresh installation. I do not know what happened yesterday; now,
> it works instantly on my server.
>
> However, I have a problem with BSD/OS, at the end of "make install":
>
> ../support/install-sh -c -o julien -g user -m 0664 -B .OLD newsgroups.minimal /usr/home/julien/inn/install2.5/db/newsgroups
> touch /usr/home/julien/inn/install2.5/db/history
> chown julien /usr/home/julien/inn/install2.5/db/history
> chgrp user /usr/home/julien/inn/install2.5/db/history
> chmod 0664 /usr/home/julien/inn/install2.5/db/history
> test -z "" && /usr/home/julien/inn/install2.5/bin/makedbz -i -o
> makedbz: must be run as user group
> gmake[1]: *** [/usr/home/julien/inn/install2.5/db/history] Error 1
> gmake[1]: Leaving directory `/usr/home/julien/inn/inn-CURRENT-20090130/site'
> gmake: *** [install] Error 1
>
>
> The first line shows that julien/user is the configured user/group.
> makedbz is normally run as "user" group and I do not know why it complains.
> (It works fine on Debian -- with julien/users.)
>
> There is no final "s" in "user" in BSD/OS:
>
> % ls -l /usr/home/julien/inn/install2.5/db
> total 2
> -rw-rw-r-- 1 julien user 225 Jan 30 11:26 active
> -rw-rw-r-- 1 julien user 0 Jan 30 13:26 active.times
> -rw-rw-r-- 1 julien user 0 Jan 30 13:26 history
> -rw-rw-r-- 1 julien user 333 Jan 30 11:26 newsgroups
>
>
> Why is makedbz complaining?
> It is run in the "user" group: if I put "groups" in "make install", it answers
> "user kmem". (On my Debian, it answers "users adm".)
>
>
> % ls -l /usr/home/julien/inn/install2.5/bin/makedbz
> -r-xr-x--- 1 julien user 235875 Jan 30 11:25 /usr/home/julien/inn/install2.5/bin/makedbz
>
>
> void
> ensure_news_grp(bool may_setgid)
> {
> gid_t gid;
>
> get_news_uid_gid(false, &gid, true);
> if (may_setgid && geteuid() == 0) {
> setgid(gid);
> }
> if (getegid() != gid || getgid() != gid) {
> die ("must be run as %s group", innconf->runasgroup);
> }
> }
>
Usually here it is news:news but news and bin shares the same uid
and groups bin and uucp share the same Gid.
>
>
> --
> Julien ÉLIE
>
> « En vérité, le chemin importe peu, la volonté d'arriver suffit à tout. »
>
> _______________________________________________
> inn-workers mailing list
> inn-workers at lists.isc.org
> https://lists.isc.org/mailman/listinfo/inn-workers
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
--
Member - Liberal International
This is doctor at nl2k.ab.ca Ici doctor at nl2k.ab.ca
God, Queen and country! Beware Anti-Christ rising!
Birthdate: 29 Jan 1969 Redhill Surrey England
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the inn-workers
mailing list