Thread View: news.software.nntp
35 messages
35 total messages
Started by rob
Mon, 17 Jul 2006 13:00
should permissions be news and not root
Author: rob
Date: Mon, 17 Jul 2006 13:00
Date: Mon, 17 Jul 2006 13:00
34 lines
2960 bytes
2960 bytes
total 296 drwxr-xr-x 3 root root 4096 2006-07-11 12:23 . drwxr-xr-x 90 root root 4096 2006-07-17 12:51 .. -rw-r--r-- 1 root root 155 2006-03-15 10:39 actsync.cfg -rw-r--r-- 1 root root 382 2006-03-15 10:39 actsync.ign -rw-r--r-- 1 root root 304 2006-03-15 10:39 buffindexed.conf -rw-r--r-- 1 root root 87179 2006-07-11 14:20 control.ctl -rw-r--r-- 1 root root 859 2006-03-15 10:39 cycbuff.conf -rw-r--r-- 1 root root 495 2006-03-15 10:39 distrib.pats -rw-r--r-- 1 root root 1424 2006-03-15 10:39 expire.ctl drwxr-xr-x 2 root root 4096 2006-06-29 11:37 filter -rw-r--r-- 1 root root 5353 2006-03-15 10:39 incoming.conf -rw-r--r-- 1 root root 4831 2006-07-10 18:42 inn.conf -rw-r--r-- 1 root root 3179 2006-03-15 10:39 innfeed.conf -rw-r--r-- 1 root root 72395 2006-03-15 10:39 innreport.conf -rw-r--r-- 1 root root 2120 2006-03-15 10:39 innwatch.ctl -rw-r--r-- 1 root root 1158 2006-03-15 10:39 moderators -rw-r--r-- 1 root root 185 2006-03-15 10:39 motd.news -rw-r--r-- 1 root root 609 2006-03-15 10:39 news2mail.cf -rw-r--r-- 1 root root 5007 2006-07-05 14:26 newsfeeds -rw-r--r-- 1 root root 516 2006-03-15 10:39 nnrpd.track -rw-r--r-- 1 root root 583 2006-03-15 10:39 nntpsend.ctl -rw-r--r-- 1 root root 4939 2006-03-15 10:39 ovdb.conf -rw-r--r-- 1 root root 340 2006-03-15 10:39 overview.fmt -rw-r----- 1 root news 597 2006-03-15 10:39 passwd.nntp -rw-r--r-- 1 root root 1784 2006-03-15 10:39 radius.conf -rw-r--r-- 1 root root 4898 2006-07-11 09:20 readers.conf -rw-r--r-- 1 root root 911 2006-03-15 10:39 send-uucp.cf -rw-r--r-- 1 root root 1430 2006-03-15 10:39 storage.conf -rw-r--r-- 1 root root 114 2006-03-15 10:39 subscriptions robert
Re: should permissions be news and not root
Author: John F. Morse
Date: Mon, 17 Jul 2006 14:30
Date: Mon, 17 Jul 2006 14:30
74 lines
4925 bytes
4925 bytes
rob wrote: >total 296 >drwxr-xr-x 3 root root 4096 2006-07-11 12:23 . >drwxr-xr-x 90 root root 4096 2006-07-17 12:51 .. >-rw-r--r-- 1 root root 155 2006-03-15 10:39 actsync.cfg >-rw-r--r-- 1 root root 382 2006-03-15 10:39 actsync.ign >-rw-r--r-- 1 root root 304 2006-03-15 10:39 buffindexed.conf >-rw-r--r-- 1 root root 87179 2006-07-11 14:20 control.ctl >-rw-r--r-- 1 root root 859 2006-03-15 10:39 cycbuff.conf >-rw-r--r-- 1 root root 495 2006-03-15 10:39 distrib.pats >-rw-r--r-- 1 root root 1424 2006-03-15 10:39 expire.ctl >drwxr-xr-x 2 root root 4096 2006-06-29 11:37 filter >-rw-r--r-- 1 root root 5353 2006-03-15 10:39 incoming.conf >-rw-r--r-- 1 root root 4831 2006-07-10 18:42 inn.conf >-rw-r--r-- 1 root root 3179 2006-03-15 10:39 innfeed.conf >-rw-r--r-- 1 root root 72395 2006-03-15 10:39 innreport.conf >-rw-r--r-- 1 root root 2120 2006-03-15 10:39 innwatch.ctl >-rw-r--r-- 1 root root 1158 2006-03-15 10:39 moderators >-rw-r--r-- 1 root root 185 2006-03-15 10:39 motd.news >-rw-r--r-- 1 root root 609 2006-03-15 10:39 news2mail.cf >-rw-r--r-- 1 root root 5007 2006-07-05 14:26 newsfeeds >-rw-r--r-- 1 root root 516 2006-03-15 10:39 nnrpd.track >-rw-r--r-- 1 root root 583 2006-03-15 10:39 nntpsend.ctl >-rw-r--r-- 1 root root 4939 2006-03-15 10:39 ovdb.conf >-rw-r--r-- 1 root root 340 2006-03-15 10:39 overview.fmt >-rw-r----- 1 root news 597 2006-03-15 10:39 passwd.nntp >-rw-r--r-- 1 root root 1784 2006-03-15 10:39 radius.conf >-rw-r--r-- 1 root root 4898 2006-07-11 09:20 readers.conf >-rw-r--r-- 1 root root 911 2006-03-15 10:39 send-uucp.cf >-rw-r--r-- 1 root root 1430 2006-03-15 10:39 storage.conf >-rw-r--r-- 1 root root 114 2006-03-15 10:39 subscriptions > > >robert > Those look good. Compare to mine below. They seem identical, and my INN 2.4.3 is working fine. -- John drwxr-xr-x 3 root root 1112 2006-07-16 15:14 . drwxr-xr-x 103 root root 5768 2006-07-11 20:08 .. -rw-r--r-- 1 root root 162 2006-07-16 14:44 actsync.cfg -rw-r--r-- 1 root root 1120 2006-07-16 15:14 actsync.ign -rw-r--r-- 1 root root 304 2006-06-18 13:01 buffindexed.conf -rw-r--r-- 1 root root 87179 2006-06-18 13:01 control.ctl -rw-r--r-- 1 root root 859 2006-06-18 13:01 cycbuff.conf -rw-r--r-- 1 root root 495 2006-06-18 13:01 distrib.pats -rw-r--r-- 1 root root 1526 2006-07-07 01:38 expire.ctl drwxr-xr-x 2 root root 336 2006-07-07 05:42 filter -rw-r--r-- 1 root root 5515 2006-06-23 08:02 incoming.conf -rw-r--r-- 1 root root 4961 2006-07-07 00:33 inn.conf -rw-r--r-- 1 root root 3638 2006-06-23 08:35 innfeed.conf -rw-r--r-- 1 root root 72395 2006-06-18 13:01 innreport.conf -rw-r--r-- 1 root root 2120 2006-06-18 13:01 innwatch.ctl -rw-r--r-- 1 root root 1217 2006-06-20 19:04 moderators -rw-r--r-- 1 root root 185 2006-06-18 13:01 motd.news -rw-r--r-- 1 root root 609 2006-06-18 13:01 news2mail.cf -rw-r--r-- 1 root root 5173 2006-06-23 08:05 newsfeeds -rw-r--r-- 1 root root 516 2006-06-18 13:01 nnrpd.track -rw-r--r-- 1 root root 583 2006-06-18 13:01 nntpsend.ctl -rw-r--r-- 1 root root 4939 2006-06-18 13:01 ovdb.conf -rw-r--r-- 1 root root 340 2006-06-18 13:01 overview.fmt -rw-r----- 1 root news 597 2006-06-18 13:01 passwd.nntp -rw-r--r-- 1 root root 1784 2006-06-18 13:01 radius.conf -rw-r--r-- 1 root root 794 2006-06-18 13:01 readers.conf -rw-r--r-- 1 root root 911 2006-06-18 13:01 send-uucp.cf -rw-r--r-- 1 root root 1430 2006-06-18 13:01 storage.conf -rw-r--r-- 1 root root 114 2006-06-18 13:01 subscriptions
Re: should permissions be news and not root
Author: rob
Date: Mon, 17 Jul 2006 15:26
Date: Mon, 17 Jul 2006 15:26
115 lines
6450 bytes
6450 bytes
John F. Morse wrote: > rob wrote: > > >total 296 > >drwxr-xr-x 3 root root 4096 2006-07-11 12:23 . > >drwxr-xr-x 90 root root 4096 2006-07-17 12:51 .. > >-rw-r--r-- 1 root root 155 2006-03-15 10:39 actsync.cfg > >-rw-r--r-- 1 root root 382 2006-03-15 10:39 actsync.ign > >-rw-r--r-- 1 root root 304 2006-03-15 10:39 buffindexed.conf > >-rw-r--r-- 1 root root 87179 2006-07-11 14:20 control.ctl > >-rw-r--r-- 1 root root 859 2006-03-15 10:39 cycbuff.conf > >-rw-r--r-- 1 root root 495 2006-03-15 10:39 distrib.pats > >-rw-r--r-- 1 root root 1424 2006-03-15 10:39 expire.ctl > >drwxr-xr-x 2 root root 4096 2006-06-29 11:37 filter > >-rw-r--r-- 1 root root 5353 2006-03-15 10:39 incoming.conf > >-rw-r--r-- 1 root root 4831 2006-07-10 18:42 inn.conf > >-rw-r--r-- 1 root root 3179 2006-03-15 10:39 innfeed.conf > >-rw-r--r-- 1 root root 72395 2006-03-15 10:39 innreport.conf > >-rw-r--r-- 1 root root 2120 2006-03-15 10:39 innwatch.ctl > >-rw-r--r-- 1 root root 1158 2006-03-15 10:39 moderators > >-rw-r--r-- 1 root root 185 2006-03-15 10:39 motd.news > >-rw-r--r-- 1 root root 609 2006-03-15 10:39 news2mail.cf > >-rw-r--r-- 1 root root 5007 2006-07-05 14:26 newsfeeds > >-rw-r--r-- 1 root root 516 2006-03-15 10:39 nnrpd.track > >-rw-r--r-- 1 root root 583 2006-03-15 10:39 nntpsend.ctl > >-rw-r--r-- 1 root root 4939 2006-03-15 10:39 ovdb.conf > >-rw-r--r-- 1 root root 340 2006-03-15 10:39 overview.fmt > >-rw-r----- 1 root news 597 2006-03-15 10:39 passwd.nntp > >-rw-r--r-- 1 root root 1784 2006-03-15 10:39 radius.conf > >-rw-r--r-- 1 root root 4898 2006-07-11 09:20 readers.conf > >-rw-r--r-- 1 root root 911 2006-03-15 10:39 send-uucp.cf > >-rw-r--r-- 1 root root 1430 2006-03-15 10:39 storage.conf > >-rw-r--r-- 1 root root 114 2006-03-15 10:39 subscriptions > > > > > >robert > > > > > Those look good. Compare to mine below. They seem identical, and my INN > 2.4.3 is working fine. > > -- > John > > drwxr-xr-x 3 root root 1112 2006-07-16 15:14 . > drwxr-xr-x 103 root root 5768 2006-07-11 20:08 .. > -rw-r--r-- 1 root root 162 2006-07-16 14:44 actsync.cfg > -rw-r--r-- 1 root root 1120 2006-07-16 15:14 actsync.ign > -rw-r--r-- 1 root root 304 2006-06-18 13:01 buffindexed.conf > -rw-r--r-- 1 root root 87179 2006-06-18 13:01 control.ctl > -rw-r--r-- 1 root root 859 2006-06-18 13:01 cycbuff.conf > -rw-r--r-- 1 root root 495 2006-06-18 13:01 distrib.pats > -rw-r--r-- 1 root root 1526 2006-07-07 01:38 expire.ctl > drwxr-xr-x 2 root root 336 2006-07-07 05:42 filter > -rw-r--r-- 1 root root 5515 2006-06-23 08:02 incoming.conf > -rw-r--r-- 1 root root 4961 2006-07-07 00:33 inn.conf > -rw-r--r-- 1 root root 3638 2006-06-23 08:35 innfeed.conf > -rw-r--r-- 1 root root 72395 2006-06-18 13:01 innreport.conf > -rw-r--r-- 1 root root 2120 2006-06-18 13:01 innwatch.ctl > -rw-r--r-- 1 root root 1217 2006-06-20 19:04 moderators > -rw-r--r-- 1 root root 185 2006-06-18 13:01 motd.news > -rw-r--r-- 1 root root 609 2006-06-18 13:01 news2mail.cf > -rw-r--r-- 1 root root 5173 2006-06-23 08:05 newsfeeds > -rw-r--r-- 1 root root 516 2006-06-18 13:01 nnrpd.track > -rw-r--r-- 1 root root 583 2006-06-18 13:01 nntpsend.ctl > -rw-r--r-- 1 root root 4939 2006-06-18 13:01 ovdb.conf > -rw-r--r-- 1 root root 340 2006-06-18 13:01 overview.fmt > -rw-r----- 1 root news 597 2006-06-18 13:01 passwd.nntp > -rw-r--r-- 1 root root 1784 2006-06-18 13:01 radius.conf > -rw-r--r-- 1 root root 794 2006-06-18 13:01 readers.conf > -rw-r--r-- 1 root root 911 2006-06-18 13:01 send-uucp.cf > -rw-r--r-- 1 root root 1430 2006-06-18 13:01 storage.conf > -rw-r--r-- 1 root root 114 2006-06-18 13:01 subscriptions 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
Re: should permissions be news and not root
Author: John F. Morse
Date: Mon, 17 Jul 2006 16:25
Date: Mon, 17 Jul 2006 16:25
72 lines
3795 bytes
3795 bytes
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
Re: should permissions be news and not root
Author: rob
Date: Mon, 17 Jul 2006 18:31
Date: Mon, 17 Jul 2006 18:31
95 lines
4642 bytes
4642 bytes
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
Re: should permissions be news and not root
Author: John F. Morse
Date: Tue, 18 Jul 2006 00:39
Date: Tue, 18 Jul 2006 00:39
131 lines
5488 bytes
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
Re: should permissions be news and not root
Author: rob
Date: Tue, 18 Jul 2006 10:10
Date: Tue, 18 Jul 2006 10:10
149 lines
6100 bytes
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
Re: should permissions be news and not root
Author: John F. Morse
Date: Tue, 18 Jul 2006 13:41
Date: Tue, 18 Jul 2006 13:41
58 lines
3643 bytes
3643 bytes
rob wrote: >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 > My guess is they are referring to Suck, since that seems to be the program which cannot read, or more likely write, to the sucknewsrc and/or sucknewsrc.old file. The "path" reference is to get you to the location of the program (probably Suck in this case). Wherever you installed it. You do not need to enter the path "/path/to/your/" anywhere, if you first change to the directory (cd) where the program is. This allows the chown command to find the program. Or as they probably are thinking, you can use chown from anywhere in the file system, to change any specific program, but you need to give a full pathname to that file so it can find the program. If Suck is the program to which you want to change the owner to user news, and it is in /usr/lib/news/bin, then either cd to that directory and enter "chown suck news", or from anywhere else enter "chown /usr/lib/news/bin/suck news" to have it change. My preference is to cd to the directory, then perform any ownership and permission modifications. Then I'm already there to check them with "ls -l" to see if they were correctly applied. Saves typing a long pathname more than once, or using the shell history and editing. My reasoning is I'm a fast typist, but not a touch-typist, and I make many typos from poor aim at the keys, even though I look at the keyboard when typing. The less typing I do means there is less chance for reentering a corrected command a second time. Or less chances of doing harm to a file or the system. I learned years ago to never work as Root unless absolutely necessary, and sudo eliminates almost any reason to become the superuser. -- John
Re: should permissions be news and not root
Author: Bozweb
Date: Tue, 18 Jul 2006 15:02
Date: Tue, 18 Jul 2006 15:02
71 lines
4683 bytes
4683 bytes
On 17 Jul 2006 06:00:06 -0700, "rob" <r.rimmer@gmx.net> wrote: >total 296 >drwxr-xr-x 3 root root 4096 2006-07-11 12:23 . >drwxr-xr-x 90 root root 4096 2006-07-17 12:51 .. >-rw-r--r-- 1 root root 155 2006-03-15 10:39 actsync.cfg >-rw-r--r-- 1 root root 382 2006-03-15 10:39 actsync.ign >-rw-r--r-- 1 root root 304 2006-03-15 10:39 buffindexed.conf >-rw-r--r-- 1 root root 87179 2006-07-11 14:20 control.ctl >-rw-r--r-- 1 root root 859 2006-03-15 10:39 cycbuff.conf >-rw-r--r-- 1 root root 495 2006-03-15 10:39 distrib.pats >-rw-r--r-- 1 root root 1424 2006-03-15 10:39 expire.ctl >drwxr-xr-x 2 root root 4096 2006-06-29 11:37 filter >-rw-r--r-- 1 root root 5353 2006-03-15 10:39 incoming.conf >-rw-r--r-- 1 root root 4831 2006-07-10 18:42 inn.conf >-rw-r--r-- 1 root root 3179 2006-03-15 10:39 innfeed.conf >-rw-r--r-- 1 root root 72395 2006-03-15 10:39 innreport.conf >-rw-r--r-- 1 root root 2120 2006-03-15 10:39 innwatch.ctl >-rw-r--r-- 1 root root 1158 2006-03-15 10:39 moderators >-rw-r--r-- 1 root root 185 2006-03-15 10:39 motd.news >-rw-r--r-- 1 root root 609 2006-03-15 10:39 news2mail.cf >-rw-r--r-- 1 root root 5007 2006-07-05 14:26 newsfeeds >-rw-r--r-- 1 root root 516 2006-03-15 10:39 nnrpd.track >-rw-r--r-- 1 root root 583 2006-03-15 10:39 nntpsend.ctl >-rw-r--r-- 1 root root 4939 2006-03-15 10:39 ovdb.conf >-rw-r--r-- 1 root root 340 2006-03-15 10:39 overview.fmt >-rw-r----- 1 root news 597 2006-03-15 10:39 passwd.nntp >-rw-r--r-- 1 root root 1784 2006-03-15 10:39 radius.conf >-rw-r--r-- 1 root root 4898 2006-07-11 09:20 readers.conf >-rw-r--r-- 1 root root 911 2006-03-15 10:39 send-uucp.cf >-rw-r--r-- 1 root root 1430 2006-03-15 10:39 storage.conf >-rw-r--r-- 1 root root 114 2006-03-15 10:39 subscriptions > > >robert ??? -rw-r--r-- 1 news news 155 Oct 8 2005 actsync.cfg -rw-r--r-- 1 news news 382 Oct 8 2005 actsync.ign -rw-r--r-- 1 news news 304 Oct 8 2005 buffindexed.conf -rw-r----- 1 news news 87179 Jun 26 21:55 control.ctl -rw-r--r-- 1 news news 859 Oct 8 2005 cycbuff.conf -rw-r--r-- 1 news news 495 Oct 8 2005 distrib.pats -rw-r----- 1 news news 1424 Oct 8 2005 expire.ctl -rw-r----- 1 news news 5674 Jun 14 17:21 incoming.conf -rw-r--r-- 1 news news 4957 Mar 11 10:44 inn.conf -rw-r----- 1 news news 3524 Jun 14 17:22 innfeed.conf -rw-r--r-- 1 news news 72407 Oct 8 2005 innreport.conf -rw-r--r-- 1 news news 2120 Oct 8 2005 innwatch.ctl -rw-r--r-- 1 news news 1216 Mar 14 19:04 moderators -rw-r--r-- 1 news news 185 Oct 8 2005 motd.news -rw-r--r-- 1 news news 609 Oct 8 2005 news2mail.cf -rw-r--r-- 1 news news 5301 Jun 14 17:23 newsfeeds -rw-r--r-- 1 news news 516 Oct 8 2005 nnrpd.track -rw-r----- 1 news news 583 Oct 8 2005 nntpsend.ctl -rw-r--r-- 1 root news 111 Apr 8 15:12 nntpusers -rw-r--r-- 1 news news 4939 Oct 8 2005 ovdb.conf -rw-r--r-- 1 news news 340 Oct 8 2005 overview.fmt -rw-r----- 1 news news 597 Oct 8 2005 passwd.nntp -rw-r----- 1 news news 1758 Oct 8 2005 radius.conf -rw-r----- 1 news news 2963 Dec 21 2005 readers.conf -rw-r--r-- 1 news news 2963 Dec 21 2005 readers.conf.bak -rw-r--r-- 1 news news 122 Oct 8 2005 sasl.conf -rw-r--r-- 1 news news 1430 Oct 8 2005 storage.conf -rw-r--r-- 1 news news 114 Oct 8 2005 subscriptions Running excelent here. -- Posted by http://news.bozweb.net http://www.bozweb.net Key: 0x82DEE1A0
Re: should permissions be news and not root
Author: Iulius
Date: Tue, 18 Jul 2006 17:00
Date: Tue, 18 Jul 2006 17:00
12 lines
1526 bytes
1526 bytes
Run: /usr/lib/news/bin/inncheck -f -perms (or whatever path) Then, execute the commands (being root). -- Iulius « Qu'est-ce que je vous sers pour arroser le sanglier bouilli ? De l'eau chaude, de la cervoise tiède ou du vin rouge glacé ? » (Astérix)
Re: should permissions be news and not root
Author: rob
Date: Tue, 18 Jul 2006 20:54
Date: Tue, 18 Jul 2006 20:54
43 lines
2662 bytes
2662 bytes
Iulius wrote: > Run: > > /usr/lib/news/bin/inncheck -f -perms > (or whatever path) > > Then, execute the commands (being root). > > -- > Iulius > > « Qu'est-ce que je vous sers pour arroser le sanglier bouilli ? > De l'eau chaude, de la cervoise tiède ou du vin rouge glacé ? » (Astérix) thanks for all your posts well on the command /usr/lib/news/bin/inncheck -f -perms there is a long 16k to be correct starts like this: # /var/spool/news/archive:0: mode 775, should be 755 chmod 755 /var/spool/news/archive # /var/spool/news/incoming/bad:0: mode 775, should be 755 chmod 755 /var/spool/news/incoming/bad # /var/spool/news/outgoing:0: mode 775, should be 755 chmod 755 /var/spool/news/outgoing # /usr/lib/news/bin/control:0: owned by root, should be news chown news /usr/lib/news/bin/control # /usr/lib/news/bin/control:0: in group root, should be news chgrp news /usr/lib/news/bin/control # /usr/lib/news/bin:0: owned by root, should be news chown news /usr/lib/news/bin # /usr/lib/news/bin:0: in group root, should be news so i assume each one has to be changed accordingly? robert ps thanks Bozweb, for all your post also, diffrent i suppose learning the long way is sometimes a good thing
Re: should permissions be news and not root
Author: John F. Morse
Date: Tue, 18 Jul 2006 21:03
Date: Tue, 18 Jul 2006 21:03
54 lines
2773 bytes
2773 bytes
rob wrote: >Iulius wrote: > > >>Run: >> >>/usr/lib/news/bin/inncheck -f -perms >>(or whatever path) >> >>Then, execute the commands (being root). >> >>-- >>Iulius >> >>« Qu'est-ce que je vous sers pour arroser le sanglier bouilli ? >> De l'eau chaude, de la cervoise tiède ou du vin rouge glacé ? » (Astérix) >> >> > >thanks for all your posts > >well on the command /usr/lib/news/bin/inncheck -f -perms > >there is a long 16k to be correct starts like this: > ># /var/spool/news/archive:0: mode 775, should be 755 >chmod 755 /var/spool/news/archive ># /var/spool/news/incoming/bad:0: mode 775, should be 755 >chmod 755 /var/spool/news/incoming/bad ># /var/spool/news/outgoing:0: mode 775, should be 755 >chmod 755 /var/spool/news/outgoing ># /usr/lib/news/bin/control:0: owned by root, should be news >chown news /usr/lib/news/bin/control ># /usr/lib/news/bin/control:0: in group root, should be news >chgrp news /usr/lib/news/bin/control ># /usr/lib/news/bin:0: owned by root, should be news >chown news /usr/lib/news/bin ># /usr/lib/news/bin:0: in group root, should be news > >so i assume each one has to be changed accordingly? > >robert >ps thanks Bozweb, for all your post also, diffrent i suppose learning >the long way >is sometimes a good thing > You can easily copy and paste that log into a shell and it will do the work for you. -- John
Re: should permissions be news and not root
Author: Iulius
Date: Tue, 18 Jul 2006 21:38
Date: Tue, 18 Jul 2006 21:38
13 lines
1651 bytes
1651 bytes
En réponse à John F. Morse : > You can easily copy and paste that log into a shell and it will do the > work for you. That is to say: /usr/lib/news/bin/inncheck -f -perms > result sh result -- Iulius « L'État, c'est moi. » (Louis XIV)
Re: should permissions be news and not root
Author: John F. Morse
Date: Wed, 19 Jul 2006 08:21
Date: Wed, 19 Jul 2006 08:21
21 lines
1735 bytes
1735 bytes
Iulius wrote: > En réponse à John F. Morse : > >> You can easily copy and paste that log into a shell and it will do >> the work for you. > > > That is to say: > > /usr/lib/news/bin/inncheck -f -perms > result > sh result Yes. That is the method I originally read. Thanks. -- John
Re: should permissions be news and not root
Author: rob
Date: Wed, 19 Jul 2006 09:56
Date: Wed, 19 Jul 2006 09:56
78 lines
4054 bytes
4054 bytes
John F. Morse wrote: > Iulius wrote: > > > En réponse à John F. Morse : > > > >> You can easily copy and paste that log into a shell and it will do > >> the work for you. > > > > > > That is to say: > > > > /usr/lib/news/bin/inncheck -f -perms > result > > sh result > > > > Yes. That is the method I originally read. > > Thanks. > thnaks for all your post. sas was obtained by running rob@xstation:~$ /usr/lib/news/bin/inncheck -f -perms > sas so i ran file sas with command:(as root) rob@xstation:~$ sudo sh sas Password: rob@xstation:~$ cd /etc/news rob@xstation:/etc/news$ ls -la total 296 drwxr-xr-x 3 news news 4096 2006-07-11 12:23 . drwxr-xr-x 90 root root 4096 2006-07-19 07:08 .. -rw-r--r-- 1 root root 155 2006-03-15 10:39 actsync.cfg -rw-r--r-- 1 root root 382 2006-03-15 10:39 actsync.ign -rw-r--r-- 1 root root 304 2006-03-15 10:39 buffindexed.conf -rw-r----- 1 news news 87179 2006-07-11 14:20 control.ctl -rw-r--r-- 1 root root 859 2006-03-15 10:39 cycbuff.conf -rw-r--r-- 1 root root 495 2006-03-15 10:39 distrib.pats -rw-r----- 1 news news 1424 2006-03-15 10:39 expire.ctl drwxr-xr-x 2 root root 4096 2006-06-29 11:37 filter -rw-r----- 1 news news 5353 2006-03-15 10:39 incoming.conf -rw-r--r-- 1 news news 4831 2006-07-10 18:42 inn.conf -rw-r--r-- 1 root root 3179 2006-03-15 10:39 innfeed.conf -rw-r--r-- 1 root root 72395 2006-03-15 10:39 innreport.conf -rw-r--r-- 1 root root 2120 2006-03-15 10:39 innwatch.ctl -rw-r--r-- 1 news news 1158 2006-03-15 10:39 moderators -rw-r--r-- 1 root root 185 2006-03-15 10:39 motd.news -rw-r--r-- 1 root root 609 2006-03-15 10:39 news2mail.cf -rw-r--r-- 1 news news 5007 2006-07-05 14:26 newsfeeds -rw-r--r-- 1 root root 516 2006-03-15 10:39 nnrpd.track -rw-r----- 1 news news 583 2006-03-15 10:39 nntpsend.ctl -rw-r--r-- 1 root root 4939 2006-03-15 10:39 ovdb.conf -rw-r--r-- 1 news news 340 2006-03-15 10:39 overview.fmt -rw-r----- 1 news news 597 2006-03-15 10:39 passwd.nntp -rw-r--r-- 1 root root 1784 2006-03-15 10:39 radius.conf -rw-r----- 1 news news 4898 2006-07-11 09:20 readers.conf -rw-r--r-- 1 root root 911 2006-03-15 10:39 send-uucp.cf -rw-r--r-- 1 root root 1430 2006-03-15 10:39 storage.conf -rw-r--r-- 1 root root 114 2006-03-15 10:39 subscriptions robert > -- > John
Re: should permissions be news and not root
Author: John F. Morse
Date: Wed, 19 Jul 2006 17:25
Date: Wed, 19 Jul 2006 17:25
100 lines
4788 bytes
4788 bytes
rob wrote: >John F. Morse wrote: > > >>Iulius wrote: >> >> >> >>>En réponse à John F. Morse : >>> >>> >>> >>>>You can easily copy and paste that log into a shell and it will do >>>>the work for you. >>>> >>>> >>>That is to say: >>> >>>/usr/lib/news/bin/inncheck -f -perms > result >>>sh result >>> >>> >> >>Yes. That is the method I originally read. >> >>Thanks. >> >> >> > > > >thnaks for all your post. > >sas was obtained by running >rob@xstation:~$ /usr/lib/news/bin/inncheck -f -perms > sas > > > >so i ran file sas with command:(as root) > >rob@xstation:~$ sudo sh sas >Password: >rob@xstation:~$ cd /etc/news >rob@xstation:/etc/news$ ls -la >total 296 >drwxr-xr-x 3 news news 4096 2006-07-11 12:23 . >drwxr-xr-x 90 root root 4096 2006-07-19 07:08 .. >-rw-r--r-- 1 root root 155 2006-03-15 10:39 actsync.cfg >-rw-r--r-- 1 root root 382 2006-03-15 10:39 actsync.ign >-rw-r--r-- 1 root root 304 2006-03-15 10:39 buffindexed.conf >-rw-r----- 1 news news 87179 2006-07-11 14:20 control.ctl >-rw-r--r-- 1 root root 859 2006-03-15 10:39 cycbuff.conf >-rw-r--r-- 1 root root 495 2006-03-15 10:39 distrib.pats >-rw-r----- 1 news news 1424 2006-03-15 10:39 expire.ctl >drwxr-xr-x 2 root root 4096 2006-06-29 11:37 filter >-rw-r----- 1 news news 5353 2006-03-15 10:39 incoming.conf >-rw-r--r-- 1 news news 4831 2006-07-10 18:42 inn.conf >-rw-r--r-- 1 root root 3179 2006-03-15 10:39 innfeed.conf >-rw-r--r-- 1 root root 72395 2006-03-15 10:39 innreport.conf >-rw-r--r-- 1 root root 2120 2006-03-15 10:39 innwatch.ctl >-rw-r--r-- 1 news news 1158 2006-03-15 10:39 moderators >-rw-r--r-- 1 root root 185 2006-03-15 10:39 motd.news >-rw-r--r-- 1 root root 609 2006-03-15 10:39 news2mail.cf >-rw-r--r-- 1 news news 5007 2006-07-05 14:26 newsfeeds >-rw-r--r-- 1 root root 516 2006-03-15 10:39 nnrpd.track >-rw-r----- 1 news news 583 2006-03-15 10:39 nntpsend.ctl >-rw-r--r-- 1 root root 4939 2006-03-15 10:39 ovdb.conf >-rw-r--r-- 1 news news 340 2006-03-15 10:39 overview.fmt >-rw-r----- 1 news news 597 2006-03-15 10:39 passwd.nntp >-rw-r--r-- 1 root root 1784 2006-03-15 10:39 radius.conf >-rw-r----- 1 news news 4898 2006-07-11 09:20 readers.conf >-rw-r--r-- 1 root root 911 2006-03-15 10:39 send-uucp.cf >-rw-r--r-- 1 root root 1430 2006-03-15 10:39 storage.conf >-rw-r--r-- 1 root root 114 2006-03-15 10:39 subscriptions > > >robert > Does it still work OK? I presume it does. I think changing the owner and group to user "news" just makes it easier to modify these config files without having to sudo, which also means you would need to add the user "news" to the /etc/sudoers file first. Perhaps Jeff or Russ can verify this? I seem to remember reading or being told that these inncheck ownership errors are not important, as long as user "news" can read by having the mode "r" in the "others" column. I have my personal user account in the sudoers, and use it when modifying the config files. I don't give "news" sudo privileges to eliminate that route should a hacker somehow become the user "news." -- John
Re: should permissions be news and not root
Author: rob
Date: Wed, 19 Jul 2006 17:50
Date: Wed, 19 Jul 2006 17:50
136 lines
5986 bytes
5986 bytes
John F. Morse wrote: > rob wrote: > > >John F. Morse wrote: > > > > > >>Iulius wrote: > >> > >> > >> > >>>En réponse à John F. Morse : > >>> > >>> > >>> > >>>>You can easily copy and paste that log into a shell and it will do > >>>>the work for you. > >>>> > >>>> > >>>That is to say: > >>> > >>>/usr/lib/news/bin/inncheck -f -perms > result > >>>sh result > >>> > >>> > >> > >>Yes. That is the method I originally read. > >> > >>Thanks. > >> > >> > >> > > > > > > > >thnaks for all your post. > > > >sas was obtained by running > >rob@xstation:~$ /usr/lib/news/bin/inncheck -f -perms > sas > > > > > > > >so i ran file sas with command:(as root) > > > >rob@xstation:~$ sudo sh sas > >Password: > >rob@xstation:~$ cd /etc/news > >rob@xstation:/etc/news$ ls -la > >total 296 > >drwxr-xr-x 3 news news 4096 2006-07-11 12:23 . > >drwxr-xr-x 90 root root 4096 2006-07-19 07:08 .. > >-rw-r--r-- 1 root root 155 2006-03-15 10:39 actsync.cfg > >-rw-r--r-- 1 root root 382 2006-03-15 10:39 actsync.ign > >-rw-r--r-- 1 root root 304 2006-03-15 10:39 buffindexed.conf > >-rw-r----- 1 news news 87179 2006-07-11 14:20 control.ctl > >-rw-r--r-- 1 root root 859 2006-03-15 10:39 cycbuff.conf > >-rw-r--r-- 1 root root 495 2006-03-15 10:39 distrib.pats > >-rw-r----- 1 news news 1424 2006-03-15 10:39 expire.ctl > >drwxr-xr-x 2 root root 4096 2006-06-29 11:37 filter > >-rw-r----- 1 news news 5353 2006-03-15 10:39 incoming.conf > >-rw-r--r-- 1 news news 4831 2006-07-10 18:42 inn.conf > >-rw-r--r-- 1 root root 3179 2006-03-15 10:39 innfeed.conf > >-rw-r--r-- 1 root root 72395 2006-03-15 10:39 innreport.conf > >-rw-r--r-- 1 root root 2120 2006-03-15 10:39 innwatch.ctl > >-rw-r--r-- 1 news news 1158 2006-03-15 10:39 moderators > >-rw-r--r-- 1 root root 185 2006-03-15 10:39 motd.news > >-rw-r--r-- 1 root root 609 2006-03-15 10:39 news2mail.cf > >-rw-r--r-- 1 news news 5007 2006-07-05 14:26 newsfeeds > >-rw-r--r-- 1 root root 516 2006-03-15 10:39 nnrpd.track > >-rw-r----- 1 news news 583 2006-03-15 10:39 nntpsend.ctl > >-rw-r--r-- 1 root root 4939 2006-03-15 10:39 ovdb.conf > >-rw-r--r-- 1 news news 340 2006-03-15 10:39 overview.fmt > >-rw-r----- 1 news news 597 2006-03-15 10:39 passwd.nntp > >-rw-r--r-- 1 root root 1784 2006-03-15 10:39 radius.conf > >-rw-r----- 1 news news 4898 2006-07-11 09:20 readers.conf > >-rw-r--r-- 1 root root 911 2006-03-15 10:39 send-uucp.cf > >-rw-r--r-- 1 root root 1430 2006-03-15 10:39 storage.conf > >-rw-r--r-- 1 root root 114 2006-03-15 10:39 subscriptions > > > > > >robert > > > > > Does it still work OK? > > I presume it does. > > I think changing the owner and group to user "news" just makes it easier > to modify these config files without having to sudo, which also means > you would need to add the user "news" to the /etc/sudoers file first. > > Perhaps Jeff or Russ can verify this? I seem to remember reading or > being told that these inncheck ownership errors are not important, as > long as user "news" can read by having the mode "r" in the "others" column. > > I have my personal user account in the sudoers, and use it when > modifying the config files. I don't give "news" sudo privileges to > eliminate that route should a hacker somehow become the user "news." > > -- > John well it not appear to be: i have a file called cron.allow in which i have placed rob. news. root root@xstation.abcd.net (Cron Daemon) To: rob@xstation.4096.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: <20060719100450.BD8C6391C1E@xstation.4096.net> Date: Wed, 19 Jul 2006 11:04:50 +0100 (BST) Invalid default read for new active group, must be <= 0 Attempting to connect to nntp.aioe.org Using Port 119 Official host name: nntp.aioe.org Address: 81.174.50.80 Connected to nntp.aioe.org and at the end : /etc/suck/sucknewsrc: Permission denied Moving newsrc to backup: Permission denied robert
Re: should permissions be news and not root
Author: rob
Date: Wed, 19 Jul 2006 17:57
Date: Wed, 19 Jul 2006 17:57
164 lines
6805 bytes
6805 bytes
rob wrote: > John F. Morse wrote: > > rob wrote: > > > > >John F. Morse wrote: > > > > > > > > >>Iulius wrote: > > >> > > >> > > >> > > >>>En réponse à John F. Morse : > > >>> > > >>> > > >>> > > >>>>You can easily copy and paste that log into a shell and it will do > > >>>>the work for you. > > >>>> > > >>>> > > >>>That is to say: > > >>> > > >>>/usr/lib/news/bin/inncheck -f -perms > result > > >>>sh result > > >>> > > >>> > > >> > > >>Yes. That is the method I originally read. > > >> > > >>Thanks. > > >> > > >> > > >> > > > > > > > > > > > >thnaks for all your post. > > > > > >sas was obtained by running > > >rob@xstation:~$ /usr/lib/news/bin/inncheck -f -perms > sas > > > > > > > > > > > >so i ran file sas with command:(as root) > > > > > >rob@xstation:~$ sudo sh sas > > >Password: > > >rob@xstation:~$ cd /etc/news > > >rob@xstation:/etc/news$ ls -la > > >total 296 > > >drwxr-xr-x 3 news news 4096 2006-07-11 12:23 . > > >drwxr-xr-x 90 root root 4096 2006-07-19 07:08 .. > > >-rw-r--r-- 1 root root 155 2006-03-15 10:39 actsync.cfg > > >-rw-r--r-- 1 root root 382 2006-03-15 10:39 actsync.ign > > >-rw-r--r-- 1 root root 304 2006-03-15 10:39 buffindexed.conf > > >-rw-r----- 1 news news 87179 2006-07-11 14:20 control.ctl > > >-rw-r--r-- 1 root root 859 2006-03-15 10:39 cycbuff.conf > > >-rw-r--r-- 1 root root 495 2006-03-15 10:39 distrib.pats > > >-rw-r----- 1 news news 1424 2006-03-15 10:39 expire.ctl > > >drwxr-xr-x 2 root root 4096 2006-06-29 11:37 filter > > >-rw-r----- 1 news news 5353 2006-03-15 10:39 incoming.conf > > >-rw-r--r-- 1 news news 4831 2006-07-10 18:42 inn.conf > > >-rw-r--r-- 1 root root 3179 2006-03-15 10:39 innfeed.conf > > >-rw-r--r-- 1 root root 72395 2006-03-15 10:39 innreport.conf > > >-rw-r--r-- 1 root root 2120 2006-03-15 10:39 innwatch.ctl > > >-rw-r--r-- 1 news news 1158 2006-03-15 10:39 moderators > > >-rw-r--r-- 1 root root 185 2006-03-15 10:39 motd.news > > >-rw-r--r-- 1 root root 609 2006-03-15 10:39 news2mail.cf > > >-rw-r--r-- 1 news news 5007 2006-07-05 14:26 newsfeeds > > >-rw-r--r-- 1 root root 516 2006-03-15 10:39 nnrpd.track > > >-rw-r----- 1 news news 583 2006-03-15 10:39 nntpsend.ctl > > >-rw-r--r-- 1 root root 4939 2006-03-15 10:39 ovdb.conf > > >-rw-r--r-- 1 news news 340 2006-03-15 10:39 overview.fmt > > >-rw-r----- 1 news news 597 2006-03-15 10:39 passwd.nntp > > >-rw-r--r-- 1 root root 1784 2006-03-15 10:39 radius.conf > > >-rw-r----- 1 news news 4898 2006-07-11 09:20 readers.conf > > >-rw-r--r-- 1 root root 911 2006-03-15 10:39 send-uucp.cf > > >-rw-r--r-- 1 root root 1430 2006-03-15 10:39 storage.conf > > >-rw-r--r-- 1 root root 114 2006-03-15 10:39 subscriptions > > > > > > > > >robert > > > > > > > > > Does it still work OK? > > > > I presume it does. > > > > I think changing the owner and group to user "news" just makes it easier > > to modify these config files without having to sudo, which also means > > you would need to add the user "news" to the /etc/sudoers file first. > > > > Perhaps Jeff or Russ can verify this? I seem to remember reading or > > being told that these inncheck ownership errors are not important, as > > long as user "news" can read by having the mode "r" in the "others" column. > > > > I have my personal user account in the sudoers, and use it when > > modifying the config files. I don't give "news" sudo privileges to > > eliminate that route should a hacker somehow become the user "news." > > > > -- > > John > > > well it not appear to be: > i have a file called cron.allow in which i have placed > rob. news. root > > root@xstation.abcd.net (Cron Daemon) > To: rob@xstation.4096.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: <20060719100450.BD8C6391C1E@xstation.4096.net> > Date: Wed, 19 Jul 2006 11:04:50 +0100 (BST) > > Invalid default read for new active group, must be <= 0 > Attempting to connect to nntp.aioe.org > Using Port 119 > Official host name: nntp.aioe.org > Address: 81.174.50.80 > Connected to nntp.aioe.org > > and at the end : > > > > /etc/suck/sucknewsrc: Permission denied > Moving newsrc to backup: Permission denied > > robert ok here is the sudoers file where to add news? # /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # See the man page for details on how to write a sudoers file. # # Host alias specification # User alias specification # Cmnd alias specification # Defaults Defaults !lecture,tty_tickets,!fqdn # User privilege specification root ALL=(ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL
Re: should permissions be news and not root
Author: John F. Morse
Date: Wed, 19 Jul 2006 21:55
Date: Wed, 19 Jul 2006 21:55
201 lines
7219 bytes
7219 bytes
rob wrote: >rob wrote: > > > >>John F. Morse wrote: >> >> >>>rob wrote: >>> >>> >>> >>>>John F. Morse wrote: >>>> >>>> >>>> >>>> >>>>>Iulius wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>En réponse à John F. Morse : >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>You can easily copy and paste that log into a shell and it will do >>>>>>>the work for you. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>That is to say: >>>>>> >>>>>>/usr/lib/news/bin/inncheck -f -perms > result >>>>>>sh result >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Yes. That is the method I originally read. >>>>> >>>>>Thanks. >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>>thnaks for all your post. >>>> >>>>sas was obtained by running >>>>rob@xstation:~$ /usr/lib/news/bin/inncheck -f -perms > sas >>>> >>>> >>>> >>>>so i ran file sas with command:(as root) >>>> >>>>rob@xstation:~$ sudo sh sas >>>>Password: >>>>rob@xstation:~$ cd /etc/news >>>>rob@xstation:/etc/news$ ls -la >>>>total 296 >>>>drwxr-xr-x 3 news news 4096 2006-07-11 12:23 . >>>>drwxr-xr-x 90 root root 4096 2006-07-19 07:08 .. >>>>-rw-r--r-- 1 root root 155 2006-03-15 10:39 actsync.cfg >>>>-rw-r--r-- 1 root root 382 2006-03-15 10:39 actsync.ign >>>>-rw-r--r-- 1 root root 304 2006-03-15 10:39 buffindexed.conf >>>>-rw-r----- 1 news news 87179 2006-07-11 14:20 control.ctl >>>>-rw-r--r-- 1 root root 859 2006-03-15 10:39 cycbuff.conf >>>>-rw-r--r-- 1 root root 495 2006-03-15 10:39 distrib.pats >>>>-rw-r----- 1 news news 1424 2006-03-15 10:39 expire.ctl >>>>drwxr-xr-x 2 root root 4096 2006-06-29 11:37 filter >>>>-rw-r----- 1 news news 5353 2006-03-15 10:39 incoming.conf >>>>-rw-r--r-- 1 news news 4831 2006-07-10 18:42 inn.conf >>>>-rw-r--r-- 1 root root 3179 2006-03-15 10:39 innfeed.conf >>>>-rw-r--r-- 1 root root 72395 2006-03-15 10:39 innreport.conf >>>>-rw-r--r-- 1 root root 2120 2006-03-15 10:39 innwatch.ctl >>>>-rw-r--r-- 1 news news 1158 2006-03-15 10:39 moderators >>>>-rw-r--r-- 1 root root 185 2006-03-15 10:39 motd.news >>>>-rw-r--r-- 1 root root 609 2006-03-15 10:39 news2mail.cf >>>>-rw-r--r-- 1 news news 5007 2006-07-05 14:26 newsfeeds >>>>-rw-r--r-- 1 root root 516 2006-03-15 10:39 nnrpd.track >>>>-rw-r----- 1 news news 583 2006-03-15 10:39 nntpsend.ctl >>>>-rw-r--r-- 1 root root 4939 2006-03-15 10:39 ovdb.conf >>>>-rw-r--r-- 1 news news 340 2006-03-15 10:39 overview.fmt >>>>-rw-r----- 1 news news 597 2006-03-15 10:39 passwd.nntp >>>>-rw-r--r-- 1 root root 1784 2006-03-15 10:39 radius.conf >>>>-rw-r----- 1 news news 4898 2006-07-11 09:20 readers.conf >>>>-rw-r--r-- 1 root root 911 2006-03-15 10:39 send-uucp.cf >>>>-rw-r--r-- 1 root root 1430 2006-03-15 10:39 storage.conf >>>>-rw-r--r-- 1 root root 114 2006-03-15 10:39 subscriptions >>>> >>>> >>>>robert >>>> >>>> >>>> >>>Does it still work OK? >>> >>>I presume it does. >>> >>>I think changing the owner and group to user "news" just makes it easier >>>to modify these config files without having to sudo, which also means >>>you would need to add the user "news" to the /etc/sudoers file first. >>> >>>Perhaps Jeff or Russ can verify this? I seem to remember reading or >>>being told that these inncheck ownership errors are not important, as >>>long as user "news" can read by having the mode "r" in the "others" column. >>> >>>I have my personal user account in the sudoers, and use it when >>>modifying the config files. I don't give "news" sudo privileges to >>>eliminate that route should a hacker somehow become the user "news." >>> >>>-- >>>John >>> >>> >>well it not appear to be: >>i have a file called cron.allow in which i have placed >>rob. news. root >> >>root@xstation.abcd.net (Cron Daemon) >>To: rob@xstation.4096.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: <20060719100450.BD8C6391C1E@xstation.4096.net> >>Date: Wed, 19 Jul 2006 11:04:50 +0100 (BST) >> >>Invalid default read for new active group, must be <= 0 >>Attempting to connect to nntp.aioe.org >>Using Port 119 >>Official host name: nntp.aioe.org >>Address: 81.174.50.80 >>Connected to nntp.aioe.org >> >>and at the end : >> >> >> >>/etc/suck/sucknewsrc: Permission denied >>Moving newsrc to backup: Permission denied >> >>robert >> >> > >ok here is the sudoers file where to add news? > > ># /etc/sudoers ># ># This file MUST be edited with the 'visudo' command as root. ># ># See the man page for details on how to write a sudoers file. ># > ># Host alias specification > ># User alias specification > ># Cmnd alias specification > ># Defaults > >Defaults !lecture,tty_tickets,!fqdn > > ># User privilege specification >root ALL=(ALL) ALL >news ALL=(ALL) ALL > > See directly above. I do not have the following lines in any of my sudoers: ># Members of the admin group may gain root privileges >%admin ALL=(ALL) ALL > Although someone said that the MUST warning was not really necessary for editing sudoers, I still use it just as it specifies in the comment. You do need to become the superuser to use it though. -- John
Re: should permissions be news and not root
Author: John F. Morse
Date: Wed, 19 Jul 2006 21:57
Date: Wed, 19 Jul 2006 21:57
41 lines
2648 bytes
2648 bytes
rob wrote: >well it not appear to be: >i have a file called cron.allow in which i have placed >rob. news. root > >root@xstation.abcd.net (Cron Daemon) >To: rob@xstation.4096.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: <20060719100450.BD8C6391C1E@xstation.4096.net> >Date: Wed, 19 Jul 2006 11:04:50 +0100 (BST) > >Invalid default read for new active group, must be <= 0 >Attempting to connect to nntp.aioe.org >Using Port 119 >Official host name: nntp.aioe.org >Address: 81.174.50.80 >Connected to nntp.aioe.org > >and at the end : > > > >/etc/suck/sucknewsrc: Permission denied >Moving newsrc to backup: Permission denied > >robert > I have no further ideas, Robert. Sorry. Perhaps someone else who is familiar with Suck can help? -- John
Re: should permissions be news and not root
Author: rob
Date: Thu, 20 Jul 2006 12:45
Date: Thu, 20 Jul 2006 12:45
48 lines
2974 bytes
2974 bytes
John F. Morse wrote: > rob wrote: > > >well it not appear to be: > >i have a file called cron.allow in which i have placed > >rob. news. root > > > >root@xstation.abcd.net (Cron Daemon) > >To: rob@xstation.4096.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: <20060719100450.BD8C6391C1E@xstation.4096.net> > >Date: Wed, 19 Jul 2006 11:04:50 +0100 (BST) > > > >Invalid default read for new active group, must be <= 0 > >Attempting to connect to nntp.aioe.org > >Using Port 119 > >Official host name: nntp.aioe.org > >Address: 81.174.50.80 > >Connected to nntp.aioe.org > > > >and at the end : > > > > > > > >/etc/suck/sucknewsrc: Permission denied > >Moving newsrc to backup: Permission denied > > > >robert > > > > > I have no further ideas, Robert. Sorry. > > Perhaps someone else who is familiar with Suck can help? > > -- > John thanks john yes maybe lulius or bozweb might post a suggestion robert
Re: should permissions be news and not root
Author: Black Dragon
Date: Thu, 20 Jul 2006 14:18
Date: Thu, 20 Jul 2006 14:18
78 lines
4163 bytes
4163 bytes
rob wrote: > root@xstation.abcd.net (Cron Daemon) > To: rob@xstation.4096.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: <20060719100450.BD8C6391C1E@xstation.4096.net> > Date: Wed, 19 Jul 2006 11:04:50 +0100 (BST) > Invalid default read for new active group, must be <= 0 > Attempting to connect to nntp.aioe.org > Using Port 119 > Official host name: nntp.aioe.org > Address: 81.174.50.80 > Connected to nntp.aioe.org > and at the end : > /etc/suck/sucknewsrc: Permission denied > Moving newsrc to backup: Permission denied Since you're running suck as "rob", "rob" needs to have read and write permissions in your /etc/suck directory and the files in it. In a previous post you listed those as being owned by and read/writable by news. <quote> drwxrwxr-x 2 news news 4096 2006-06-30 17:16 . -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 </quote> You need to either fix the permissions on that directory and the those file so rob can read and write to it. Or better yet, use the -dd option (see the suck(1) man page) to define a directory rob does have read / write permission in. ( $HOME/.suck perhaps?) Personally, I run suck as the news user and used modified (by me) versions of the get.news.inn script supplied with the suck source to both download and post from/to several different servers. Suck was built, installed, and is owned by root and is run by news; bd@thor> ls -l /usr/local/bin/suck -r-xr-xr-x 1 root wheel 127416 Jan 19 20:16 /usr/local/bin/suck bd@thor> ls -l /usr/local/bin/testhost -r-xr-xr-x 1 root wheel 18616 Jan 19 20:16 /usr/local/bin/testhost bd@thor> ls -l /usr/local/bin/rpost -r-xr-xr-x 1 root wheel 26904 Jan 19 20:16 /usr/local/bin/rpost The header of the /usr/local/share/examples/suck/get.news.inn file supplied with the suck source; <quote> #!/bin/sh #BEFORE USING - check to ensure all the paths defined below are correct!! #NOTE: this script probably needs to be run by root. Most systems will # not let a normal user run ctlinnd </quote> You should run programs as root only when absolutely necessarily. Since ctlinnd is owned and run by the news user, why not run suck as the news user too to keep things as simple as possible too? -- Black Dragon How can you say that the world isn't Jewish, when the sun's real name is Sol?
Re: should permissions be news and not root
Author: F. Senault
Date: Thu, 20 Jul 2006 17:17
Date: Thu, 20 Jul 2006 17:17
36 lines
3413 bytes
3413 bytes
Le 20 juillet 2006 à 16:18, Black Dragon a écrit :
> You should run programs as root only when absolutely necessarily. Since
> ctlinnd is owned and run by the news user, why not run suck as the news
> user too to keep things as simple as possible too?
Yes. It's probably the best way to keep the setup safe and headache
free.
By the way, I believe that nobody has made this recommandation yet : the
news user should have a nice and comfortable shell configured to be
fully usable (environment, scripts, dot files, etc), just like your own
user. Once that is done, use it exclusively to work on the server.
My own way to do that is to exclude the news binaries
(/usr/local/news/bin on my system) from everybody's path except news.
So, if I try to do something as root, it'll usually fail.
And, now, an even broader tip to the OP : you should take some time to
understand what's going on under the hood, from unix basics to the
interactions between parts of your news server. The problems you
encounter are installation specific, and unix specific - not much to do
with the news system in itself. Relying on random usenet contributors
(I include myself in the lot) to tell you how to change permissions on
your system is not always a good idea if you don't understand the bases.
Don't see an agression in this, but really, from a security standpoint,
you're just offering a loaded handgun to random strangers in the
street...
Fred
--
I need to watch things die From a good safe distance
Vicariously, I Live while the whole world dies
You all feel the same so Why can't we just admit it?
(Tool, Vicarious)
Re: should permissions be news and not root
Author: Bozweb
Date: Thu, 20 Jul 2006 17:51
Date: Thu, 20 Jul 2006 17:51
70 lines
3253 bytes
3253 bytes
On 20 Jul 2006 05:45:22 -0700, "rob" <r.rimmer@gmx.net> wrote: > >John F. Morse wrote: >> rob wrote: >> >> >well it not appear to be: >> >i have a file called cron.allow in which i have placed >> >rob. news. root >> > >> >root@xstation.abcd.net (Cron Daemon) >> >To: rob@xstation.4096.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: <20060719100450.BD8C6391C1E@xstation.4096.net> >> >Date: Wed, 19 Jul 2006 11:04:50 +0100 (BST) >> > >> >Invalid default read for new active group, must be <= 0 >> >Attempting to connect to nntp.aioe.org >> >Using Port 119 >> >Official host name: nntp.aioe.org >> >Address: 81.174.50.80 >> >Connected to nntp.aioe.org >> > >> >and at the end : >> > >> > >> > >> >/etc/suck/sucknewsrc: Permission denied >> >Moving newsrc to backup: Permission denied >> > >> >robert >> > >> >> >> I have no further ideas, Robert. Sorry. >> >> Perhaps someone else who is familiar with Suck can help? >> >> -- >> John > >thanks john yes maybe lulius or bozweb might post a suggestion > >robert First, adduser news on your server. Suggestion: http://mars.netanya.ac.il/~unesco/cdrom/booklet/HTML/LINUX/inn.html http://www.rime.com.au/suck/ Check list http://www.eyrie.org/~eagle/software/inn/docs/checklist.html#S2 Install Inn again, and run it only as news. Check it with inncheck -perms. If you are sure that all is ok then run suck. The files have the right permissions that way. HTH -- Posted by http://news.bozweb.net http://www.bozweb.net Key: 0x82DEE1A0
Re: should permissions be news and not root
Author: Black Dragon
Date: Fri, 21 Jul 2006 03:17
Date: Fri, 21 Jul 2006 03:17
63 lines
4498 bytes
4498 bytes
F. Senault wrote: > Le 20 juillet 2006 à 16:18, Black Dragon a écrit : >> You should run programs as root only when absolutely necessarily. Since >> ctlinnd is owned and run by the news user, why not run suck as the news >> user too to keep things as simple as possible too? > Yes. It's probably the best way to keep the setup safe and headache > free. > By the way, I believe that nobody has made this recommandation yet : the > news user should have a nice and comfortable shell configured to be > fully usable (environment, scripts, dot files, etc), just like your own > user. Once that is done, use it exclusively to work on the server. > My own way to do that is to exclude the news binaries > (/usr/local/news/bin on my system) from everybody's path except news. > So, if I try to do something as root, it'll usually fail. > And, now, an even broader tip to the OP : you should take some time to > understand what's going on under the hood, from unix basics to the > interactions between parts of your news server. The problems you > encounter are installation specific, and unix specific - not much to do > with the news system in itself. Relying on random usenet contributors > (I include myself in the lot) to tell you how to change permissions on > your system is not always a good idea if you don't understand the bases. > Don't see an agression in this, but really, from a security standpoint, > you're just offering a loaded handgun to random strangers in the > street... Sage advice. Like you the news user on my system has a fully configured shell and only the news user has the INN binaries in its path. The first time I used INN and suck they were installed from an RPM on a RedHat Linux system and I never did get it to work right. File ownership was hosed, files were scattered illogically all over the system, etc, making readily available documentation totally useless for a noob. It took a few days, but I eventually realized whoever packaged the RPM had to have been a complete retard and the only way I was going to have a working news server was to install from source and the documentation provided with it. Specifically, INN's INSTALL file, and the suck README file. To the OP, rob, if you haven't already, and it seems as if you haven't, it's highly suggested to download and unpack the source tarballs for INN and suck and at least read the supplied documentation. You should then consider building and installing from source since by the time you're done you will have a pretty good handle on the basics which will make administering the system much easier and more enjoyable. My $.05 FWIW. -- Black Dragon De Hispanice puella verumque Simplex oris verborumque Tulit potens vagina Hominum agmina Iterum iterum iterumque.
Re: should permissions be news and not root
Author: rob
Date: Fri, 21 Jul 2006 07:07
Date: Fri, 21 Jul 2006 07:07
86 lines
5322 bytes
5322 bytes
Black Dragon wrote: > F. Senault wrote: > > > Le 20 juillet 2006 à 16:18, Black Dragon a écrit : > > >> You should run programs as root only when absolutely necessarily. Since > >> ctlinnd is owned and run by the news user, why not run suck as the news > >> user too to keep things as simple as possible too? > > > Yes. It's probably the best way to keep the setup safe and headache > > free. > > > By the way, I believe that nobody has made this recommandation yet : the > > news user should have a nice and comfortable shell configured to be > > fully usable (environment, scripts, dot files, etc), just like your own > > user. Once that is done, use it exclusively to work on the server. > > > My own way to do that is to exclude the news binaries > > (/usr/local/news/bin on my system) from everybody's path except news. > > So, if I try to do something as root, it'll usually fail. > > > And, now, an even broader tip to the OP : you should take some time to > > understand what's going on under the hood, from unix basics to the > > interactions between parts of your news server. The problems you > > encounter are installation specific, and unix specific - not much to do > > with the news system in itself. Relying on random usenet contributors > > (I include myself in the lot) to tell you how to change permissions on > > your system is not always a good idea if you don't understand the bases. > > > Don't see an agression in this, but really, from a security standpoint, > > you're just offering a loaded handgun to random strangers in the > > street... > > Sage advice. Like you the news user on my system has a fully configured > shell and only the news user has the INN binaries in its path. > > The first time I used INN and suck they were installed from an RPM on a > RedHat Linux system and I never did get it to work right. File ownership > was hosed, files were scattered illogically all over the system, etc, > making readily available documentation totally useless for a noob. It > took a few days, but I eventually realized whoever packaged the RPM had > to have been a complete retard and the only way I was going to have a > working news server was to install from source and the documentation > provided with it. Specifically, INN's INSTALL file, and the suck README > file. > > To the OP, rob, if you haven't already, and it seems as if you haven't, > it's highly suggested to download and unpack the source tarballs for INN > and suck and at least read the supplied documentation. You should then > consider building and installing from source since by the time you're > done you will have a pretty good handle on the basics which will make > administering the system much easier and more enjoyable. > > My $.05 FWIW. > > -- > Black Dragon > > De Hispanice puella verumque > Simplex oris verborumque > Tulit potens vagina > Hominum agmina > Iterum iterum iterumque. thankyou for all your posts. installing from source is an option but will use it only when other options have been exhausted. another email from italy suggested > output at end of suck > /etc/suck/sucknewsrc: Permission denied > Moving newsrc to backup: Permission denied chown news [name of your script] [your script] is the path and name of that script which call suck chmod 777 etc/suck/sucknewsrc script is called suck? robert
Re: should permissions be news and not root
Author: F. Senault
Date: Fri, 21 Jul 2006 11:02
Date: Fri, 21 Jul 2006 11:02
15 lines
2407 bytes
2407 bytes
Le 21 juillet 2006 à 05:17, Black Dragon a écrit : > Sage advice. Like you the news user on my system has a fully configured > shell and only the news user has the INN binaries in its path. Oh, and before I forget : mind the MANPATH too (not necessarily only for the news user, here). Inn has pretty well written and accurate manual pages, stored, in a default installation, outside the usual places... Fred -- You can still change, and right what is wrong But can you swallow me, am I too strong ? You have to get back now, it's not too late (Ayreon, The Human It's not like you to resign to your fate Equation, Day 14 : Pride)
Re: should permissions be news and not root
Author: F. Senault
Date: Fri, 21 Jul 2006 11:03
Date: Fri, 21 Jul 2006 11:03
12 lines
2190 bytes
2190 bytes
Le 21 juillet 2006 à 09:07, rob a écrit :
> chmod 777 etc/suck/sucknewsrc
^^^
Well... talk about loaded handguns...
Fred
--
I'm dancing, I'm writing songs About what bothers me the most About
those who can't dance at all... I'm only jumping I'm only freaking out
And I wonder what it's all about To close my eyes and finally see
A piece of paradise in me (K's Choice, Paradise in Me)
Re: should permissions be news and not root
Author: Nulla
Date: Fri, 21 Jul 2006 13:19
Date: Fri, 21 Jul 2006 13:19
8 lines
1927 bytes
1927 bytes
On Fri, 21 Jul 2006 13:03:40 +0200, F. Senault wrote: >> chmod 777 etc/suck/sucknewsrc > ^^^ > Well... talk about loaded handguns... /etc/suck/sucknewrc doesn't include any serious data
Re: should permissions be news and not root
Author: Iulius
Date: Fri, 21 Jul 2006 13:36
Date: Fri, 21 Jul 2006 13:36
19 lines
2457 bytes
2457 bytes
En réponse à Nulla : >>> chmod 777 etc/suck/sucknewsrc >> ^^^ >> Well... talk about loaded handguns... > > /etc/suck/sucknewrc doesn't include any serious data Sure but everyone can then write the file and put into it malicious code. Just wait for an exploit to be published and the gun will be triggered off. As Fred has already said it, it is wise to understand first the basis of the management of rights in Linux. -- Iulius « Il n'y a pas moyen de contenter ceux qui veulent savoir le pourquoi des pourquoi. » (Leibniz)
Re: should permissions be news and not root
Author: rob
Date: Fri, 21 Jul 2006 14:13
Date: Fri, 21 Jul 2006 14:13
30 lines
2817 bytes
2817 bytes
Iulius wrote: > En réponse à Nulla : > >>> chmod 777 etc/suck/sucknewsrc > >> ^^^ > >> Well... talk about loaded handguns... > > > > /etc/suck/sucknewrc doesn't include any serious data > > Sure but everyone can then write the file and put into it > malicious code. > Just wait for an exploit to be published and the gun will > be triggered off. > > As Fred has already said it, it is wise to understand first > the basis of the management of rights in Linux. > > -- > Iulius > > « Il n'y a pas moyen de contenter ceux qui veulent savoir le pourquoi des pourquoi. » (Leibniz) thanks for your posts What I was asking in my post above of today was how to do what has been suggested in my post. robert
Re: should permissions be news and not root
Author: Black Dragon
Date: Fri, 21 Jul 2006 19:44
Date: Fri, 21 Jul 2006 19:44
22 lines
2243 bytes
2243 bytes
rob wrote: > thankyou for all your posts. > installing from source is an option but will use it only when other > options have been exhausted. Suit yourself. But ignoring the advice of those who are trying to help you is likely to turn that help away. FWIW, installing INN and suck was one of my first forays into installing software from source and I never once regretted it. It was in fact, a very rewarding experience that taught me a lot. YMMV. -- Black Dragon Disclaimer of the Week: Any Society Which Requires Disclaimers Has Too Many Goddamn Lawyers.
Re: should permissions be news and not root
Author: F. Senault
Date: Fri, 21 Jul 2006 19:54
Date: Fri, 21 Jul 2006 19:54
16 lines
2590 bytes
2590 bytes
Le 21 juillet 2006 à 16:13, rob a écrit :
> What I was asking in my post above of today was how to do what has
> been suggested in my post.
Stop right here. Document yourself on the use of unix systems, try to
understand the basics, and, then, analyse the whole situation.
This group can't hold your hand for everything, you know.
Fred
--
Home, home again I like to be here when I can
When I come home cold and tired
It's good to warm my bones besides the fire
(Pink Floyd, Breathe Reprise)
Re: should permissions be news and not root
Author: Aioe
Date: Sat, 22 Jul 2006 05:47
Date: Sat, 22 Jul 2006 05:47
14 lines
2082 bytes
2082 bytes
On Fri, 21 Jul 2006 15:36:22 +0200, Iulius wrote: > Sure but everyone can then write the file and put into it > malicious code. sucknewsrc has got this format group article (ie "news.software.nntp 3454") which kind of 'malicious code' can you insert here? if only an user on that host has got a shell access, this isn't a security hole
Re: should permissions be news and not root
Author: rob
Date: Sat, 22 Jul 2006 08:04
Date: Sat, 22 Jul 2006 08:04
24 lines
2558 bytes
2558 bytes
Aioe wrote: > On Fri, 21 Jul 2006 15:36:22 +0200, Iulius wrote: > > > Sure but everyone can then write the file and put into it > > malicious code. > > sucknewsrc has got this format > > group article > (ie "news.software.nntp 3454") > > > which kind of 'malicious code' can you insert here? > if only an user on that host has got a shell access, this isn't a security > hole thanks for you posts ok worked it out no more permmission denied errors . robert
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads