ssh-keygen -t rsa -f admin_key
mkdir /etc/xcpu
cp admin_key* /etc/xcpu
xcpufs -d
xgroupset add 127.0.0.1 root 0
xuserset add 127.0.0.1 root 0 root /root/.ssh/id_rsa.pub
xrx 127.0.0.1 /bin/date
That Works
Now I want to mount the client on /mnt/xcpu1/1 so I do:
mount -t 9p 127.0.0.1 /mnt/xcpu/1/ -o uname=root,port=6667
xcpufs reports:
<<< (0x15b42e0) Tversion tag 65535 msize 8192 version '9P2000.u'
>>> (0x15b42e0) Rversion tag 65535 msize 8192 version '9P2000.u'
<<< (0x15b42e0) Tattach tag 0 fid 0 afid -1 uname root aname nuname -1
>>> (0x15b42e0) Rerror tag 0 ename authentication failed ecode 5
When I leave off the uname=root parameter I get:
<<< (0x15b42e0) Tversion tag 65535 msize 8192 version '9P2000.u'
>>> (0x15b42e0) Rversion tag 65535 msize 8192 version '9P2000.u'
<<< (0x15b42e0) Tattach tag 0 fid 0 afid -1 uname nobody aname nuname -1
>>> (0x15b42e0) Rerror tag 0 ename unknown user ecode 5
I'm using a ubuntu 2.6.27-11-generic kernel with xcpu-1.2.3 running all
commands as root. Any ideas?
-Don
Thanks,
Lucho
> If you have a convincing case for using it mounted, I can probably write a
> simple mounter that does the authentication before it handles the connection
> to the kernel.
I think the case is simple: 9p servers should always be mountable from
9p vfs. It's just embarrassing otherwise.
we've talked about a mount helper for years; this may be the time to write it.
ron
Thanks,
Lucho
-eric
So what you should do after creating /etc/xcpu/admin_key is:
xuserset add localhost nobody 4294967295 xcpu-admin
mount -t 9p 127.0.0.1 /mnt/xcpu/1 -o port=6667,access=any
Let me know if it doesn't work. Once I fix v9fs, I'll create an xcpu-
mount utility that does authentication.
Thanks,
Lucho