🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #238691

Re: [leafnode] news user home directory

#238691
From: _JusSx_
Date: Sun, 13 Dec 2009 19:08
79 lines
3709 bytes
On 2009-12-13, Moe Trin <ibuprofin@painkiller.example.tld.invalid> wrote:
> On Sun, 13 Dec 2009, in the Usenet newsgroup news.software.readers, in article
><20091213130759.184@usenet.piggo.com>, _JusSx_ wrote:
>
>>Sometimes fetchnews reports this error:
>>
>>#v+
>>Could not chdir to HOME dir "/usr/lib/news": No such file or directory
>>#v-
>>
>>I gave a look at /etc/passwd and I found out that gentoo linux system
>>sets news user home directory to /usr/lib/news. However leafnode
>>installation script doesn't create /usr/lib/news but /var/lib/news and
>>/var/spool/news.
>
> From the Filesystem Hierarchy Standard from http://www.pathname.com/fhs/
>
> -------
> /usr/lib : Libraries for programming and packages
>
> Purpose
>
> /usr/lib includes object files, libraries, and internal binaries that
> are not intended to be executed directly by users or shell scripts. [22]
>
> Applications may use a single subdirectory under /usr/lib. If an
> application uses a subdirectory, all architecture-dependent data
> exclusively used by the application must be placed within that
> subdirectory. [23]
> -------
>
> Now clearly, the /usr/lib/news isn't meant to be a _home_ directory.
>
>>So I'm wondering what directory is the user news' home. Which one
>>should I use?
>
> Your system - your rules.  ;-)
>
>>Of course I don't think it exists a standard, but I Would like to know
>>your opinion.
>
> I'm not using Gentoo, nor leafnode, but you have two alternatives.
> You can create the non-standard /usr/lib/news - and no Linux police
> will come to your door to arrest you.  Or you could tell leafnode
> to use another directory. I've got slrn (slrnpull) using
> /var/spool/slrnpull as it's home, and there is a
> /var/spool/slrnpull/bin/  for some of the extra tools I use with that
> application.  /var/lib is meant for
>
>     /var/lib : Variable state information
>
> and /var/spool for
>
>     /var/spool : Application spool data
>
> so it's your choice.
>
>         Old guy

I fixed the problem by changing news home directory from /usr/lib/news
to /var/spool/news in /etc/passwd. Now It works great.  I wrote an
email to leafnode gentoo ebuild mantainter and I showed the problems.

I suggested:

1) if gentoo system requires news home directory to be /usr/lib/news,
leafnode ebuild should create that directory, at least;

2) if gentoo system does't require new home directory to be
/usr/lib/news, gentoo system could provide /var/spool/news directory
as default user home directory;

I like /var/spool/news to be default news user home directory.

However, I would like to thank you very much for your post.
_JusSx_

-- 
Linux is only free if your time has no value
Technical Details
Message-ID: <20091213194245.218@usenet.piggo.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
References: <20091213130759.184@usenet.piggo.com> <slrnhiacc9.mpv.ibuprofin@compton.phx.az.us>

Show Full Headers
Complete Article Headers
Message-ID: <20091213194245.218@usenet.piggo.com>
Subject: Re: [leafnode] news user home directory
Date: Sun, 13 Dec 2009 19:08:27 GMT
From: _JusSx_ <jussx@gmail.com>
References: <20091213130759.184@usenet.piggo.com> <slrnhiacc9.mpv.ibuprofin@compton.phx.az.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
Newsgroups: news.software.readers
Reply-To: jussx0@[spamhere]yahoo.it
User-Agent: slrn/0.9.8.1pl1 (Linux)
Lines: 79
NNTP-Posting-Host: 151.51.24.210
X-Complaints-To: abuse@libero.it
X-Trace: twister2.libero.it 1260731307 151.51.24.210 (Sun,
NNTP-Posting-Date: Sun, 13 Dec 2009 20:08:27 MET
Organization: [Infostrada]