Send a Unix command through ARD that will change a OS X admin user to a standard user.

I would love to send a Unix command through ARD that will change a OS X admin user to a standard user. The only thing I found close is
sudo dscl . -delete /Groups/admin GroupMembership USERNAME
which does remove the user from the list of admins, but they are still listed as an admin in the user preference panel, and can still use their account to authenticate for admin privileges.

I'm not having any problems adding or removing users from the 'admin' group by using the syntax's
dscl . -delete /Groups/admin GroupMembership ARDusername
or
dscl . -append /Groups/admin GroupMembership ARDusername
What I'm saying is if a user is ticked as an Adminstrator in System Preferences and I run the
dscl . -delete /Groups/admin GroupMembership ARDusername syntax and remove them from the 'admin' GroupMembership they still have the Administrator box ticked in System Prefs and can administer the machine.
By the way the '/' doesn't work in the syntax in ARD.
Thanks

Similar Messages

  • Does anyone know the apple script or unix command in ARD that allows me to send keystroke commands to computers on my ARD network ? thanks !

    I am trying to cue computers through keystroke commands using ARD
    I want to know a unix shell or script command to hit keystrokes on my ARD machines.
    EXAMPLE... I want machine X  to press the letter K.
    I am also wondering if you can send multiple commands doing this , multiple keystrokes with built in delays
    Thank you

    Welcome,
    I use the "System Events" handler, e.g.:
              tell application "System Events" to delay 5.5
              tell application "System Events" to keystroke "K"
              tell application "System Events" to delay 0.5
              tell application "System Events" to keystroke return
    Regards,
    Shawn

  • Using Sent Unix Command in ARD 3 with proxy authentication

    I'd like to use Unix commands to update Apple software through ARD thus allowing me to lock the computer screen before the process using the ARD command to do so, thus keeping the users from interfering with the process .
    Our network utilizes password protected firewall proxy that hangs ARD when using the softwareupdate command through ARD's "Send Unix Command..." at the point in which it would ask for authentication if using the same command in the terminal.
    Is there a Unix/terminal script or a series of script commands that could be modified to wait and enter the appropriate authentication at the previous mentioned prompt?
    I've researched this topic on this forum and discover a few post that states it is not possible but they are fairly old posts so I am hoping ARD 3 has some scripts or commands that can pass thru a username and password

    Welcome,
    I use the "System Events" handler, e.g.:
              tell application "System Events" to delay 5.5
              tell application "System Events" to keystroke "K"
              tell application "System Events" to delay 0.5
              tell application "System Events" to keystroke return
    Regards,
    Shawn

  • Unix command in ARD to remove DNS Servers from Network prefs?

    I need to know how to send a unix command to remove DNS Servers in Network preferences. I need the DNS Servers field to be blank. Can this be done?

    Our network administrator is getting ready to change the IP address of our DNS server. This means I have over 30 Macs that will be needing changes to their DNS settings. Since each machine is setup with limited access to the system prefs, that means I have to go to each machine and log in as the admin user to make this change. In the interest of saving time, is this something I can do with Remote Desktop and how? Would I use the same commands in this post and replace dns1 with our DNS' new IP address? Will this distrupt the users access to the network when I do so?
    Thanks for any help.
    Beth

  • Sending a unix command but can't authenticate

    I'm using ARD to manage a lab and sending an rm command via ARD to delete a particular file in the student account's library. The command is sent fine and then a box comes up asking me to enter the password to complete the task.
    The problem is there is no cursor in the box and no matter where I click, I can't enter the password at all.
    Has this happened to anyone else?

    It's actually labeled "Run command as..." I was in a hurry and mislabeled the command in my previous post. You'll find more information on the "Send UNIX Command" option on page 145 of the ARD 3 Administrator's Guide.
    Regards.

  • Executing Unix command through Java

    Hi,
    Hi, I am trying to run some unix command through:
    Runtime.getRuntime().exec("some unix command line");
    I am running the code on Linux platform. However, I always got some errors. Here are the stack trace of them:
    java.io.IOException: Cannot allocate memory
    java.io.IOException: java.io.IOException: Cannot allocate memory
            at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
            at java.lang.ProcessImpl.start(ProcessImpl.java:65)
            at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
            at java.lang.Runtime.exec(Runtime.java:591)
            at java.lang.Runtime.exec(Runtime.java:429)
            at java.lang.Runtime.exec(Runtime.java:326)Anybody has any idea why is this happening? Thanks.
    Aulia

    Hi, thanks for your reply so far. I tried the following code:
         public boolean executeCommand() {
              boolean success = true;
              for (int i = 0; i < 5; i++) {
                   Process p = null;
                   try {
                        p = Runtime
                        .getRuntime()
                        .exec("ls");
                        InputStreamReader inR = new InputStreamReader(p
                                  .getErrorStream());
                        BufferedReader buf = new BufferedReader(inR);
                        String line;
                        while ((line = buf.readLine()) != null) {
                             System.out.println(line);
                        p.destroy();
                   } catch (Exception e) {
                        System.err.println(e.getMessage());
                        e.printStackTrace();
                        success = false;
                   } finally {
                        p = null;
              return success;
         }However, it still throws the same exception. Yes, I put it in a tight loop, but not recursively.

  • Problem in executing a unix command through java

    hi
    i'm trying to execute unix command through java
    simple shell command like "ls -l >test " but i'm not able to see the result.
    there are no error messages.
    Code is:
    import java.lang.Runtime.*;
    class ExecDemo
         public static void main(String[] args)
              Runtime r=Runtime.getRuntime();
              Process p=null;
              try
                   p=r.exec("ls -l > test");
              catch (Exception e)
                   System.out.println("Error executing nedit.");
    }can anyone help please.

    get the the inputStream of the runtime object after executing the command.
    now use the readLine() function until it becomes null.
    egs: with reference to ur code.
    InputStream is=p.getInputStream()
    while(is!=null)
    String s=is.readLine();
    if the command don't execute try giving the full path also like /sbin/ls -l

  • GETTING THE OUPUT OF UNIX COMMAND THROUGH JAVA

    Hi Guyz...
    Please help me in the below code...
    My intention is to print the output of Unix command through a java program.
    The Java program resides in the Unix Server only.
    I have written the below java code , but its not returning any values....
    String s1= "ls -lt $APPL_TOP/patch/115/odf/jtfgh.odf";
    Runtime r = Runtime.getRuntime();
    Process p= r.exec(s1);
    StringBuffer ret=new StringBuffer();
    InputStream in = p.getInputStream();
    int c;     
    while ((c = in.read()) != -1)
    {                  ret.append((char)c);       
    }     in.close();
    out.println("OTUPUT : "+ ret.toString());
    Can you please help me in this by debugging the existing code or giving me the exact code??
    IT IS URGENT FOR MY PROJECT!!!!!!!!!!!!!!!!!!!!!!!!!!!
    PLEASE HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Since you are expecting the shell to expand the environment variable you need to use
    String[] s1= {"sh","-c","ls -lt $APPL_TOP/patch/115/odf/jtfgh.odf"};
    Also, you should read, digest and implement the recommendations of
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html .
    P.S Your urgency is not my problem and SHOUTING IS CONSIDERED VERY RUDE!

  • How to make a Java application that will change the client box's IP address

    HI how to make a Java application( that application would be run on the client ) that will change the client box's IP address ( IP address of itself )

    If you can do that through the command line, then use Runtime.getRuntime().exec(...) to execute your command.

  • Is it possible to make a reflection of an image that will change with the image? [was: Reflection]

    Is it possible to make a reflection of an image that will change with the image?

    normfb wrote:
    I believe that a Smart Object will solve your problem.
    place your original image in a new file as a smart object and do the same for the reflection (made by Transforming, reducing the opacity and introducing a mild horizontal motion blur) on its own layer, then:
    by double clicking on the smart object in the layers panel and returning to the original image, any change you make in the original and save, will automatically update the upright image and its reflection.
    Nice one Norm.  Five Kudos points to you.

  • FM or BAPI that will change the address in table ADRC

    Hello,
    Is there any Function module or BAPI that will change the address in table, ADRC?
    Regards,
    Remi

    Hi,
    I don't use Business Partners / Biller Direct related information... So, the related FMs :
    BUPA / EBPP might not help
    My aim is to update ADRC table.
    I have found a couple of FMs that has to be followed in an Order :
    For inserting an Record :
    1) ADDR_INSERT
    2) ADDR_NUMBER_GET
    3) ADDR_MEMORY_SAVE
    4) ADDR_MEMORY_CLEAR
    For Updating :
    1) ADDR_UPDATE
    2) ADDR_MEMORY_SAVE
    3) ADDR_MEMORY_CLEAR
    But i don't know what to fill for address_handle !!
    How do i use these FMs??
    Regards,
    Remi

  • Cant send UNIX commands via ARD

    I have ARD, and the option to send UNIX commands is greyed out. Help?

    On the client, apple menu, system preferences, sharing, Remote Management.
    If allow access is set to all users, then click the options button.
    else, select the user your using to connect to the client, and then click the option button.
    Make sure every thing is checked.
    click ok
    try again on ARD.
    Other things to try:
    quit and re-open ARD.
    delete, then  and re-add the client computer from ARD.
    unchecking, and then re- checking remote management on the client. (to force the service to restart)

  • Can this script be converted to a UNIX command for ARD?

    First I'd like to thank "Neil" again for providing the script below:
    set the_versions to (do shell script "mdls -name kMDItemVersion /Applications/Microsoft\\ Office\\ 2011/Microsoft\\ Excel.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Adobe\\ Reader.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Safari.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Google\\ Chrome.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Adobe\\ Acrobat\\ X\\ Pro/Adobe\\ Acrobat\\ Pro.app")
    set the_versions to the_versions & return & (do shell script "SW_vers")
    Output for this script yields exactly what I requested in the thread.  Ex:
    "kMDItemVersion = \"14.4.1\"
    kMDItemVersion = \"11.0.07\"
    kMDItemVersion = \"7.0.4\"
    kMDItemVersion = \"35.0.1916.114\"
    kMDItemVersion = \"10.1.10\"
    ProductName:          Mac OS X
    ProductVersion:          10.9.3
    BuildVersion:          13D65"
    I'd like to be able to run this command (or a variation) in Apple Remote Desktop (ARD) remotely, and as a UNIX command in order to generate a similar ARD report if possible.  Even better, I'd like the report to include the Application name and I'd like it to not to halt if an Application isn't present. My guess is that functionality like this for ARD would help a LOT of ARD Administrators because it would seem that the only way to do anything similar is to derive the metadata piecemeal (machine by machine) or end up having to wade through a ton of unwanted content using a full System Report...  Thanks.

    Forum software NOW prevents posting complete shell scripts. You'll have to piece together the code.
    First build an array of the applications that you are looking for in this form. Note; I truncated the applications.
    apps=( "/Applications/Microsoft Office 2011/Microsoft Excel.app" "/Applications/Adobe Reader.app" "/Applications/Safari.app" )
    Next loop thru the array
    for i in "${apps[@]}"; do
         printf "%s: %s\n" "$i" "$(mdls -name kMDItemVersion "$i")"
    done
    If you want to create a report then change the above loop to the following
    for i in "${apps[@]}"; do
         printf "%s: %s\n" "$i" "$(mdls -name kMDItemVersion "$i")"
    done > app_report.txt
    sw_vers >> app_report.txt
    Message was edited by: Mark Jalbert

  • Sending the UNIX command to install updates over Remote Desktop returns No Updates Available, but they appear when I manually check in the App Store. Why?

    We use profile manager to set the URL for the Software Updates on a server inhouse, and the clients see the updates when I open the app store on their iMac, but when I try to send the update command to all Macs through Remote Desktop, RD is returning that there are no updates available.
    And here's a log message:
    Mar 20 09:45:17 Alisas-iMac kernel[0]: BUG in process suhelperd[261]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
    Mar 20 09:45:17 --- last message repeated 11 times ---
    Why does this happen? Do we really have to manually update each client or is there something wrong?

    We use profile manager to set the URL for the Software Updates on a server inhouse, and the clients see the updates when I open the app store on their iMac, but when I try to send the update command to all Macs through Remote Desktop, RD is returning that there are no updates available.
    And here's a log message:
    Mar 20 09:45:17 Alisas-iMac kernel[0]: BUG in process suhelperd[261]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)
    Mar 20 09:45:17 --- last message repeated 11 times ---
    Why does this happen? Do we really have to manually update each client or is there something wrong?

  • Is there any version of any operating system (Snow Leopard through Maverick) that will make my 2010 Macbook 7,1 run some-what efficiently again? Instead of just installing Maverick, should I consider re-installing any of the previous op systems?

    My 13-inch, Mid-2010 Macbook has declined in performance with every operating system upgrade. Maverick functioned, unlike Yosemite, which I currently have every intention of deleting. Honestly, the last time my mac could run multiple applications at once without slowing to a crawl and then crashing was on Snow Leopard, Lion, or Mountain Lion. Although I'm not quite sure at what point my Mac ran smoothest, but remained compatible with the new applications I've downloaded over the years. I know that it's been too long since I enjoyed using my 2010 Macbook. In fact, I thoroughly enjoy using my 2008 Macbook more, despite it's limited compatibility and obsolete features.
    I own a Snow Leopard install disk, or could install any of the operating system on my desktop and reinstall using a USB method, or any other means to successfully wipe a disk clean of Yosemite that many of you might know that works similarly (I didn't have Time Machine on). With that being the case, what is my best option for deleting Yosemite, and recovering an older OS X operating system successfully?
    The question I have for all of you with knowledge superior to my mediocre Mac mind, is what operating system can I reinstall on this Mac that will give it the best shot to function acceptably? Is any specific version compatible with all/most new software and such, but before Maverick and Yosemite raised my active memory usage through the run, along with constant lagging, and then a kernel panic. Through extensive googling, I've become more confused and frustrated. I could not get a concrete answer due to the questions phrasing, but hopefully someone can assist me here ASAP, please. How can I run Google Chrome and have a Celtx document open again without unavoidable crashing? I won't be greedy and dare ask for an additional, minimally energy draining application run in the background. Again, my 2008 runs beautifully, but is limited in compatibility. My newer 2010 Mac runs like it's struggling for memory (I've used 30 gb out of the 200, using my out-dated Macbook for most of my Mac tasks.
    My minor question.... For deleting Yosemite, what method is the most effective and easy considering the options? My major question..... Will reinstalling an operating system on a fresh disk, is any operating system valuable enough to consider installing and avoiding re-updating to Maverick? Or is Maverick my best shot? And a Mac that is significantly newer and more compatible with current hardware and software, and has approx 100 gb less on it's drive than my 2008 Mac, yet the Yosemite Mac can't handle of a fraction of the 2008 Snow Leopard activity. This is my 5th physical Macbook in less than a decade, btw. Along with pads and phones. I refuse to give Apple more money to solve this, so that is not the answer I'm looking for. Thank you.

    FIRSTLY, THANK YOU! I appreciate any help you can lend me here. Below is a Etrecheck from today.
    Essentially, Google Chrome and ANY other program open will eventually freeze up. I deleted Chrome. Re-downloaded. Completely deleted. Used Safari. Absolutely NO BETTER.
    If I'm writing a really long document in a word processor and using a thesaurus or dictionary application in the background.... That will eventually freeze my mac.
    So ANY assistance here would be terrific because since Yosemite it's been impossible to tolerate. 
    Problem description:
    If 2 “major” programs are running at the same time, my Macbook is almost unusable due to lag, crashes, and freezes.
    EtreCheck version: 2.1.8 (121)
    Report generated March 1, 2015 at 9:19:18 AM EST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook (13-inch, Mid 2010) (Technical Specifications)
        MacBook - model: MacBook7,1
        1 2.4 GHz Intel Core 2 Duo CPU: 2-core
        2 GB RAM Upgradeable
            BANK 0/DIMM0
                1 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                1 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 443
    Video Information: ℹ️
        NVIDIA GeForce 320M - VRAM: 256 MB
            NS32E400NA14 spdisplays_1080p
    System Software: ℹ️
        OS X 10.9.5 (13F34) - Time since boot: 22:5:54
    Disk Information: ℹ️
        Hitachi HTS545025B9SA02 disk0 : (250.06 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            THE MAC HD (disk0s2) / : 249.20 GB (197.12 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
        OPTIARC DVD RW AD-5970H 
    USB Information: ℹ️
        TOSHIBA External USB 3.0 1 TB
            BOX (disk1s1) /Volumes/BOX : 500.10 GB (27.71 GB free)
            Box 2 (disk1s2) /Volumes/Box 2 : 500.10 GB (407.54 GB free)
        Apple Inc. Built-in iSight
        Logitech USB Receiver
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
    Configuration files: ℹ️
        /etc/hosts - Count: 17
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Library/Extensions
        [loaded]    com.Logitech.Control Center.HID Driver (3.9.1 - SDK 10.8) [Click for support]
            /System/Library/Extensions
        [loaded]    com.Cycling74.driver.Soundflower (1.6.6 - SDK 10.6) [Click for support]
        [loaded]    com.Logitech.Unifying.HID Driver (1.3.0 - SDK 10.6) [Click for support]
        [not loaded]    com.microsoft.driver.MicrosoftMouse (8.2) [Click for support]
        [loaded]    com.silex.driver.sxuptp (1.10.5 - SDK 10.6) [Click for support]
        [loaded]    com.usboverdrive.driver.hid (3.0.2 - SDK 10.6) [Click for support]
            /System/Library/Extensions/MicrosoftMouse.kext/Contents/PlugIns
        [not loaded]    com.microsoft.driver.MicrosoftMouseBluetooth (8.2) [Click for support]
        [not loaded]    com.microsoft.driver.MicrosoftMouseUSB (8.2) [Click for support]
            /System/Library/Extensions/USBOverdrive.kext/Contents/PlugIns
        [not loaded]    com.usboverdrive.driver.hid.safe (3.0.2) [Click for support]
    Launch Agents: ℹ️
        [loaded]    com.divx.dms.agent.plist [Click for support]
        [loaded]    com.divx.update.agent.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.Logitech.Control Center.Daemon.plist [Click for support]
        [not loaded]    com.splashtop.streamer-for-root.plist [Click for support]
        [loaded]    com.splashtop.streamer-for-user.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [failed]    com.splashtop.streamer-daemon.plist [Click for support]
        [failed]    com.splashtop.streamer-srioframebuffer.plist [Click for support]
    User Launch Agents: ℹ️
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
        [running]    com.google.Chrome.framework.plist [Click for support]
        [failed]    com.leadertech.PowerRegister.EPS2.fa8d34509cfddcea6fdfd2f145193825.plist [Click for support]
        [failed]    com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist [Click for support]
        [failed]    com.macpaw.CleanMyMac2Helper.scheduledScan.plist [Click for support]
        [loaded]    com.macpaw.CleanMyMac2Helper.trashWatcher.plist [Click for support]
        [loaded]    com.splashtop.streamer-for-user.plist [Click for support]
        [running]    net.optimum.iptv.optimumapp.agent.v3.plist [Click for support]
        [loaded]    opt.plist [Click for support]
    User Login Items: ℹ️
        iTunesHelper    Application  (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
        USBOverdriveHelper    Application  (/Library/PreferencePanes/USB Overdrive.prefPane/Contents/Resources/USBOverdriveHelper.app)
        teleportd    Application  (/Library/PreferencePanes/teleport.prefPane/Contents/Resources/teleportd.app)
    Internet Plug-ins: ℹ️
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        OVSHelper: Version: 1.1 [Click for support]
        WidevineMediaOptimizer: Version: 6.0.0.12757 - SDK 10.7 [Click for support]
        Default Browser: Version: 537 - SDK 10.9
    User internet Plug-ins: ℹ️
        RealPlayer Plugin: Version: Unknown
    Safari Extensions: ℹ️
        Searchme [Adware! - Remove]
        Slick Savings [Adware! - Remove]
        Evernote Web Clipper
        Ebay Shopping Assistant [Adware! - Remove]
    3rd Party Preference Panes: ℹ️
        Logitech Control Center  [Click for support]
        teleport  [Click for support]
        USB Overdrive  [Click for support]
    Time Machine: ℹ️
        Time Machine not configured!
    Top Processes by CPU: ℹ️
            11%    WindowServer
             0%    AppleSpell
             0%    Google Chrome
             0%    fontd
             0%    loginwindow
    Top Processes by Memory: ℹ️
        116 MB    Google Chrome
        54 MB    Finder
        51 MB    Google Chrome Helper
        34 MB    WindowServer
        23 MB    mds
    Virtual Memory Information: ℹ️
        23 MB    Free RAM
        618 MB    Active RAM
        601 MB    Inactive RAM
        306 MB    Wired RAM
        1.24 GB    Page-ins
        16 MB    Page-outs
    Diagnostics Information: ℹ️
        Feb 28, 2015, 11:10:52 AM    Self test - passed
        Feb 27, 2015, 07:05:00 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/LCCDaemon_2015-02-27-190500_[r edacted].crash

Maybe you are looking for

  • Logical System Name Not appearing in the Business System

    Hi, Initially we had created a Technical system with Client 700 without a "Logical System Name" in SLD. hence the 'logical system name' in 'business system' was also Blank. Now, since we are implementing the IDOC to file scenario; we need to maintain

  • Cannot select name when creating new DC

    Hi all, It seems I encounter this kind of problems over and over again when dealing with NWDI )-: In this thread Cannot select vendor when creating new DC I couldn't select vendor. I installed a new NWDI system (version is 7.18), did all the post ins

  • Exception Details: org.apache.jasper.JasperException

    I keep getting this error message when trying to run a web application with Sun Studio Creator. It happens when I try to bind a backbean to a selectOne tag using javaserver faces. Any help would be appreciated. Javaserver Face Page. <?xml version="1.

  • SCCM Distribution issue

    Hi All, we have a strange issue here, our primary server is trying to remove some package on a DP which is not existing. also it is creating n number of files on the DP, please find the below log and help me. CContentDefinition::RemoveContentFromPack

  • I took a really good picture with my MBP isight camera through ichat?

    This might seam like a dumb questions. But I need to get the buddy picture photo I took through ichat, using my MBP internal camera. Where can I find the photo on my computer. Tried Recent Photos, iPhoto library, can't find it. Clues?