diff -r fda0775c4195 sys/src/cmd/hjfs/auth.c --- a/sys/src/cmd/hjfs/auth.c Tue Jan 19 18:14:53 2021 -0800 +++ b/sys/src/cmd/hjfs/auth.c Tue Jan 19 19:31:18 2021 -0800 @@ -301,10 +301,13 @@ if((fs->flags & FSNOPERM) != 0) return 1; perm = d->mode & 0777; - if(d->uid == uid) - perm >>= 6; - else if(ingroup(fs, uid, d->gid, 0)) - perm >>= 3; + /* uid none gets only other permissions */ + if(d->uid != 0) { + if(d->uid == uid) + perm >>= 6; + else if(ingroup(fs, uid, d->gid, 0)) + perm >>= 3; + } switch(mode & 3){ case OREAD: return (perm & 4) != 0;