9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Bence Fábián" <begnoc@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] mount with different username
Date: Thu,  9 Jan 2014 13:46:25 +0100	[thread overview]
Message-ID: <CAOCRf5UqvwSBho7_2dayMYcTAJ_KhE0DyD3xeR8zC5Rx6XsAOA@mail.gmail.com> (raw)
In-Reply-To: <CAOCRf5WpdvAhpgVgbsnfJAyEDiXyJETKnj4eSB_G5QynVbmV0Q@mail.gmail.com>

[-- 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 --]

      reply	other threads:[~2014-01-09 12:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-07 17:17 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOCRf5UqvwSBho7_2dayMYcTAJ_KhE0DyD3xeR8zC5Rx6XsAOA@mail.gmail.com \
    --to=begnoc@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).