Even though I'm sitting next to it, I log into my Ubuntu 10.04 LTS system via NX Free Edition from another system at the moment (this is temporary, not worth buying a KVM for). Curiously, though, when I do that Gnome's auto-mounting fails for CD/DVD media (I haven't tried other kinds) with a "Not Authorized" error. (When I put the media in the machine's own DVD drive, not the one on my client box.) For instance here's what happens when I put the Ubuntu 10.04 LTS installation CD in:
This does not happen if I log into it locally (not via NX) with the same user account.
When using NX, I can mount the media if I go to
tjc@midnight:~$ sudo mkdir /media/dvd tjc@midnight:~$ sudo mount -r -t iso9660 /dev/sr0 /media/dvd tjc@midnight:~$ ls /media/dvd autorun.inf casper dists install isolinux md5sum.txt pics pool preseed README.diskdefines ubuntu wubi.exe
...which, along with the "not authorized" error, suggests some kind of permissions problem to me (doh). What I find odd is that the same user is involved in both cases (local and via NX).
I'm new to Ubuntu on the desktop (used it and other distros on servers for years), so I'm afraid I don't know how this auto-mounting is happening. I think it's handled by the
gvfs package and its daemon, but that's about as far as I got (and perhaps I've taken a left turn even getting that far).
Although I can work around it with
mount, does anyone know how I might get auto-mounting to work?
nx user used by NX doesn't seem to be the issue. I wouldn't have expected it to be, since I'm logging in as myself, but I'm on unfamiliar ground. The only processes running as
nx 4484 4416 0 09:24 ? 00:00:00 sshd: nx@notty nx 4568 1 0 09:24 ? 00:00:00 /usr/NX/bin/nxssh -nxservermode -l tjc localhost -p 22 -x -2 -i /usr/NX/etc/keys/node.localhost.id_dsa -o PubkeyAuthentication yes -o RSAAuthentication yes -o RhostsAuthentication no -o PasswordAuthentication no -o RhostsRSAAuthentication no -o StrictHostKeyChecking no /usr/NX/bin/nxnode nx 4664 1 0 09:24 ? 00:00:00 nxserver -c /usr/NX/bin/nxserver --login
...where all the Gnome stuff is either running as me (
gdm. But just in case, I added
nx to the
cdrom group via
usermod. When that didn't work, not being sure which services might want restarting, I just did the Windows thing and rebooted the machine entirely. No change. In fact, I temporarily added the
nx user to all groups that
tjc was a member of (except the
tjc group), but that didn't do it either, so I think the
nx user isn't the issue.