Thread View: news.software.nntp
11 messages
11 total messages
Started by Avon
Fri, 12 Jun 2015 09:41
INN Permissions
Author: Avon
Date: Fri, 12 Jun 2015 09:41
Date: Fri, 12 Jun 2015 09:41
41 lines
2327 bytes
2327 bytes
Pulling my hair out a bit tonight. innd: CNFS: file '/media/paul/storage/news/cycbuffs/buff01': Permission denied, ignoring 'BUFF01' cycbuff Jun 12 21:14:35 innfeed[989]: Storage manager initialization failed -- it is OK after a change in storage methods innd: SM: storage method 'cnfs' failed initialization innd: SM: one or more storage methods failed initialization innd: SERVER cant initalize storage manager: one or more storage methods failed initialization I had set sudo chown -R news:news storage at the root level of this drive I can see buff01 has user and group set to news, and permissions set to 664 so rw rw r I created the file by running sudo su root -s /bin/sh -c 'dd if=/dev/zero of=/media/paul/storage/news/ cycbuffs/buff01 bs=1k count=512000' I found if I tried to run sudo su news -s /bin/sh -c 'dd if=/dev/zero of=/ media/paul/storage/news/cycbuffs/buff01 bs=1k count=512000' then I get dd: failed to open ‘/media/paul/storage/news/cycbuffs/buff01’: Permission denied So it seems like news user and/or group does not have enough permissions to create what it needs nor access a buff01 file that is created by root user but then chmod to news:news etc. I am wondering if it's because I am trying to do something with a different physical drive other than the one where the apt-get install inn2 created all the inn2 files and did it's initial install and config? Your wisdom appreciated. Best, Paul
Re: INN Permissions
Author: Richard Kettlewell
Date: Fri, 12 Jun 2015 09:45
Date: Fri, 12 Jun 2015 09:45
38 lines
2701 bytes
2701 bytes
Avon <avon@bbs.geek.nz.invalid> writes: > Pulling my hair out a bit tonight. > > innd: CNFS: file '/media/paul/storage/news/cycbuffs/buff01': Permission > denied, ignoring 'BUFF01' cycbuff Jun 12 21:14:35 innfeed[989]: Storage > manager initialization failed -- it is OK after a change in storage > methods innd: SM: storage method 'cnfs' failed initialization innd: SM: > one or more storage methods failed initialization innd: SERVER cant > initalize storage manager: one or more storage methods failed > initialization > > I had set sudo chown -R news:news storage at the root level of this drive > > I can see buff01 has user and group set to news, and permissions set to > 664 so rw rw r > > I created the file by running > > sudo su root -s /bin/sh -c 'dd if=/dev/zero of=/media/paul/storage/news/ > cycbuffs/buff01 bs=1k count=512000' > > I found if I tried to run sudo su news -s /bin/sh -c 'dd if=/dev/zero of=/ > media/paul/storage/news/cycbuffs/buff01 bs=1k count=512000' then I get > > dd: failed to open ‘/media/paul/storage/news/cycbuffs/buff01’: Permission > denied > > So it seems like news user and/or group does not have enough permissions > to create what it needs nor access a buff01 file that is created by root > user but then chmod to news:news etc. At a guess, the problem is the permissions on one of the containing directories. -- http://www.greenend.org.uk/rjk/
Re: INN Permissions
Author: Avon
Date: Fri, 12 Jun 2015 10:00
Date: Fri, 12 Jun 2015 10:00
36 lines
1869 bytes
1869 bytes
On Fri, 12 Jun 2015 10:45:42 +0100, Richard Kettlewell wrote: > > At a guess, the problem is the permissions on one of the containing > directories. Hi Richard or I should say good morning! It's nearly 10pm here so I'm soon to zzz... thanks for your reply. When I look at the drive I see... paul@agencynews:/media/paul/storage$ ls -l total 20 drwx------ 2 news news 16384 May 31 20:02 lost+found drwxrwxr-x 3 news news 4096 Jun 12 10:00 news paul@agencynews:/media/paul/storage/news$ ls -l total 4 drwxrwxr-x 2 news news 4096 Jun 12 21:36 cycbuffs paul@agencynews:/media/paul/storage/news$ Using a file manager tool in Ubuntu the properties of the drive by right clicking on the drive icon it shows root as owner and group I did try changing those to news at one stage but it didn't seem to have an impact. Does anything look amiss to you? Best, Paul
Re: INN Permissions
Author: Richard Kettlewell
Date: Fri, 12 Jun 2015 10:04
Date: Fri, 12 Jun 2015 10:04
42 lines
2483 bytes
2483 bytes
Avon <avon@bbs.geek.nz.invalid> writes: > On Fri, 12 Jun 2015 10:45:42 +0100, Richard Kettlewell wrote: > >> >> At a guess, the problem is the permissions on one of the containing >> directories. > > Hi Richard or I should say good morning! > > It's nearly 10pm here so I'm soon to zzz... thanks for your reply. > > When I look at the drive I see... > > paul@agencynews:/media/paul/storage$ ls -l > total 20 > drwx------ 2 news news 16384 May 31 20:02 lost+found > drwxrwxr-x 3 news news 4096 Jun 12 10:00 news > > > paul@agencynews:/media/paul/storage/news$ ls -l > total 4 > drwxrwxr-x 2 news news 4096 Jun 12 21:36 cycbuffs > paul@agencynews:/media/paul/storage/news$ > > > Using a file manager tool in Ubuntu the properties of the drive by right > clicking on the drive icon it shows root as owner and group > > I did try changing those to news at one stage but it didn't seem to have > an impact. > > Does anything look amiss to you? You need to look at the permissions on all of the containing directories, i.e. every element in /media/paul/storage/news/cycbuffs/buff01. -- http://www.greenend.org.uk/rjk/
Re: INN Permissions
Author: Avon
Date: Fri, 12 Jun 2015 10:10
Date: Fri, 12 Jun 2015 10:10
28 lines
2141 bytes
2141 bytes
On Fri, 12 Jun 2015 11:04:47 +0100, Richard Kettlewell wrote: > You need to look at the permissions on all of the containing > directories, i.e. every element in > /media/paul/storage/news/cycbuffs/buff01. At present there are no further files or anything in the /media/paul/ storage/news/cycbuffs/ folder and I have sudo nautilus to remove buff01 Trying to create a new one using I found if I tried to run sudo su news - s /bin/sh -c 'dd if=/dev/zero of=/ media/paul/storage/news/cycbuffs/buff01 bs=1k count=512000' I get dd: failed to open ‘/media/paul/storage/news/cycbuffs/buff01’: Permission denied So it just seems that news user does not have correct permissions despite my best efforts. Perhaps I'll sleep on it and try again tomorrow. May yet blow up the system and install everyting on the 1TB drive to start with just to negate the need to try and point storage or spool files to something other than the drive the INN2 package is set up on. Dunno, feels like it may be one way to try and sort it. Not ideal though. P.
Re: INN Permissions
Author: Richard Kettlewell
Date: Fri, 12 Jun 2015 10:15
Date: Fri, 12 Jun 2015 10:15
16 lines
2044 bytes
2044 bytes
Avon <avon@bbs.geek.nz.invalid> writes: > On Fri, 12 Jun 2015 11:04:47 +0100, Richard Kettlewell wrote: >> You need to look at the permissions on all of the containing >> directories, i.e. every element in >> /media/paul/storage/news/cycbuffs/buff01. > > At present there are no further files or anything in the /media/paul/ > storage/news/cycbuffs/ folder and I have sudo nautilus to remove buff01 I mean every element in the path. If you can’t access /media/paul, you can’t access /media/paul/storage, and so on. -- http://www.greenend.org.uk/rjk/
Re: INN Permissions
Author: Avon
Date: Fri, 12 Jun 2015 10:25
Date: Fri, 12 Jun 2015 10:25
23 lines
1808 bytes
1808 bytes
On Fri, 12 Jun 2015 11:15:47 +0100, Richard Kettlewell wrote: > I mean every element in the path. If you can’t access /media/paul, you > can’t access /media/paul/storage, and so on. So further back I see drwx------ 2 news news 16384 May 31 20:02 lost+found drwxrwxr-x 3 news news 4096 Jun 12 10:00 news drwxrwxr-x 5 root root 4096 Jun 9 21:43 storage drwxr-x---+ 3 root root 4096 Jun 12 21:35 paul paul@agencynews:/media$ Trying to run the command to create the buff01 at each step back up the path all fail so yep something amiss further up the tree.. just not sure what I am looking at though. P.
Re: INN Permissions
Author: Richard Kettlewell
Date: Fri, 12 Jun 2015 10:53
Date: Fri, 12 Jun 2015 10:53
15 lines
1926 bytes
1926 bytes
Avon <avon@bbs.geek.nz.invalid> writes: > Richard Kettlewell wrote: >> I mean every element in the path. If you can’t access /media/paul, you >> can’t access /media/paul/storage, and so on. > > So further back I see [...] > drwxr-x---+ 3 root root 4096 Jun 12 21:35 paul This one’s the problem. -- http://www.greenend.org.uk/rjk/
Re: INN Permissions
Author: Avon
Date: Fri, 12 Jun 2015 10:58
Date: Fri, 12 Jun 2015 10:58
15 lines
1633 bytes
1633 bytes
On Fri, 12 Jun 2015 11:53:45 +0100, Richard Kettlewell wrote: >> drwxr-x---+ 3 root root 4096 Jun 12 21:35 paul > > This one’s the problem. Is it because of the ownership is set to root and not news or is it the fact the rwx is not set correctly? I'm picking leave it root:root but set permissions to establish drwxrwxrw - so 777 it???? P.
Re: INN Permissions
Author: Richard Kettlewell
Date: Fri, 12 Jun 2015 11:21
Date: Fri, 12 Jun 2015 11:21
19 lines
2186 bytes
2186 bytes
Avon <avon@bbs.geek.nz.invalid> writes: > Richard Kettlewell wrote: >>> drwxr-x---+ 3 root root 4096 Jun 12 21:35 paul >> >> This one’s the problem. > > Is it because of the ownership is set to root and not news or is it > the fact the rwx is not set correctly? > > I'm picking leave it root:root but set permissions to establish drwxrwxrw > - so 777 it???? That makes it world-writable, which you probably don’t want. Change it to 755 news:news. -- http://www.greenend.org.uk/rjk/
Re: INN Permissions
Author: Avon
Date: Sat, 13 Jun 2015 08:13
Date: Sat, 13 Jun 2015 08:13
24 lines
2258 bytes
2258 bytes
On Fri, 12 Jun 2015 12:21:45 +0100, Richard Kettlewell wrote: > That makes it world-writable, which you probably don’t want. Change it > to 755 news:news. Thanks Richard. I did try this but hit a snag when for some reason I then lost access to some of the child folders beneath this dir. In the end I opted to head down a path of rebuilding my system using the 1TB drive as the basis for the Ubuntu install etc. That then hit a snag when I discovered the HDD SMART tools were reporting issues with the drive. So back to the 500 gig drive with the original install on it and set all the cycbuffs and cnfs stuff up in /var/spool/news/cycbuff/buff01 etc. This worked fine. Phew. Now onto expire.ctl for the tradspool groups (only nz.* and non control.cancel) stuff I want to keep for a bit longer.. so just working through that at the mo. Best, P.
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