From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 9 Jan 2014 11:42:14 +0100 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=bcaec5101bfb36bd0e04ef87435e Subject: Re: [9fans] mount with different username Topicbox-Message-UUID: b0f002da-ead8-11e9-9d60-3106f5b1d025 --bcaec5101bfb36bd0e04ef87435e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ok. What do I do wrong? execl("/bin/ssh", "ssh", argv[1], "u9fs", "-Dnza", "p9any", "-A", argv[2], nil); Seems it gets the -Dzna p9any, but not the -A keyfile 2014/1/9 Bence F=C3=A1bi=C3=A1n > Nothing except the ssh entry. > I try to do > mount /srv/u9fs /n/linuxbox > /srv/u9fs is a pipe through ssh to the linuxbox running u9fs. > I'm trying to use p9any on the u9fs side. > When i run the command on the linux box it is fine > but when run through ssh it exits immediately. > Most probably an oversight on my part somewhere. > > I'll try to find what did i mistyped. I use absolute path for > the key file so that can't be it. > > If still can't make it work I'll try with execnet(4). > > > > 2014/1/7 Bence F=C3=A1bi=C3=A1n > >> Im home now. Will send it tomorrow >> >> 2014/1/7, Skip Tavakkolian : >> > what do you have in your factotum for that dom? (i.e. grep linuxboxnam= e >> > /mnt/factotum/ctl) >> > >> > >> > >> > On Tue, Jan 7, 2014 at 9:17 AM, Bence F=C3=A1bi=C3=A1n wrote: >> > >> >> Hi fans! >> >> >> >> I want to mount my filesystem on a linux machine from plan9. >> >> u9fs.log says: >> >> >> >> u9fs >> >> kill 23121 >> >> <- Tversion tag 65535 msize 8216 version '9P2000' >> >> -> Rversion tag 65535 msize 8216 version '9P2000' >> >> <- Tattach tag 15 fid 527 afid -1 uname bence aname >> >> ruserok(, bence) not okay >> >> -> Rerror tag 15 ename u9fs: rhosts authentication failed >> >> >> >> My username is not bence but bfabian on the linux system. >> >> That seems to be the problem. I guess maybe i should use >> >> the -k option of mount(1) but -k 'user=3Dbfabian' doesn't seem >> >> to be enough. >> >> >> >> Any input? >> >> >> >> Thanks, >> >> BenceF >> >> >> >> >> > >> > > --bcaec5101bfb36bd0e04ef87435e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Ok. What do I do wrong?

execl("/bin/ssh",= "ssh", argv[1], "u9fs", "-Dnza", "p9any= ", "-A", argv[2], nil);

Seems it gets the -Dzna p9any= , but not the -A keyfile



201= 4/1/9 Bence F=C3=A1bi=C3=A1n <begnoc@gmail.com>
Nothing except the ssh entry.
I try to do
mount /srv= /u9fs /n/linuxbox
/srv/u9fs is a pipe through ssh to the linuxbox runnin= g u9fs.
I'm trying to use p9any on the u9fs side.
When i run the = command on the linux box it is fine
but when run through ssh it exits immediately.
Most probably an oversigh= t on my part somewhere.

I'll try to find what did i mistyped. I = use absolute path for
the key file so that can't be it.

If still can't make it work I'll try with execnet(4).



2014/1/7 Bence F=C3=A1bi=C3=A1n <begno= c@gmail.com>
Im home now. Will send it tomorrow

2014/1/7, Skip Tavakkolian <skip.tavakkolian@gmail.com>:
> what do you have in your factotum for that dom? (i.e. grep l= inuxboxname
> /mnt/factotum/ctl)
>
>
>
> On Tue, Jan 7, 2014 at 9:17 AM, Bence F=C3=A1bi=C3=A1n <begnoc@gmail.com> wrote:<= br> >
>> Hi fans!
>>
>> I want to mount my filesystem on a linux machine from plan9.
>> u9fs.log says:
>>
>> =C2=A0 =C2=A0 u9fs
>> =C2=A0 =C2=A0 kill 23121
>> =C2=A0 =C2=A0 <- Tversion tag 65535 msize 8216 version '9P2= 000'
>> =C2=A0 =C2=A0 -> Rversion tag 65535 msize 8216 version '9P2= 000'
>> =C2=A0 =C2=A0 <- Tattach tag 15 fid 527 afid -1 uname bence ana= me
>> =C2=A0 =C2=A0 ruserok(, bence) not okay
>> =C2=A0 =C2=A0 -> Rerror tag 15 ename u9fs: rhosts authenticatio= n failed
>>
>> My username is not bence but bfabian on the linux system.
>> That seems to be the problem. I guess maybe i should use
>> the -k option of mount(1) but -k 'user=3Dbfabian' doesn= 9;t seem
>> to be enough.
>>
>> Any input?
>>
>> Thanks,
>> BenceF
>>
>>
>


--bcaec5101bfb36bd0e04ef87435e--