From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <20190620150435.GA31903@legohost> In-Reply-To: <20190620150435.GA31903@legohost> From: Charles Forsyth Date: Thu, 20 Jun 2019 17:34:03 +0100 Message-ID: To: Oleg , Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="00000000000095078b058bc3ea2b" Subject: Re: [9fans] linux 9p: uid & gid Topicbox-Message-UUID: 010abbce-eada-11e9-9d60-3106f5b1d025 --00000000000095078b058bc3ea2b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 4294967294 probably started off as -2, which some systems used for user "nobody" On Thu, Jun 20, 2019 at 4:04 PM Oleg 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=3Dunix,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=3Dunix,noextend,trans=3Dunix,noextend,dfltuid=3D0,dfltgid=3D0 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. > > -- > =D0=9E=D0=BB=D0=B5=D0=B3 =D0=9D=D0=B5=D0=BC=D0=B0=D0=BD=D0=BE=D0=B2 (Oleg= Nemanov) > > --00000000000095078b058bc3ea2b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
4294967294 probably start= ed off as -2, which some systems used for user "nobody"

On Thu, Jun 20, 2019 at 4:04 PM Oleg <lego12239@yandex.ru> wrote:
Hi, all.

I wrote a 9p fs with help of libixp and after mounting i see strange uid an= d
gid numbers for files:

~# mount -t 9p -o trans=3Dunix,noextend q t
~# ls -l t
-rw-rw-rw- 1 4294967294 4294967294 1 Jan=C2=A0 1=C2=A0 1970 conf
-rw-rw-rw- 1 4294967294 4294967294 1 Jan=C2=A0 1=C2=A0 1970 data
-rw-rw-rw- 1 4294967294 4294967294 1 Jan=C2=A0 1=C2=A0 1970 stat

If i do mount with dfltuid and dfltgid, i get normal values:

~# mount -t 9p -o trans=3Dunix,noextend,trans=3Dunix,noextend,dfltuid=3D0,d= fltgid=3D0 q t
~# ls -l t
-rw-rw-rw- 1 root root 1 Jan=C2=A0 1=C2=A0 1970 conf
-rw-rw-rw- 1 root root 1 Jan=C2=A0 1=C2=A0 1970 data
-rw-rw-rw- 1 root root 1 Jan=C2=A0 1=C2=A0 1970 stat

But in any case chown call to these files sends empty uid and gid strings i= n
wstat T-message.

Is there any way to make uid & gid works as expected?

Thanks.

--
=D0=9E=D0=BB=D0=B5=D0=B3 =D0=9D=D0=B5=D0=BC=D0=B0=D0=BD=D0=BE=D0=B2 (Oleg N= emanov)

--00000000000095078b058bc3ea2b--