How to add user with admin priviledges to  multiple machines

Hi all,
I would like to be able to create a local ARD user on each machine on the network, with admin privileges on the machine. Is this possible?
The custom client installer seems to only allow adding standard users. Is there away I can create a Unix command that I could send to each machine, to add an administrator user? Your advice would be greatly appreciated.

Since machines ship with ARD 2 already installed, rather than go through the hassle of creating a Client package and having to edit that, you can simply run a shell script to take care of everything.
We utilze a BASH script to create the ARD user, set the password of the user, hide it in the login window, add the user to the sudoers file (just to make sure the user can sudo), and add the path to kickstart to the PATH variable in the default .profile (/etc/profile) so that you can use kickstart without having to type the entire path.
Script follows:
#!/bin/bash
# add kickstart to path
echo "PATH="\"/bin:/sbin:/usr/bin:/usr/sbin:/System/Library/CoreServices/RemoteManag ement/ARDAgent.app/Contents/Resources:/Developer/Tools"\"" >> /etc/profile
export path
# add ARD user
niutil -create . /users/arduser
niutil -createprop . /users/arduser gid 499
niutil -createprop . /users/arduser uid 499
niutil -createprop . /users/arduser shell /bin/bash
niutil -createprop . /users/arduser home /private/var
niutil -createprop . /users/arduser realname ard
niutil -createprop . /users/arduser shadowpasswd
niutil -appendprop . /groups/admin users arduser
# now set the passwd for the ard user
dscl . -passwd /Users/arduser ardpass
# now add to the sudoers file
echo "arduser ALL=(ALL) ALL" >> /etc/sudoers
# now hide the ARD user from the loginwindow process
mkdir /var/temp/
cp /Library/Preferences/com.apple.loginwindow.plist /var/temp/com.apple.loginwindow.bak
defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add arduser
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/ki ckstart -configure -users arduser -access -on -privs -all
exit 0
Just copy that into a text file, chmod it to 755 and you can then run it on the machine. We will put it at the root of the hard drive, run it, and then remove it. If you want the script to delete itself, just put the following before "exit 0":
rm $0
That will delete the file.
Hope that helps out.
Steve
XServe G5, XServe RAID (1TB), MacBook Pro Mac OS X (10.4.6)

