Re: linux 9p: uid & gid

Charles Forsyth <[email protected]>
Newsgroups gmane.os.plan9.general
Message-ID <CAOw7k5hn5BEp9maxK-wjgYSJbBFy+9megiCjhiNjUzYGHrV8Ow@mail.gmail.com>
4294967294 probably started off as -2, which some systems used for user
"nobody"

On Thu, Jun 20, 2019 at 4:04 PM Oleg <[email protected]> wrote:

> Hi, all.
>
> I wrote a 9p fs with help of libixp and after mounting i see strange uid
> and
> gid numbers for files:
>
> ~# mount -t 9p -o trans=unix,noextend q t
> ~# ls -l t
> -rw-rw-rw- 1 4294967294 4294967294 1 Jan  1  1970 conf
> -rw-rw-rw- 1 4294967294 4294967294 1 Jan  1  1970 data
> -rw-rw-rw- 1 4294967294 4294967294 1 Jan  1  1970 stat
>
> If i do mount with dfltuid and dfltgid, i get normal values:
>
> ~# mount -t 9p -o
> trans=unix,noextend,trans=unix,noextend,dfltuid=0,dfltgid=0 q t
> ~# ls -l t
> -rw-rw-rw- 1 root root 1 Jan  1  1970 conf
> -rw-rw-rw- 1 root root 1 Jan  1  1970 data
> -rw-rw-rw- 1 root root 1 Jan  1  1970 stat
>
> But in any case chown call to these files sends empty uid and gid strings
> in
> wstat T-message.
>
> Is there any way to make uid & gid works as expected?
>
> Thanks.
>
> --
> Олег Неманов (Oleg Nemanov)
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.