* [9fans] Permission Problem with p9p vnfs
@ 2009-05-14 10:06 Matthias Teege
2009-05-15 0:31 ` Russ Cox
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Teege @ 2009-05-14 10:06 UTC (permalink / raw)
To: 9fans
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".
# id
uid=0(root) gid=0(root)
# ls -al /dump/a/2009/0427/home/x/
drwx------ 2 2004 2004 1024 Feb 27 09:29 .ssh
# ls -al /dump/a/2009/0427/home/x/.ssh/
ls: cannot open directory /dump/a/2009/0427/home/x/.ssh/: Permission denied
For restore I need access to all files. How do I get permission to a
private file without changing to the uid of the file?
Many thanks
Matthias
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [9fans] Permission Problem with p9p vnfs
2009-05-14 10:06 [9fans] Permission Problem with p9p vnfs Matthias Teege
@ 2009-05-15 0:31 ` Russ Cox
0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2009-05-15 0:31 UTC (permalink / raw)
To: 9fans
On Thu, May 14, 2009 at 3:06 AM, Matthias Teege <matthias-9fns@mteege.de> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-15 0:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-14 10:06 [9fans] Permission Problem with p9p vnfs Matthias Teege
2009-05-15 0:31 ` Russ Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).