* [9fans] mount with different username @ 2014-01-07 17:17 Bence Fábián 2014-01-07 17:33 ` Nicolas Bercher 2014-01-07 19:04 ` Skip Tavakkolian 0 siblings, 2 replies; 8+ messages in thread From: Bence Fábián @ 2014-01-07 17:17 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 608 bytes --] 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=bfabian' doesn't seem to be enough. Any input? Thanks, BenceF [-- Attachment #2: Type: text/html, Size: 745 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] mount with different username 2014-01-07 17:17 [9fans] mount with different username Bence Fábián @ 2014-01-07 17:33 ` Nicolas Bercher 2014-01-07 18:56 ` Nicolas Bercher 2014-01-07 19:04 ` Skip Tavakkolian 1 sibling, 1 reply; 8+ messages in thread From: Nicolas Bercher @ 2014-01-07 17:33 UTC (permalink / raw) To: 9fans On 07/01/2014 18:17, Bence Fábián 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=bfabian' doesn't seem > to be enough. > > Any input? > > Thanks, > BenceF > When I login with drawterm, I need to use both -u (for drawterm) and -k (for factotum if I remember well), maybe this is the same for mount: -u bfabian -k 'user=bfabian' Can't find -u in mount(1) as well as -k in drawterm usage(). Nicolas ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] mount with different username 2014-01-07 17:33 ` Nicolas Bercher @ 2014-01-07 18:56 ` Nicolas Bercher 0 siblings, 0 replies; 8+ messages in thread From: Nicolas Bercher @ 2014-01-07 18:56 UTC (permalink / raw) To: 9fans On 07/01/2014 18:33, Nicolas Bercher wrote: > maybe this is the same for mount: > > -u bfabian -k 'user=bfabian' Sorry, after a quick code exploration (mount.c), I think this is a wrong assumption. Nicolas ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] mount with different username 2014-01-07 17:17 [9fans] mount with different username Bence Fábián 2014-01-07 17:33 ` Nicolas Bercher @ 2014-01-07 19:04 ` Skip Tavakkolian 2014-01-07 19:24 ` Bence Fábián 1 sibling, 1 reply; 8+ messages in thread From: Skip Tavakkolian @ 2014-01-07 19:04 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 826 bytes --] what do you have in your factotum for that dom? (i.e. grep linuxboxname /mnt/factotum/ctl) On Tue, Jan 7, 2014 at 9:17 AM, Bence Fábián <begnoc@gmail.com> 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=bfabian' doesn't seem > to be enough. > > Any input? > > Thanks, > BenceF > > [-- Attachment #2: Type: text/html, Size: 1204 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] mount with different username 2014-01-07 19:04 ` Skip Tavakkolian @ 2014-01-07 19:24 ` Bence Fábián 2014-01-09 10:10 ` Bence Fábián 0 siblings, 1 reply; 8+ messages in thread From: Bence Fábián @ 2014-01-07 19:24 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs 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 linuxboxname > /mnt/factotum/ctl) > > > > On Tue, Jan 7, 2014 at 9:17 AM, Bence Fábián <begnoc@gmail.com> 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=bfabian' doesn't seem >> to be enough. >> >> Any input? >> >> Thanks, >> BenceF >> >> > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] mount with different username 2014-01-07 19:24 ` Bence Fábián @ 2014-01-09 10:10 ` Bence Fábián 2014-01-09 10:42 ` Bence Fábián 0 siblings, 1 reply; 8+ messages in thread From: Bence Fábián @ 2014-01-09 10:10 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 1571 bytes --] 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ábián <begnoc@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 linuxboxname > > /mnt/factotum/ctl) > > > > > > > > On Tue, Jan 7, 2014 at 9:17 AM, Bence Fábián <begnoc@gmail.com> 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=bfabian' doesn't seem > >> to be enough. > >> > >> Any input? > >> > >> Thanks, > >> BenceF > >> > >> > > > [-- Attachment #2: Type: text/html, Size: 2352 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] mount with different username 2014-01-09 10:10 ` Bence Fábián @ 2014-01-09 10:42 ` Bence Fábián 2014-01-09 12:46 ` Bence Fábián 0 siblings, 1 reply; 8+ messages in thread From: Bence Fábián @ 2014-01-09 10:42 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 1862 bytes --] 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ábián <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 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ábián <begnoc@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 linuxboxname >> > /mnt/factotum/ctl) >> > >> > >> > >> > On Tue, Jan 7, 2014 at 9:17 AM, Bence Fábián <begnoc@gmail.com> 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=bfabian' doesn't seem >> >> to be enough. >> >> >> >> Any input? >> >> >> >> Thanks, >> >> BenceF >> >> >> >> >> > >> > > [-- Attachment #2: Type: text/html, Size: 2997 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] mount with different username 2014-01-09 10:42 ` Bence Fábián @ 2014-01-09 12:46 ` Bence Fábián 0 siblings, 0 replies; 8+ messages in thread From: Bence Fábián @ 2014-01-09 12:46 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 2265 bytes --] Hi! Seems ssh takes only a fixed number of arguments as cmd. term% ssh bfabian@<linuxbox> echo `{seq 20} 1 2 Passing it in one argument in exec works. However! Tattach still sends "bence" (my plan 9 user) as uname. How could i change that to bfabian? BR, Bence 2014/1/9 Bence Fábián <begnoc@gmail.com> > 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ábián <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 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ábián <begnoc@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 linuxboxname >>> > /mnt/factotum/ctl) >>> > >>> > >>> > >>> > On Tue, Jan 7, 2014 at 9:17 AM, Bence Fábián <begnoc@gmail.com> 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=bfabian' doesn't seem >>> >> to be enough. >>> >> >>> >> Any input? >>> >> >>> >> Thanks, >>> >> BenceF >>> >> >>> >> >>> > >>> >> >> > [-- Attachment #2: Type: text/html, Size: 3692 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-01-09 12:46 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-01-07 17:17 [9fans] mount with different username Bence Fábián 2014-01-07 17:33 ` Nicolas Bercher 2014-01-07 18:56 ` Nicolas Bercher 2014-01-07 19:04 ` Skip Tavakkolian 2014-01-07 19:24 ` Bence Fábián 2014-01-09 10:10 ` Bence Fábián 2014-01-09 10:42 ` Bence Fábián 2014-01-09 12:46 ` Bence Fábián
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).