Similar Messages

  • How to add user to one to many groups in Active directory using powershell

    Hi  All
    I am working on a script to create a user and based on user type i would like to add that user into 2 to 3 groups . At the moment i have 3 groups e.g domain users, Developers, tester, 
    $NewUser = Read-Host "New Username"
    $firstname = Read-Host "First Name"
    $Lastname = Read-Host "Last Name"
    $NewName = "$firstname $lastname"
    $Group = "Dev"
    New-ADUser -SamAccountName $NewUser -Name $NewName -GivenName $firstname -Surname $lastname -displayname $Newname -UserPrincipalName $[email protected] -Path "CN=Users,DC=mydomain,DC=local" -AccountPassword (ConvertTo-SecureString -AsPlainText
    "Password" -Force)  -Enabled $true 
    Add-ADGroupMember -Identity $Group  -Members $NewUser
    I am not sure how to give user(sys admin) this option of choosing 1 or more groups while creating new user

    modified this line Add-ADGroupMember
    -Identity ([string]$h[$group])
    -Members
    $NewUser
    and
    now getting the error message Add-ADGroupMember : Cannot find
    an object with identity: '' under: 'DC=mydomain,DC=local

  • Additional User with admin rights

    Hi all,
    i checked the documentation but i could not found a possibility to create an additional user with admin rights to access the Vibe Management Console.
    Does anybody know if this is possible and how to do this?
    Thanks in advance
    Alex

    Hi Willem,
    thank you for the great post. It did the job very well.
    Alex
    >>> <[email protected]> schrieb am 1.8.2013 um 07:46 AM:
    > arlorenz;2275156 Wrote:
    >> Hi all,
    >>
    >> i checked the documentation but i could not found a possibility to
    >> create an additional user with admin rights to access the Vibe
    >> Management Console.
    >> Does anybody know if this is possible and how to do this?
    >>
    >> Thanks in advance
    >>
    >> Alex
    >
    > Hey Alex,
    >
    > Yes, that's possible. It's somewhat a twofold/threefold process, as
    > you have to give an accounts right to administer the zone, and then also
    > have to give that account rights to the personal workspace root (to be
    > able create/delete user accounts) and any workspaces that need to be
    > administered.
    >
    > I always create an vibe-admins group (local group) that gets the rights
    > to the zone and workspace roots. Then add the needed users to that
    > group.
    >
    > Access for the zone can be set within the administration console:
    > https://www.novell.com/documentation...ata/bk4saug.ht
    > ml
    >
    > Then add the needed rights on the workspace roots, Global, personal &
    > team workspaces.
    >
    >
    > !Do note that admin is the only user that is not allowed to get
    > blocked. Other admin users can be filtered out via ACL's.
    >
    >
    > Cheers,
    > Willem

  • How to add user defined tab in the Header level of T-Code O4NM?

    How to add user defined tab in the Header level of  T-Code O4NM?
    I tried with BADI but I cant able to find any BADI for it and also searched for screen exit too..

    Can you check the user exits,
    OIJNOM_N and OIJTKT_N
    Cheers,
    Balaji

  • How to add users from person or group field in a sharepoint list to sharepoint group

    Hi,
    How to add users(single or multiple) from person or group field in a sharepoint list to sharepoint group programmatically?
    Any suggestions would be appreciated.
    Thank you,
    AA.

    Hello,
    Use SPGroup.AddUser() method to add user in group. I have just written sample code in notepad so it is not tested:
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using(SPSite Site = new SPSite(SPContext.Current.Site.Url))
    Using(SPWeb Web = Site.OpenWeb())
    SPList list = web.Lists["ListName"];
    SPQuery query=new SPQuery ();
    query.Query = "<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Test</Value></Eq></Where>";
    SPListItemCollection items = list.GetItems(query);
    if(items.Count > 0)
    foreach(SPListItem item in items)
    //Get USers from person or group column
    SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users");
    SPFieldUserValueCollection userFieldValueCollection = (SPFieldUserValueCollection)userField.GetFieldValue(item["Users"].ToString());
    SPGroup spGroup = spSite.RootWeb.Groups[groupName];//group name
    if (users.Count != 0)
    bool isUserInGroup = false;
    foreach (SPFieldUserValue user in users)
    foreach (SPUser item in spGroup.Users)
    string itemUserName = item.LoginName;
    string UserName = user.User.LoginName;
    if (itemUserName == UserName)
    isUserInGroup = true;
    break;
    if (!isUserInGroup)
    spGroup.AddUser(user.User);
    The above code will query list item and then get users from "Users" column. Now it will check whetehr user is already in group not, if not then add user in group.
    http://rajanijilla.blogspot.sg/2012/09/add-users-to-group-programmatically.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to add users to group which is present in another AD domain?

    Hi,
    Using JNDI how to add user as a member of group which is present in another AD domain?
    For example: In AD forest test.com their are two domain a.test.com and b.test.com. Group is present in a.test.com and I want to add user present in b.test.com as a member of the group.
    Any pointer around this would be great help.

    See the below link to get an idea on group types.
    http://technet.microsoft.com/en-us/library/cc755692(v=ws.10).aspx
    If the group is a universal group, you can just add members similar to local group even if user and group are in different domains. That is by setting the member attribute of the group.

  • How to add docentry with some num.?can you solve below query   Declare @a as Numeric SET @a=14900000; SELECT (@a+($[@MAINTDCHEAD.DocEntry])as 'series no'

    how to add docentry with some num.?
    can you solve below query
    Declare @a as Numeric
    SET @a=14900000;
    SELECT (@a+($[@MAINTDCHEAD.DocEntry])as 'series no'

    Hi,
    Yes possible.
    Try this:
    Declare @a as INT
    SET @a=14900000;
    SELECT (@a+($[ORDR.DocEntry]))
    Thanks & Regards,
    Nagarajan

  • How to add effects with snow?

    How to add effects with snow like Apple does when the introduce a new product?

    Flex Builder Help. Basically pressing F1 in Flex Builder or
    Help -> Help Contents menu option.

  • How to add users to OSM using UserAdmin.xsd

    Hi,
    Can you please explain me how to add users to OSM using UserAdmin.xsd i.e xml import/export tool. I need the steps how to do that..
    Thanks in Advance,
    Menaka

    Hi Razvi444,
    You need to use submit data to web service in Submit button rule,where you can use above web service.
    Refer http://office.microsoft.com/en-in/infopath-help/submit-form-data-to-a-web-service-HA010107048.aspx more details
    Thanks

  • How to add "prefix_" with DRMed Filename?

    Hi Jim,
    I want to know, How to add "prefix_" with file name (epub/pdf) which ACS generate after packaging. Suppose, I package a pdf file and ACS packaged it and store it on media server with the name of "98h3jkd98s79fdh93h.epub". Now I want ACS make this like "PREFIX_98h3jkd98s79fdh93h.epub".
    Is this possible, If yes please suggest me how to do this?
    With Regards,
    Mangal Kumar

    Hi Jim,
    I have passed <filename>, <location> and <src> parameter in our packaging request xml. File is packaging successfully and service is also placing the encrypted file to new location listed in <location> but following error is comming:
    <error xmlns="http://ns.adobe.com/adept" data="E_ADEPT_REQUEST_REPLAY http://myserverurl:8080/packaging/Package"/>
    My Packaging XML:
    $request ='<package xmlns="http://ns.adobe.com/adept" action="add">';
    $request .='<fileName>ISBN.pdf</fileName>';
    $request .='<location>ftp://username:[email protected]/www/pdf/[email protected]/www/pdf/ISBN.pdf</location>';
    $request .='<src>http://example.com/pdf/ISBN.pdf</src>';
    $request .='<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">';
    $request .='<dc:title>BISAC SUBJECT HEADINGS</dc:title>';
    $request .='<dc:creator>Book Industry Study Group, Inc.</dc:creator>';
    $request .='<dc:format>';
    $request .='application/pdf';
    $request .='</dc:format>';
    $request .='<dc:publisher>Book Industry Study Group, Inc.</dc:publisher>';
    $request .='<dc:language>en</dc:language>';
    $request .='</metadata>';
    $request .='<permissions>';
    $request .='<display>';
    $request .='<device/>';
    $request .='</display>';
    $request .='</permissions>';
    $request .='<dataPath>C:\books\ISBN.pdf</dataPath>';
    $request .='<expiration>'. $expiration .'</expiration>';
    $request .="<nonce>" . $nonce . "</nonce>";
    $request .='</package>';
    Please suggest me why the "E_ADEPT_REQUEST_REPLAY" error is comming.
    I am waiting your reply...
    With regards,
    Mangal Varshney

  • How to add date with month after convert number to month?

    How to add date with month after convert number to month?
    Month Date Result
    24 21/11/09 24*(21/11/09)
    I want to add both the column and result should be 21/11/11
    Thanks
    Nihar

    Hmm,
    Because, you are using YYYY for '09'.
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(to_date('10/01/09','DD/MM/RRRR'),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(TO
    10/01/2009
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(to_date('10/01/09','DD/MM/YYYY'),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(TO
    10/01/0009Or with Add_months
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(add_months(to_date('10/01/09','DD/MM/YYYY'),36),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(AD
    10/01/0012
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(add_months(to_date('10/01/09','DD/MM/RRRR'),36),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(AD
    10/01/2012-Arun

  • Set Single user with reviewer access to multiple conference room calendars

    Want to add a single user with reviewer access to multiple conference room calendars, used the below but it given a below error , Single user i am able to add but single user for multiple confernce room calendars hot happening.
    Import-csv C:\smtp1.csv | foreach-object {Add-MailboxFolderPermission -identity $_mail":\Calendar" -User "Mike" -AccessRights "Reviewer"}
    Smtp1.csv
    mail
    [email protected]
    [email protected]
    Error:--
    [PS] C:\>Import-csv "C:\smtp1.csv" | foreach-object {Add-MailboxFolderPermission -identity "$_mail:\Calendar" -User "Mike" -AccessRights "Reviewer"}
    The specified mailbox "\Calendar" doesn't exist.
        + CategoryInfo          : NotSpecified: (0:Int32) [Add-MailboxFolderPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 78C23328,Microsoft.Exchange.Management.StoreTasks.AddMailboxFolderPermission
    The specified mailbox "\Calendar" doesn't exist.
        + CategoryInfo          : NotSpecified: (0:Int32) [Add-MailboxFolderPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 78C23328,Microsoft.Exchange.Management.StoreTasks.AddMailboxFolderPermission
    The specified mailbox "\Calendar" doesn't exist.
        + CategoryInfo          : NotSpecified: (0:Int32) [Add-MailboxFolderPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 78C23328,Microsoft.Exchange.Management.StoreTasks.AddMailboxFolderPermission
    The specified mailbox "\Calendar" doesn't exist.
        + CategoryInfo          : NotSpecified: (0:Int32) [Add-MailboxFolderPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 78C23328,Microsoft.Exchange.Management.StoreTasks.AddMailboxFolderPermission

    i tried with that as well but getting the below
    A positional parameter cannot be found that accepts argument ':\Calendar'.
        + CategoryInfo          : InvalidArgument: (:) [Add-MailboxFolderPermission], ParameterBindingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Add-MailboxFolderPermission
    A positional parameter cannot be found that accepts argument ':\Calendar'.
        + CategoryInfo          : InvalidArgument: (:) [Add-MailboxFolderPermission], ParameterBindingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Add-MailboxFolderPermission
    A positional parameter cannot be found that accepts argument ':\Calendar'.
        + CategoryInfo          : InvalidArgument: (:) [Add-MailboxFolderPermission], ParameterBindingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Add-MailboxFolderPermission
    Cannot process argument transformation on parameter 'Identity'. Cannot convert value "" to type "Microsoft.Exchange.Configuration.Tasks.MailboxFolderIdParameter". Error: "Valu
    e cannot be null.
    Parameter name: mailboxFolderId"
        + CategoryInfo          : InvalidData: (:) [Add-MailboxFolderPermission], ParameterBindin...mationException
        + FullyQualifiedErrorId : ParameterArgumentTransformationError,Add-MailboxFolderPermission

  • How to add users in DS 6.3

    hi
    i like to know how we can add users to DS 6.3 instances using command line utilities

    Please read the admin manuals. You can write your own custom application in a variety of languages with an LDAPv3 compatible module. Or you could assemble the entry by hand and use ldapmodify or ldapadd to add to the directory server.

  • How to add users to the container

    Hi,
    My JSF application has security enabled. The users and their roles are defined in a .xml file located in my container (standard). Is there any way I can dynamically add users to this .xml file? Right now I am able to add them manually, but it would be nice if they were added as soon as they joined my service.
    Best Regards
    Thomas

    There is always some way ...
    Most app servers will support custom login modules via the JAAS "LoginModule" interface. Glassfish has built-in modules for file, LDAP, certificate store and solaris authentication, but you can plug-in others. There is an article and sample for how to do this for a database at <http://dev2dev.bea.com/pub/a/2003/04/Pijpops.html> (targeted at BEA, but Glassfish, etc should be the same).
    Using a database or LDAP directory to store your users means there are plenty of standard tools for manipulating and managing the data, and any updates will be available immediately to your app server.
    If you want to stick to with the file module, you can obviously update the file directly, but then the app-server or domain might need a restart before your new users get picked up, and also if the file stores the passwords hashed, you have to know the particular hashing algorithm used. Otherwise, each app server usually exposes the admin functionality (like adding users) through some web-service or EJB interface -- but this tends to be app-server specific. Your app server docs should give more details.
    What app server and version are you using? Glassfish? JBoss?

  • How to add User Permissions to form created in InfoPath 2010 created for SharePoint document Library

    Hi,
    I created a form in InfoPath 2010 with three views (one for user input, the other two views to be used by supervisors) and published this to a SharePoint 2010 document library. Now the way this form is supposed to work is that when a User goes to the document
    library and adds a document, it is supposed to open the Form with the User's input view. When the User submits the document, only him/her should be able to open and possibly edit the the form. When the Immediate Supervisor opens the form, it should open in
    the Supervisors view and allow them to fill in only their section and not be able to edit or alter the user's data. When the Immediate Supervisor saves the document, the Over-all Supervisor should be able to open it in their view and not be able to edit or
    alter the sections filled out by the User and Immediate Supervisor.
    How would i go about completing this? I have the views created but now have the problem of associating these views with their respective users or groups.

    Hello,
    You need to first create user group in sharepoint site then add user in group according to their role. Later you need to call usergroup.asmx web service to get current logged-In user group name so you can switch view and also apply rule for editing or disabling
    controls in form.
    Follow this link to get group name:
    http://social.technet.microsoft.com/wiki/contents/articles/13271.sharepoint-2010-extracting-user-group-of-current-login-user-in-infopath-2010.aspx
    http://social.msdn.microsoft.com/Forums/en-US/018f5184-5c83-4a53-b66b-8c376fc800fc/how-to-get-current-users-sharepoint-group-name-sharepoint-2010-infopath-2010
    To apply rule on control:
    http://office.microsoft.com/en-in/infopath-help/add-rules-for-performing-other-actions-HA101783373.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • How to bind the bean and textfield which is written in html tages?

    Hi, I am doing the add row functinality using javascript. i am able to add the rows .but how can i bind the bean variables to the html code written in jsf applivation for example newQuotCell1[0].innerHTML='<input type=text class=TextField name="name'

  • The system could not create the msg bc of an RFC connection "NONE" error

    All- I am getting this error message when I try to save and send a Service Desk message from the BSP. I have seen a few other threads on this already and have tried the recommendations. Here is what I have tried: 1. Maintained table BCOS_CUST accordi

  • Mac book air osx memory 4gb

    it supports new ox maverick, keynote, pages and numbers??

  • Get current logged info

    I've created in my application a form that everyone authorized can use to post information on my web site. But i want to record in the DB the reference of the user logged who has posted information. What is the command to do that ? In addition to tha

  • Problems with loading the game Resort World on Hyves

    Hi , i like to have support in Dutch pls.Its about the game Resort World on Hyves Game Community.With Google Chrome updated , the game will not load . I dont like using the browser Internet Explorer , so i had to fix out , how to play the game on Goo