Apple Event: May 7th at 7 am PT

Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Send UNIX Command / No tty / username & password must be provided

I'm utilizing Apple Remote Desktop (ARD) 3.6.1 (471.16) and I'm attempting to deploy this UNIX command:

sudo dseditgroup -o edit -n /Local/Default -a staff -t group _lpadmin


When using with sudo it gives me this response error:

sudo: no tty present and no askpass program specified


I attempted again and selected the admin user in Run Command As, and it still did not deploy the command.



Then I attempted the command but without sudo:


dseditgroup -o edit -n /Local/Default -a staff -t group _lpadmin


and received this error prompt:

'Username and password must be provided.'



Yes we can logout all standard/managed users deskside log into admin and set it up that way, however with hundreds of macs we'd like to deploy this to is not ideal.


Any suggestions or ways to resolve?



Thanks!

Posted on Apr 18, 2013 2:49 PM

Reply
Question marked as Best reply

Posted on Apr 19, 2013 6:41 AM

Have you tried the command without "sudo" but using "root" in the Send Command As field? That's often what you need to do to get a command to run that requires a higher level of privilege.


Hope this helps.

2 replies

Send UNIX Command / No tty / username & password must be provided

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.