🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #73859

Re: should permissions be news and not root

#73859
From: rob
Date: Tue, 18 Jul 2006 10:10
149 lines
6100 bytes
John F. Morse wrote:
> 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


thanks for your post.

I did receive a email today from italy
suggesting

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

chown news /path/to/your/program

sorry to sound dim but what program and what path?


robert
Technical Details
Message-ID: <1153217456.396240.106940@35g2000cwc.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!postnews.google.com!35g2000cwc.googlegroups.com!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> <R4Wug.410345$Fs1.159381@bgtnsc05-news.ops.worldnet.att.net>

Show Full Headers
Complete Article Headers
Message-ID: <1153217456.396240.106940@35g2000cwc.googlegroups.com>
Subject: Re: should permissions be news and not root
Date: Tue, 18 Jul 2006 10:10:56 +0000
From: "rob" <r.rimmer@gmx.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> <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!postnews.google.com!35g2000cwc.googlegroups.com!not-for-mail
Newsgroups: news.software.nntp
Organization: http://groups.google.com
Lines: 149
NNTP-Posting-Host: 88.96.109.78
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1153217461 14168 127.0.0.1 (18 Jul 2006 10:11:01
 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 18 Jul 2006 10:11:01 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US;
 Firefox/1.5.0.4,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: 35g2000cwc.googlegroups.com; posting-host=88.96.109.78;
 posting-account=gyTLVg0AAABIfpFuS2H6z1rVhzADDTx0