Thread View: news.software.readers
3 messages
3 total messages
Started by Ian Macdonald
Sun, 20 Apr 1997 00:00
Permissions problem
Author: Ian Macdonald
Date: Sun, 20 Apr 1997 00:00
Date: Sun, 20 Apr 1997 00:00
27 lines
1597 bytes
1597 bytes
Hi folks, slrnpull is still performing well here, but still has the same niggling problem that I posted about a few weeks ago. I run slrnpull from my ip-up script, so all new messages are downloaded whenever I go on-line. However, the permissions of all new articles are set to -rw-------, which means only the user news can read them. After every on-line session, I am thus forced to run a chmod script as root to make everything group readable. I just don't understand this, because new's umask is 022. Indeed, if I su news at the prompt and then execute slrnpull, I get the desired 755 permissions. The problem must therefore, I assume, be related to the running of ip-up, which is started by ipppd (the ISDN version of pppd). Unfortunately, the man page of ipppd says that ip-up is run as root, but root also has a umask of 022, so I'm none the wiser. Has anyone got any ideas on this? Ian -- Ian Macdonald (ianmacd@xs4all.nl) Linux 2.0.30 on an i686
Re: Permissions problem
Author: Ian Macdonald
Date: Tue, 22 Apr 1997 00:00
Date: Tue, 22 Apr 1997 00:00
32 lines
1478 bytes
1478 bytes
On 22 Apr 1997 09:47:39 GMT, John E. Davis <davis@space.mit.edu> wrote: >On 20 Apr 1997 14:29:11 GMT, Ian Macdonald <ianmacd@caliban.xs4all.nl> >wrote: >>I just don't understand this, because new's umask is 022. Indeed, if I >>su news at the prompt and then execute slrnpull, I get the desired 755 >>permissions. > >Did you try to explicitly add: > > umask 022 > >to your ip-up script before running slrnpull? Bingo! It never occurred to me to try this, so I've been struggling with this problem for a month (since I started using slrnpull). I still find it strange that ip-up doesn't take on root's umask, but there you go; problem solved. Thanks a lot, John. Ian -- Ian Macdonald (ianmacd@xs4all.nl) Linux 2.0.30 on an i686
Re: Permissions problem
Author: John E. Davis
Date: Tue, 22 Apr 1997 00:00
Date: Tue, 22 Apr 1997 00:00
25 lines
1328 bytes
1328 bytes
On 20 Apr 1997 14:29:11 GMT, Ian Macdonald <ianmacd@caliban.xs4all.nl> wrote: >I just don't understand this, because new's umask is 022. Indeed, if I >su news at the prompt and then execute slrnpull, I get the desired 755 >permissions. The problem must therefore, I assume, be related to the >running of ip-up, which is started by ipppd (the ISDN version of >pppd). Unfortunately, the man page of ipppd says that ip-up is run as >root, but root also has a umask of 022, so I'm none the wiser. Did you try to explicitly add: umask 022 to your ip-up script before running slrnpull? slrnpull creates a file via: fp = fopen (file, "w"); and it does not play with any permissions other than in the out.going directory. --John
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