🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86812

Re: INN Permissions

#86812
From: Richard Kettlewell
Date: Fri, 12 Jun 2015 09:45
38 lines
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/

Technical Details
Message-ID: <wwvbngl6z09.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <mle9g4$crc$1@speranza.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <wwvbngl6z09.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid>
Subject: Re: INN Permissions
Date: Fri, 12 Jun 2015 10:45:42 +0100
From: Richard Kettlewell <rjk@greenend.org.uk>
References: <mle9g4$crc$1@speranza.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: Anjou
Lines: 36
NNTP-Posting-Host: nnrp.anjou.terraraq.org.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: sfere.anjou.terraraq.org.uk 1434102342 10547 2001:470:1f09:11ed::3 (12 Jun 2015 09:45:42 GMT)
X-Complaints-To: usenet@sfere.greenend.org.uk
NNTP-Posting-Date: Fri, 12 Jun 2015 09:45:42 +0000 (UTC)
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
  F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
  +r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
Cancel-Lock: sha1:vSFDniRpZ03t3IFVFFiJpqBuNgw=
X-Received-Body-CRC: 978369322
X-Received-Bytes: 2717