9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] linux mount -t 9p permissions problem
@ 2016-07-28 23:54 Costin Chirvasuta
  2016-07-29  9:31 ` Costin Chirvasuta
  0 siblings, 1 reply; 4+ messages in thread
From: Costin Chirvasuta @ 2016-07-28 23:54 UTC (permalink / raw)
  To: 9fans

I have ufs (https://github.com/rminnich/go9p/) running on a FreeBSD
box and I'm trying to mount it on linux but the directory has
permission 0:

~$ 9mount -in 'tcp!fs!5640' fs
mount -t 9p -o tcp,trans=tcp,name=ctn,uname=ctn,noextend,nodev,uid=1000,gid=1000,dfltuid=1000,dfltgid=1000,port=5640
192.168.0.3 fs
~$ 9mount -i 'tcp!fs!5640' fs
~$ ls fs
ls: cannot open directory fs: Permission denied
~$ ls -ld fs
d--------- 1 ctn ctn 0 Jul 26 23:52 fs

Any idea how I can fix this? I tried adding umask=0002 as a mount
option but it doesn't seem to work.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] linux mount -t 9p permissions problem
  2016-07-28 23:54 [9fans] linux mount -t 9p permissions problem Costin Chirvasuta
@ 2016-07-29  9:31 ` Costin Chirvasuta
  2016-07-29 12:40   ` Costin Chirvasuta
  0 siblings, 1 reply; 4+ messages in thread
From: Costin Chirvasuta @ 2016-07-29  9:31 UTC (permalink / raw)
  To: 9fans

Well, this was because the exported directory on FreeBSD has
permission 0. It is the mountpoint of torrentfs
(github.com/anacrolix/torrent).

On Fri, Jul 29, 2016 at 2:54 AM, Costin Chirvasuta <costinc@gmail.com> wrote:
> I have ufs (https://github.com/rminnich/go9p/) running on a FreeBSD
> box and I'm trying to mount it on linux but the directory has
> permission 0:
>
> ~$ 9mount -in 'tcp!fs!5640' fs
> mount -t 9p -o tcp,trans=tcp,name=ctn,uname=ctn,noextend,nodev,uid=1000,gid=1000,dfltuid=1000,dfltgid=1000,port=5640
> 192.168.0.3 fs
> ~$ 9mount -i 'tcp!fs!5640' fs
> ~$ ls fs
> ls: cannot open directory fs: Permission denied
> ~$ ls -ld fs
> d--------- 1 ctn ctn 0 Jul 26 23:52 fs
>
> Any idea how I can fix this? I tried adding umask=0002 as a mount
> option but it doesn't seem to work.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] linux mount -t 9p permissions problem
  2016-07-29  9:31 ` Costin Chirvasuta
@ 2016-07-29 12:40   ` Costin Chirvasuta
  2016-08-03 13:19     ` Sergey Zhilkin
  0 siblings, 1 reply; 4+ messages in thread
From: Costin Chirvasuta @ 2016-07-29 12:40 UTC (permalink / raw)
  To: 9fans

I love 9P! It was the only way I could export a FUSE filesystem over
the network and it works flawlessly!

On Fri, Jul 29, 2016 at 12:31 PM, Costin Chirvasuta <costinc@gmail.com> wrote:
> Well, this was because the exported directory on FreeBSD has
> permission 0. It is the mountpoint of torrentfs
> (github.com/anacrolix/torrent).
>
> On Fri, Jul 29, 2016 at 2:54 AM, Costin Chirvasuta <costinc@gmail.com> wrote:
>> I have ufs (https://github.com/rminnich/go9p/) running on a FreeBSD
>> box and I'm trying to mount it on linux but the directory has
>> permission 0:
>>
>> ~$ 9mount -in 'tcp!fs!5640' fs
>> mount -t 9p -o tcp,trans=tcp,name=ctn,uname=ctn,noextend,nodev,uid=1000,gid=1000,dfltuid=1000,dfltgid=1000,port=5640
>> 192.168.0.3 fs
>> ~$ 9mount -i 'tcp!fs!5640' fs
>> ~$ ls fs
>> ls: cannot open directory fs: Permission denied
>> ~$ ls -ld fs
>> d--------- 1 ctn ctn 0 Jul 26 23:52 fs
>>
>> Any idea how I can fix this? I tried adding umask=0002 as a mount
>> option but it doesn't seem to work.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] linux mount -t 9p permissions problem
  2016-07-29 12:40   ` Costin Chirvasuta
@ 2016-08-03 13:19     ` Sergey Zhilkin
  0 siblings, 0 replies; 4+ messages in thread
From: Sergey Zhilkin @ 2016-08-03 13:19 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]

Great ! :)

2016-07-29 15:40 GMT+03:00 Costin Chirvasuta <costinc@gmail.com>:

> I love 9P! It was the only way I could export a FUSE filesystem over
> the network and it works flawlessly!
>
> On Fri, Jul 29, 2016 at 12:31 PM, Costin Chirvasuta <costinc@gmail.com>
> wrote:
> > Well, this was because the exported directory on FreeBSD has
> > permission 0. It is the mountpoint of torrentfs
> > (github.com/anacrolix/torrent).
> >
> > On Fri, Jul 29, 2016 at 2:54 AM, Costin Chirvasuta <costinc@gmail.com>
> wrote:
> >> I have ufs (https://github.com/rminnich/go9p/) running on a FreeBSD
> >> box and I'm trying to mount it on linux but the directory has
> >> permission 0:
> >>
> >> ~$ 9mount -in 'tcp!fs!5640' fs
> >> mount -t 9p -o
> tcp,trans=tcp,name=ctn,uname=ctn,noextend,nodev,uid=1000,gid=1000,dfltuid=1000,dfltgid=1000,port=5640
> >> 192.168.0.3 fs
> >> ~$ 9mount -i 'tcp!fs!5640' fs
> >> ~$ ls fs
> >> ls: cannot open directory fs: Permission denied
> >> ~$ ls -ld fs
> >> d--------- 1 ctn ctn 0 Jul 26 23:52 fs
> >>
> >> Any idea how I can fix this? I tried adding umask=0002 as a mount
> >> option but it doesn't seem to work.
>
>


-- 
С наилучшими пожеланиями
Жилкин Сергей
With best regards
Zhilkin Sergey

[-- Attachment #2: Type: text/html, Size: 2158 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-03 13:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-28 23:54 [9fans] linux mount -t 9p permissions problem Costin Chirvasuta
2016-07-29  9:31 ` Costin Chirvasuta
2016-07-29 12:40   ` Costin Chirvasuta
2016-08-03 13:19     ` Sergey Zhilkin

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).