• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Running remote commands through sudo/sec framework?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running remote commands through sudo/sec framework?


  • Subject: Re: Running remote commands through sudo/sec framework?
  • From: Rakka <email@hidden>
  • Date: Fri, 29 Jul 2005 09:28:12 +1000

That'd be good, however, this for a an application, and I think most users shouldn't do anything other than enable SSH on their machines. I wouldn't want everyone who uses the app to go and fiddle with the sudoers file?

And also, before working on that, how would I check if the user is an admin, after someone connects to their remote machine through my app?

Thanks.

On 29/07/2005, at 1:42 AM, Michael Carter wrote:


Have the admin on the remote machine add the commands you need to execute to the sudoers file with the NOPASSWD: modifier. This is the way most admins allow external scripts to work between machines.


On Jul 28, 2005, at 5:50 AM, Rakka wrote:



Hi,

I want to run some terminal commands on a remote machine through my application (the tasks require admin authentication, i.e sudo). Is this possible to do securely? I was thinking of using SSH, but once the user supplies the name and password for the remote machine, and my app connects to it, how do I check if it was an administrator name and password. And once I verify that it is a correct admin user, how would I directly send commands using sudo - e? Or is there a way to use the Security framework for remote authentication?

I'm trying to figure out how to do this, but just can't see how it can be done. (executing sudo commands on a remote machine).

Thanks a lot for any help.

- rakka _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Running remote commands through sudo/sec framework?
      • From: Eric Brunstad <email@hidden>
References: 
 >Running remote commands through sudo/sec framework? (From: Rakka <email@hidden>)
 >Re: Running remote commands through sudo/sec framework? (From: Michael Carter <email@hidden>)

  • Prev by Date: Using Bindings for an Inspector
  • Next by Date: Strange Crash Log
  • Previous by thread: Re: Running remote commands through sudo/sec framework?
  • Next by thread: Re: Running remote commands through sudo/sec framework?
  • Index(es):
    • Date
    • Thread