Article View: news.software.nntp
Article #73878Re: should permissions be news and not root
From: 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
Technical Details
Message-ID:
<nTxvg.424197$Fs1.115501@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-mailReferences:
<1153141206.278388.106730@m79g2000cwm.googlegroups.com> <e9j43v$374$1@smilodon.ecp.fr> <1153256041.036971.98240@s13g2000cwa.googlegroups.com> <s0cvg.416584$Fs1.145194@bgtnsc05-news.ops.worldnet.att.net> <e9jkcq$8ga$1@smilodon.ecp.fr> <QXlvg.420008$Fs1.162744@bgtnsc05-news.ops.worldnet.att.net> <1153303000.311206.146590@s13g2000cwa.googlegroups.com> <ZVtvg.149209$mF2.48245@bgtnsc04-news.ops.worldnet.att.net> <1153331412.866857.117410@h48g2000cwc.googlegroups.com> <1153331822.607867.316840@i42g2000cwa.googlegroups.com>Show Full Headers
Complete Article Headers
Message-ID: <nTxvg.424197$Fs1.115501@bgtnsc05-news.ops.worldnet.att.net> Subject: Re: should permissions be news and not root Date: Wed, 19 Jul 2006 21:55:31 GMT From: "John F. Morse" <xanadu.bbs@invalid.net> References: <1153141206.278388.106730@m79g2000cwm.googlegroups.com> <e9j43v$374$1@smilodon.ecp.fr> <1153256041.036971.98240@s13g2000cwa.googlegroups.com> <s0cvg.416584$Fs1.145194@bgtnsc05-news.ops.worldnet.att.net> <e9jkcq$8ga$1@smilodon.ecp.fr> <QXlvg.420008$Fs1.162744@bgtnsc05-news.ops.worldnet.att.net> <1153303000.311206.146590@s13g2000cwa.googlegroups.com> <ZVtvg.149209$mF2.48245@bgtnsc04-news.ops.worldnet.att.net> <1153331412.866857.117410@h48g2000cwc.googlegroups.com> <1153331822.607867.316840@i42g2000cwa.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: <1153331822.607867.316840@i42g2000cwa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Lines: 201 NNTP-Posting-Host: 60556cbf2cba97e06a16e02fa0108a56 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1153346131 NNTP-Posting-Date: Wed, 19 Jul 2006 21:55:31 GMT