🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86886

Re: News user

#86886
From: Julien ÉLIE
Date: Fri, 31 Jul 2015 13:06
65 lines
3562 bytes
Hi Paul,

> Having installed Debian Jessie and now built and make installed 2.6.0rc2 I am
> wondering about the best practice for using root account vs news account to
> do further setup?

I don't know what the best practice is related to news administration, 
not even if there *is* a best practice.
I suppose people will tell you what they got accustomed to doing.



> The docs talk of running things as news or creating things while as news. In
> my past setup using ubuntu a lot of files created using apt-get install inn2
> were created as user root and group root. So I ended up using sudo to obtain
> root privs to make the changes I needed.

The philosophy of Ubuntu (and Debian) is that configuration files are 
modified by admins.  As all INN's configuration files are in /etc/news, 
you have to get root privileges to modify them.
You also start & stop INN with init.d scripts as root.

Files created by INN (overview, articles, history...) then belong to the 
news user.



> Now with Debian I can su - and become root or su news but at the moment can't
> seem to login as news user.
> It looks like the etc/password file is set to not allow a news user to login?
>
> 1. Do I really need to be news user to do some of the setup steps or is
> becoming root ok? The docs suggest I need to be news user.

The docs shipped with INN are not related to a distribution.
If you install INN from sources, you will end up having everything owned 
by the news user.
If you use the Debian package, you will have to become root to modify 
the configuration files.  It OK to do that.



> 2. How best to become news user? My default debian install does not seem to
> allow it or perhaps it does but do I need to change the news user login
> password as root to be able to do so? Just not sure about this.

That's what I did.
I added /bin/zsh in the news line of the passwd file.
However, I did not add a password to that account.  I access the news 
account either from root or from SSH keys.

Note that I believe it's OK to add a password to the news user; you are 
free to do what best fits your needs and habits.


If other people here want to share their experience, do not hesitate!

-- 
Julien ÉLIE

« – Heureusement, nous aurons bientôt le TGV !
   – C'est quoi le tégévé ?
   – C'est le Transport Gaulois Véloce. » (Astérix)

Technical Details
Message-ID: <mpfrsp$ie2$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <1190310532@f100.n770.z3.fidonet.org>

Show Full Headers
Complete Article Headers
Message-ID: <mpfrsp$ie2$1@news.trigofacile.com>
Subject: Re: News user
Date: Fri, 31 Jul 2015 15:06:33 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <1190310532@f100.n770.z3.fidonet.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 31 Jul 2015 13:06:33 +0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="aaubervilliers-651-1-205-195.w83-114.abo.wanadoo.fr:83.114.36.195";
 logging-data="18882"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0)
 Gecko/20100101 Thunderbird/38.0.1
In-Reply-To: <1190310532@f100.n770.z3.fidonet.org>
X-Received-Body-CRC: 1951912815
X-Received-Bytes: 3558