Help!

allow a user to run a command as root over ssh

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Genreal Discussions RSS
Next:  openSuse 11.1 / KDE4  
Author Message
bl8n8r
External


Since: May 11, 2007
Posts: 5



PostPosted: Tue Jul 14, 2009 1:05 pm    Post subject: allow a user to run a command as root over ssh
Archived from groups: alt>os>linux (more info?)

in ~/root/.ssh/authorized_keys

from="10.8.2.101",command="/root/bin/trafmon",no-port-forwarding,no-
X11-forwarding ssh-dss AAAABCUgqdk... J6n5dF6F8rKc= luser.TakeThisOut@int.foo.com
Back to top
J.O. Aho
External


Since: Mar 26, 2004
Posts: 2216



PostPosted: Wed Jul 15, 2009 2:10 am    Post subject: Re: allow a user to run a command as root over ssh [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

bl8n8r wrote:
> in ~/root/.ssh/authorized_keys
>
> from="10.8.2.101",command="/root/bin/trafmon",no-port-forwarding,no-
> X11-forwarding ssh-dss AAAABCUgqdk... J6n5dF6F8rKc= luser.RemoveThis@int.foo.com

root login to a system should be disabled, specially if the machine is
accessible from a public network.

Alternative method would be to login as unprivileged user and use sudo to
grant access to run a command.

--

//Aho
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Genreal Discussions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum