How do I add everyone to the lpadmin group on a mac via a script. I found the following command but it requires a password after it has run. Is there any way to automate this?

dseditgroup -o edit -u itadmin -p -a everyone -t group _lpadmin
0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity


Try running this as an online shell Script which should allow you to do it.
Answered 03/23/2012 by: ms01ak
Tenth Degree Black Belt

Please log in to comment

Use Online Shell Script

Add Machines to the list.

Choose MAC OS X versions from the supported OS list.

Enable "Run As User:" and enter a local administrator credentials

Paste the following into "Script Text"

sudo dseditgroup -o edit -t group -a everyone _lpadmin

Then hit "Run Now".

Tested and Works!

Answered 04/23/2012 by: samuelcolt
Orange Senior Belt

  • Once I choose the Mac OSX versions it will not allow Run As User. This message pops up in that area:
    Run As options are only available for Online KScripts and Online Shell Scripts for Windows.
  • Yes... i am using Online Shell Script and using "Run As" with admin credentials.
    I also have the following in the "script text" box and it works great.

    sudo dseditgroup -o edit -t group -a everyone _lpadmin
Please log in to comment
Try running it an shell script, with the sudo command in front.
Answered 03/22/2012 by: ms01ak
Tenth Degree Black Belt

  • I tried that and this is the output I got back.

    Running: /Library/Application Support/Dell/KACE/data/scripts/484/script.sh 2>&1

    Please enter user password:

    Failed to set credentials.
Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja