🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #73853

Re: should permissions be news and not root

#73853
From: John F. Morse
Date: Tue, 18 Jul 2006 00:39
131 lines
5488 bytes
rob wrote:

>John F. Morse wrote:
>  
>
>>rob wrote:
>>
>>    
>>
>>>thanks for your post John
>>>
>>>ok What I trying to do is my user name rob is being used with suck
>>>here ;
>>>
>>>Delivered-To: rob@xstation.abcd.net
>>>Received: by xstation.abcd.net (Postfix, from userid 1000)
>>>	id D1B69391666; Mon, 17 Jul 2006 01:48:32 +0100 (BST)
>>>From: root@xstation.abcd.net (Cron Daemon)
>>>To: rob@xstation.abcd.net
>>>Subject: Cron <rob@xstation> suck nntp.aioe.org -A -bp -hl localhost -c
>>>-i 200 -M -n -Q
>>>X-Cron-Env: <SHELL=/bin/sh>
>>>X-Cron-Env: <HOME=/home/rob>
>>>X-Cron-Env: <PATH=/usr/bin:/bin>
>>>X-Cron-Env: <LOGNAME=rob>
>>>Message-Id: <20060717004832.D1B69391666@xstation.abcd.netDate: Mon, 17
>>>Jul 2006 01:48:32 +0100 (BST)
>>>
>>>Invalid default read for new active group, must be <= 0
>>>Attempting to connect to nntp.bignews.org
>>>Using Port 119
>>>Official host name: nntp.bignews.org
>>>Address: 221.274.45.71
>>>
>>>
>>>and the end of this message looks like this
>>>
>>>/etc/suck/sucknewsrc: Permission denied
>>>Moving newsrc to backup: Permission denied
>>>
>>>there are two points here
>>>a) i want to chage it so that user name rob is not used but at the same
>>>time i do not want to log out of user name rob
>>>
>>>b) permission denied --is this an issue? suck has all news permissions.
>>>
>>>
>>>robert
>>>
>>>      
>>>
>>I'm no help with Suck or SuckMT. I couldn't get either one to work at my
>>installation. SuckMT had an error, and Suck is far too complex for me to
>>figure out, using the weak documentation that is available.
>>
>>So I am using RumorMill on a Mac to pull news for the time being. It
>>streams with INN fine, but of course this method uses twice as much
>>electricity and puts out twice the heat. ;-)
>>
>>You might look at the permissions for sucknewsrc. Not just the owner and
>>group, but the rwx permissions, and be sure whoever (news?) is trying to
>>read or write is either the owner, or is in the group, or else has the
>>proper world (others) permissions (probably not a secure idea).
>>
>>I don't think news can normally write to /etc. Not even in the case of
>>the only place where I see news as a group in /etc/news:
>>
>>-rw-r-----  1 root news   597 2006-03-15 10:39 passwd.nntp
>>
>>Here news can only read, like all of the other /etc/news files, but this is more restrictive so the world cannot read the passwords.
>>
>>I don't know what you have in /etc/suck so I cannot comment.
>>
>>Wish I knew more about Suck and/or SuckMT so I could help further.
>>
>>Good luck,
>>
>>--
>>John
>>    
>>
>
>
>thanks for your post
>
>suck looks like this i do not want to change to something else as it
>seems to do the
>job but its ironing out the odds and ends.
>
>
>total 24
>drwxrwxr-x  2 news news 4096 2006-06-30 17:16 .
>drwxr-xr-x 90 root root 4096 2006-07-17 12:51 ..
>-rw-rw-r--  1 news news 1946 2004-10-27 13:37 get-news.conf
>-rw-rw-r--  1 news news   56 2004-10-27 13:37 suckkillfile
>-rw-r--r--  1 news news  122 2006-07-05 11:15 sucknewsrc
>-rw-rw-r--  1 news news  124 2004-10-27 13:37 sucknewsrc.old
>
>
>
>robert
>


Robert,

 From your directory listing, I can see no reason why the user "news" 
cannot read and write to the sucknewsrc file.

The user "rob" cannot, however, even if "rob" is in the news group, 
since the group only has read permission.

You might want to change the sucknewsrc file group permission 
temporarily to permit writing, and see if that is the problem.

chmod g+w sucknewsrc

or

chmod 664 sucknewsrc

If this fixes it, then the owner of the calling program is not the user 
"news" but probably "rob."

This suspicion also fits the reported failure to move the sucknewsrc 
file to sucknewsrc.old, since user "rob" has no permissions, but user 
"news" does. I also assume user "rob" is not in the group "news" so the 
move (rename) fails.

-- 
John
Technical Details
Message-ID: <R4Wug.410345$Fs1.159381@bgtnsc05-news.ops.worldnet.att.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
References: <1153141206.278388.106730@m79g2000cwm.googlegroups.com> <aaNug.407247$Fs1.32041@bgtnsc05-news.ops.worldnet.att.net> <1153149980.985093.3220@75g2000cwc.googlegroups.com> <pSOug.141340$mF2.99220@bgtnsc04-news.ops.worldnet.att.net> <1153161065.508041.97780@m73g2000cwd.googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <R4Wug.410345$Fs1.159381@bgtnsc05-news.ops.worldnet.att.net>
Subject: Re: should permissions be news and not root
Date: Tue, 18 Jul 2006 00:39:13 GMT
From: "John F. Morse" <xanadu.bbs@invalid.net>
References: <1153141206.278388.106730@m79g2000cwm.googlegroups.com> <aaNug.407247$Fs1.32041@bgtnsc05-news.ops.worldnet.att.net> <1153149980.985093.3220@75g2000cwc.googlegroups.com> <pSOug.141340$mF2.99220@bgtnsc04-news.ops.worldnet.att.net> <1153161065.508041.97780@m73g2000cwd.googlegroups.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
Reply-To: xanadu.bbs@invalid.net
Organization: Xanadu BBS
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040514
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: news.software.nntp
In-Reply-To: <1153161065.508041.97780@m73g2000cwd.googlegroups.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 131
NNTP-Posting-Host: 366aef7e23fb78fbe9fdb569d659b0ba
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 1153183153
NNTP-Posting-Date: Tue, 18 Jul 2006 00:39:13 GMT