Thread View: news.software.readers
3 messages
3 total messages
Started by Bek Oberin
Mon, 23 Jun 1997 00:00
slrnpull file mode probs
Author: Bek Oberin
Date: Mon, 23 Jun 1997 00:00
Date: Mon, 23 Jun 1997 00:00
34 lines
1826 bytes
1826 bytes
just installed slrnpull a few days ago and it's working like a charm -
it's made the change from my permanant link to a non-perm one much less
painful, for a start :)
the first few times i ran it, it worked like a charm, but when i ran it
again this morning it automagically set all the new articles to mode 600
- making them unreadable to everybody except root.
is this a known problem? i'm perplexed because it didn't do it the
first few times i ran it. bug? misfeature? (more likely) something
dumb i did?
i *could* put a "find /var/spool/slrnpull/news -type f -exec chmod 755
{} \;" command at the end of the download, but i'd rather not..
gossamer
PS
amusing story: the first time I set slrnpull up, and tested it, it
worked perfectly. the second time - about fifteen minutes later - it
wouldn't connect to the server, a little testing revealed the server had
gone down and i just about had a coronary thinking i'd killed one of
melb's major news servers with it! hadn't of course, it was just random
news brokenness, but it sure scared me..
--
: Bek Oberin / gossamer <gossamer@glasswings.com.au>
: http://www.tertius.net.au/~gossamer/
: Keep your face to the sunshine and you cannot see the shadows.
: -- Helen Keller
Re: slrnpull file mode probs
Author: Ian Macdonald
Date: Tue, 24 Jun 1997 00:00
Date: Tue, 24 Jun 1997 00:00
31 lines
1675 bytes
1675 bytes
Op 23 Jun 1997 22:49:46 GMT schreef Bek Oberin <gossamer@glasswings.com.au>: >the first few times i ran it, it worked like a charm, but when i ran it >again this morning it automagically set all the new articles to mode 600 >- making them unreadable to everybody except root. > >is this a known problem? It's known to me! I had the same problem, until John suggested manually setting the umask in the ip-up file. That's what I did, and here's the excerpt: # set correct umask for slrnpull (otherwise articles will be unreadable) # umask 027 # # flush news queue & get incoming news /usr/bin/slrnpull -d /var/spool/news/slrnpull -h news.xs4all.nl & This gives all incoming articles a mode of 640, which on my system means r/w for root + r for members of the group news. Ian -- Ian Macdonald | Don't give in to spammers. http://www.xs4all.nl/~ianmacd/ | Use your real e-mail address Linux 2.0.30 on an i686 | on Usenet.
Re: slrnpull file mode probs
Author: John E. Davis
Date: Thu, 26 Jun 1997 00:00
Date: Thu, 26 Jun 1997 00:00
93 lines
2183 bytes
2183 bytes
On 23 Jun 1997 22:49:46 GMT, Bek Oberin <gossamer@glasswings.com.au>
wrote:
>the first few times i ran it, it worked like a charm, but when i ran it
>again this morning it automagically set all the new articles to mode 600
>- making them unreadable to everybody except root.
Where are you running it from? You may want to explicitly add
something like:
umask 022
to your script that runs slrn. For what its worth, here is my script:
#!/bin/sh
dir=/tmp/news
slrnpull="/home/john/bin/slrnpull"
servers="news.mit.edu news.fuller.edu"
usage="$0 [--no-expire] [--new-groups] [--expire-only] [--post]"
expire=1
new_groups=
expire_only=0
post=
while test X"$1" != X
do
case "$1"
in
--no-expire)
expire=0
shift
;;
--new-groups)
new_groups="--new-groups"
shift
;;
--expire-only)
expire_only=1
shift
;;
--post)
expire=0
post="--post"
shift
;;
*)
echo $usage
exit 1
esac
done
if [ $expire -ne 0 ]
then
echo "`date`: starting expire"
for s in $servers
do
# Before getting new articles, perform expiration.
$slrnpull -d $dir/$s --expire
done
fi
if [ $expire_only -ne 0 ]
then
exit 0
fi
echo "`date`: starting ppp"
umask 022
if /usr/sbin/ppp-on
then
for s in $servers
do
$slrnpull -d $dir/$s -h $s $new_groups $post
done
/usr/sbin/ppp-off
echo "`date`: ppp off"
exit 0
fi
echo "`date`: exiting with error"
exit 1
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