Thread View: news.software.readers
3 messages
3 total messages
Started by J. Horacio
Tue, 07 Dec 1999 00:00
[SLRN] Running slrnpull as user?
Author: J. Horacio
Date: Tue, 07 Dec 1999 00:00
Date: Tue, 07 Dec 1999 00:00
29 lines
1690 bytes
1690 bytes
Why can't I run slrnpull as an ordinary user instead of root? $ slrnpull -d /var/spool/slrnpull -h news.ciberia.es 12/06/1999 23:53:38 ***Unable to open /var/log/news/slrnpull.log for logging. 12/06/1999 23:53:38 slrnpull started. 12/06/1999 23:53:38 Reading /var/spool/slrnpull/slrnpull.conf 12/06/1999 23:53:38 ***Unable to create directory /var/spool/slrnpull/news/comp/std/unix. (errno = 13) 12/06/1999 23:53:38 A total of 0 bytes received, 0 bytes sent in 0 seconds. but slrnpull.log belongs to group root, not group news. Is it ok if I change the group ownership of the file for group news, and then give the group writing permission, or ...? TIA, -- Horacio Anno MMDCCLII ad Urbe condita homega@ciberia.es Valencia - ESPA�A -------------------------------------------------------------------- Key fingerprint = F4EE AE5E 2F01 0DB3 62F2 A9F4 AD31 7093 4233 7AE6
Re: [SLRN] Running slrnpull as user?
Author: Matthew Haley
Date: Tue, 07 Dec 1999 00:00
Date: Tue, 07 Dec 1999 00:00
68 lines
2940 bytes
2940 bytes
On 7 Dec 1999 00:12:38 GMT, homega@ciberia.es (J. Horacio) wrote: > >Why can't I run slrnpull as an ordinary user instead of root? > > >$ slrnpull -d /var/spool/slrnpull -h news.ciberia.es >12/06/1999 23:53:38 ***Unable to open /var/log/news/slrnpull.log for >logging. >12/06/1999 23:53:38 slrnpull started. >12/06/1999 23:53:38 Reading /var/spool/slrnpull/slrnpull.conf >12/06/1999 23:53:38 ***Unable to create directory >/var/spool/slrnpull/news/comp/std/unix. (errno = 13) >12/06/1999 23:53:38 A total of 0 bytes received, 0 bytes sent in 0 >seconds. > >but slrnpull.log belongs to group root, not group news. Is it ok if I >change the group ownership of the file for group news, and then give the >group writing permission, or ...? I wouldn't do that since I'm not too keen on modifying file permissions. I would go for a cron job. Implementation off the top of my head: (UNTESTED) 1) Create a cron entry to run test_do_slrnpull.sh every minute 2) test_do_slrnpull.sh contains: #!/bin/sh if [ -e /home/user/.do_slrnpull ] then rm -f /home/user/.do_slrnpull slrnpull -d /var/spool/slrnpull -h news.ciberia.es fi 3) Create a script do_slrnpull.sh containing: #!/bin/sh if [ -e /home/user/.do_slrnpull ] then exit fi touch /home/user/.do_slrnpull # EOF Now, everytime you wanted to run slrnpull you would instead run do_slrnpull.sh which would cause cron to run it the next time it awoke. BTW, it's been a couple weeks since I've used bash so my test statements may not be completely correct. Just to make sure I suggest checking 'man test' and looking for the correct option to test for a 'regular file'. PS, you could get rid of (2) and just change the cron entry (2) to 'if [ -e /home/user/.do_slrnpull ]; then slrnpull\ blah blah blah... fi' One more note, <g> I chose /home/user/.do_slrnpull so that other users can't just 'touch' you into running multiple instances of slrnpull. Hope that helps, and I am prepared for criticism (constructive or otherwise). ~+----------------------------------+~ | Matthew Haley <mrh99@uswest.net> | ~+----------------------------------+~
Re: [SLRN] Running slrnpull as user?
Author: Duncan Watson
Date: Fri, 10 Dec 1999 00:00
Date: Fri, 10 Dec 1999 00:00
37 lines
2167 bytes
2167 bytes
In article <944525261.122350@cache0-serv>, J. Horacio wrote: > >Why can't I run slrnpull as an ordinary user instead of root? > > >$ slrnpull -d /var/spool/slrnpull -h news.ciberia.es >12/06/1999 23:53:38 ***Unable to open /var/log/news/slrnpull.log for >logging. >12/06/1999 23:53:38 slrnpull started. >12/06/1999 23:53:38 Reading /var/spool/slrnpull/slrnpull.conf >12/06/1999 23:53:38 ***Unable to create directory >/var/spool/slrnpull/news/comp/std/unix. (errno = 13) >12/06/1999 23:53:38 A total of 0 bytes received, 0 bytes sent in 0 >seconds. > >but slrnpull.log belongs to group root, not group news. Is it ok if I >change the group ownership of the file for group news, and then give the >group writing permission, or ...? > > >TIA, > I changed the owner on the whole directory tree from slrnpull down, to my normal user name. You could do other methods but this own is simple and shouldn't introduce any security problems if you are the only user who uses slrn on your system. /Duncan -- Duncan Watson oOoOo Climbing Goal #3 - Vampire Spires, NW oOoOo Unix Sysadmin at Large oOoOo Territories oOoOo climer@io.com oOoOo oOoOo Portland, OR oOoOo oOoOo
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