l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Feb 18 06:44

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] ssh remote commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] ssh remote commands

I'm trying to set up remote access to the PC on my LAN which has the
Rio MP3 player connected to it.  Unfortunately, the command which talks
to it, "rio", requires root access.

As an exercise in safety, I'd like to set up password-less access to the
'/usr/bin/rio' command on that system via SSH.  Unfortunately, I just noticed
this in sshd's man page:

             Specifies that the command is executed whenever this key is used
             for authentication.  The command supplied by the user (if any) is
             ignored. ...         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This means that I can't do anything like:

  ssh root@zen rio -d

  ssh root@zen rio -za

  ssh root@zen rio -u somefile.mp3

Now, I can set up 'sudo' to let particular users access the 'rio' command,
but unfortunately, unless you've ran the command very recently (eg, in the
last 5 minutes!), they're forced to enter their sudo'ing password.  ie:

  ssh myself@zen sudo rio -d

will ask me for 'myself's password.  What's worse is, since this is via
an 'ssh' command execution, when I type my password, it's echoed back!

Looking at these issues, and the fact that one will need to be scp'ing
files back and forth to the host with the Rio connected to it ANYWAY,
I'm thinking ssh or ssh/sudo isn't going to be what I need.

I guess I should look into riofs and see if I can do some sort of weird
double remote mounting.  Or somehting. :)

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.