From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <483e79dcd9b8b3bc4fdb9d83e30e38c8@mteege.de> References: <483e79dcd9b8b3bc4fdb9d83e30e38c8@mteege.de> Date: Thu, 14 May 2009 17:31:15 -0700 Message-ID: Subject: Re: [9fans] Permission Problem with p9p vnfs From: Russ Cox To: 9fans@9fans.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: fa22af9c-ead4-11e9-9d60-3106f5b1d025 On Thu, May 14, 2009 at 3:06 AM, Matthias Teege wrote: > Moin, > > I run "vnfs -L -i -b16k -c1k venti.score" on linux and mount it with > "vmount 127.0.0.1 /dump". If I try to access a private file as root I've > got "permission denied". You need to edit src/libdiskfs/*.c to change the access routines to add have = ino.mode&0777; if(ino.uid == au->uid) have >>= 6; else if(ino.gid == au->gid || ingroup(au, ino.gid)) have >>= 3; if(au->uid == 0) // <<< these two lines have = 7; Russ