Necessary variables in new group creation

I am working on a script to create a new user and matching group using the niutil command. When I create my group in the script, I assign a gid and name. Thus, in netinfo manager, the "name" and "gid" properties are listed for the group. However, when I create the same user/group through "accounts" in the System Preferences, both "passwd" and "generateduid" properties are also generated and listed in the NetInfo Manager.
1. What properties are necessary for a group in OSX 10.4 (Tiger) to function properly?
2. If the "passwd" and "generateduid" properties are necessary for the group to function properly, then how do I create these properties via a script or the command line?
Thanks!
Mac OS X (10.4.10)

man, when am i going to stop feeling like a dope with some of this stuff?
fist image is showing what i am looking at when i can't find a way to add a group without using the pulldown.
second images is showing a "sub-group" that i think was created by selecting all the contacts in a group and dragging them to another group. this one does not seem to delete.
jon

Similar Messages

  • Use String Variable in New Object Creation

    Thanks to those who review and respond. I am new to Java, so please be patient with my terminoloy mistakes and fumblings. I am reading in a file and I want to create a new object based on specific field (car for example). As you will notice I grab field 8 here label sIID.
    String sIID = dts.group(8);
    BTW this regex grouping works fine. The problem is seen when I try to use the sIID variable in my new object creation process.
    DateParse sIID = new DateParse();
    My IDE is reporting "Variable sIID is already defined in the scope"
    Is this possible? The assumption is that the sIID will have different value during the processing of the file. For example, car could mean truck, sedan, etc with operators like color, number of doors, mileage, top speed, etc.

    Thanks for the reply. I have include similar and much shorter code for the sake of brevity.
    My problems are centered around the x variable/object below. Ideally this would translate to three objects PersonA, PersonB, etc that I could reference later in the code as PersonA.newname if I wanted to. Hopefully this makes sense.
    public class TestingObjects {
      public static void main(String[] argv) {
           String [] names;
           names = new String[3];
           names[0] = "PersonA";
           names[1] = "PersonB";
           names[2] = "PersonC";
           for (String x:names) {
             PN x = new PN();  // <- Problem
             x.name = x;
             x.SayName();
            System.out.println(x.newname);
    public class PN {
           String name;
           String newname;
      public String SayName() {
           newname = "Name = " + name;
           System.out.println(name);
          return newname;
    }

  • New group creation in ML

    is it necessary to run a pulldown command to create a NEW GROUP in the ML version of Contacts?
    in the past i clicked on the red doohicky in the middle, saw groups and was able to check on the plus mark as i recall.
    am i missing something here?
    also, i seem to have dragged a GROUP into a GROUP (when i tried to drag just the contacts in this group into the other group...) and i see this group with two people icons (one smaller than the other) /inside/ the other group.
    i have tried RMB and dragging and Delete but i cannot get rid of it. any ideas?
    TIA

    man, when am i going to stop feeling like a dope with some of this stuff?
    fist image is showing what i am looking at when i can't find a way to add a group without using the pulldown.
    second images is showing a "sub-group" that i think was created by selecting all the contacts in a group and dragging them to another group. this one does not seem to delete.
    jon

  • OS X server repeats GID with new group creation

    Hello--
    I'm running ML 10.8.5/OS X Server 2.2.2 on a 2010 Mac Mini.  Today I went to create two new local network groups (call them group1 and group2) using Server and I noticed the GID numbering started over at 50001, thus duplicating Workgroup and the second group I've been using for quite some time.  When I went to delete group2 in Workgroup Manager, it complained I did have permission to perform the action, but appears to have completed it any way.  I then changed the GID for group1 (using Workgroup Manager) but that left a messed up ACE for the group folder.  So, I deleted most of entries in the ACL and added back an entry for group1 (confirmed in Workgroup Manager as GID 50005) in the ACL, however, it still showed as group of Workgroup using "ls -le" but group1 as the name when viewing the folder through Finder cmd-I. 
    There seems to be enough weirdness that I'm going to delete the group and shared folder, run a file permission check on the volume (external drive), and then recreate the group, confirm the GID is unique, and then create the share.
    My questions are:
    1) Has anyone experienced this behavior?
    2) Is it indicative of other bigger issues?
    Thank you.
    Tim

    Thanks, Linc--
    Unfortunately, things went downhill fast.  When I started to poke around the boot RAID, I found it had come apart again (even after replacing a failing drive about a month ago).  I guess I had used up my 9 lives, because the rebuild failed and I have a paperweight now. 
    I'm heading out on vacation, but will be spending my Thanksgiving Day rebuilding the server and getting as much data from the postgresql databases or back ups as I can.  All the regular user data is on another volume so that is safe, although mapping uids will probably be a pain.  I think my OD backup may be fresh enough if I can get it out of Time Machine. 
    I was thinking about Profile Manager before I saw your post, and was thinking I should make that the central point of my system administration for users/groups/devices.  I need to search for a primer.  I really wasn't using Workgroup Manager much, mostly would bring it up because Server doesn't really provide much useful info.
    I may even go ahead and leap to Mavericks/Server 3 since I'm not sure I have anything to lose at this juncture.
    Sigh...I'm really losing my patience with OS X/Server.  Although I've had this particular set up running for a little over a years, it has not been without issues.  This may be the last round before I abandoned it altogether.
    Cheers, Tim

  • Portal Groups Creation

    Hi
    We are preparing to import a Portal into our UAT environment for testing. As part of the creation of the Portal we have created a number of Portal Groups which we intend migrating. As part of this we will also like to create a ldif file to assign the various users to the relevant Portal Groups.
    Therefore I have 2 questions
    1) Is is possible to export the Portal as well as the Portal Groups ?
    2) Is there a way to assign users to Portal Groups using, for example, LDIF. We will have 10,000 users to assign so need to find a way of doing this automatically.
    Any help will be much appreciated?
    Kevin

    #!/bin/sh
    # This script is used to export users/groups and portal groups from a
    # source OID to a target OID. The import into the target OID is done by
    # the import_oid.sh script.
    # The script:
    # 1) unsets NLS_LANG, sets ORACLE_HOME
    # 2) ldapsearch (output to ldif file) all users
    # 3) ldapsearch (output to ldif file) all portal groups
    # 4) Remove 'authPassword' fields from the ldif for users
    # 5) Change the Portal ID in the portal groups ldif file
    echo "************************ BEGIN ************************************"
    echo - This script will export users and groups from OID to ldif files.
    echo - This script will modify the portal ID, remove authPassword fields.
    echo Use import_oid.sh to import users and groups to target OID.
    echo "************************ BEGIN ************************************"
    #variables
    oh=/oracle/10.2/infra10
    source_hostname=""
    port=""
    target_dir="/oracle/10.2/oid_mig/"
    log_file_users=export_users.log
    log_file_groups=export_groups.log
    old_portal_id=""
    new_portal_id=""
    orcladmin=""
    orcl_pwd=""
    group=""
    echo "Please provide the source LDAP hostname: "
    read source_hostname
    if [ "$source_hostname" = "MyOIDServer" ]
    then
         port=389
         orcl_pwd="OrclAdminPassword"
         base_dn="dc=MyCompany,dc=com"
    fi
    echo "Please provide the group you want to export (*=all groups, group1*, group2*,...)"
    read group
    #echo "Please provide the LDAP port: "
    #read port
    #echo "Please provide the orcladmin password: "
    #read orcl_pwd
    # You can find the portal ID through OID Admin console. Go to
    # cn=groups,dc=oracle,dc=com you will find the ID there.
    echo "Please provide the old Portal ID: "
    read old_portal_id
    echo "Please provide the new Portal ID: "
    read new_portal_id
    ORACLE_HOME=/oracle/10.2/infra10
    export ORACLE_HOME
    cd $ORACLE_HOME/bin
    echo ORACLE_HOME = $ORACLE_HOME
    PATH=$ORACLE_HOME/bin:$PATH
    export PATH
    #NLS_LANG=american_america.UTF8
    #export NLS_LANG
    unset NLS_LANG
    #exporting users
    echo ----- exporting users "cn=users,dc=MyCompany,dc=com" -------
    ./ldapsearch -h $source_hostname -p $port -D "cn=orcladmin" -w $orcl_pwd -L -s one -b "cn=users,"$base_dn "(objectclass=orcluserv2)" "*" > /oracle/10.2/oid_mig/users.ldif
    #exporting groups
    echo ----- exporting groups "cn=groups,dc=MyCompany,dc=com" -------
    ./ldapsearch -h $source_hostname -p $port -D "cn=orcladmin" -w $orcl_pwd -L -s one -b "cn=groups,"$base_dn "(objectclass=*)" "*" > /oracle/10.2/oid_mig/groups.ldif
    #exporting groups portal
    echo ----- exporting portal groups "cn=portal."$old_portal_id",cn=groups,dc=MyCompany,dc=com" -------
    ./ldapsearch -h $source_hostname -p $port -X -D "cn=orcladmin" -w $orcl_pwd -s sub -b "cn=portal."$old_portal_id",cn=groups,"$base_dn "cn="$group > /oracle/10.2/oid_mig/groups_portal.xml
    #removing authpassword fields from users
    echo ----- removing authpassword fields from users -----
    cat /oracle/10.2/oid_mig/users.ldif | grep -v authpassword > /oracle/10.2/oid_mig/auth_removed_users.ldif
    # changing the PORTAL ID from $old_portal_id TO $new_portal_id
    echo ----- changing the portal ID -----
    cat /oracle/10.2/oid_mig/groups_portal.xml | sed -e "s/$old_portal_id/$new_portal_id/" > /oracle/10.2/oid_mig/groups_mod.xml
    echo "***************************************** END *********************************************"
    echo Users have been exported to /oracle/10.2/oid_mig/users.ldif
    echo Groups have been exported to /oracle/10.2/oid_mig/groups.ldif
    echo Portal Groups have been exported to /oracle/10.2/oid_mig/groups_portal.ldif
    echo Users have authPassword removed in /oracle/10.2/oid_mig/auth_removed_users.ldif
    echo Portal groups have their ID changed by this script and new groups are in /oracle/10.2/oid_mig/groups_mod.ldif
    echo "***************************************** END *********************************************"

  • Creating a new group in Mail

    Is there an easy way to create a new group in mail (or I guess it's really the Address book) from an email I already sent  to a group of people. I don't want to copy each name one by one if it's not necessary.  Thanks, Jack

    Each email address in the group is put in the To: field automatically when you put them all in the BCC field when composing the email. Nobody sees anything except their own email address.
    I think you are mistaken there, Golden. If the To: field is blank the recipients in the Bcc field will see the To: as undisclosed-recipients - if they get anything at all; some ISPs will reject a message with a blank To:. I would agree with putting the target recipients in the Bcc, but when doing this I usually put my own address in the To: field.
    AK

  • Supplier Group Creation Error  in SRM 7.0

    Hello,
      We are on SRM 7.0, SP 9. When creating a root supplier group using tcode PPOCV_BBP in SRM, we are  getting a "DATA_LENGTH_0", "CX_SY_RANGE_OUT_OF_BOUNDS" error in the program "SAPLRHOMDETAIL_PP01".
    This error happens during the new supplier group creation process, when we change the default name of the vendor group with a custom name and try to save the new supplier group.
    Please let me know if any one has come across this issue.
    Thanks,
    Raj

    HI Raj,
    you have to implement the note 1572049  to resolve this issue.
    Regards
    Ajay
    Edited by: ajay ch on Aug 15, 2011 10:57 AM

  • Automatic Profile Set / Target Group Creation in SAP CRM

    Hi,
    Need some help on the listed process.
    Is there any procedure to create Profile Ser/Target group automatically based on certain criteria? We want to reduce the manual work of Profile/Target group creation for the users.
    We are currently using SAP CRM 5.0 and looking at options of creating Target Groups automatically based on infoset. The criteria used to model is below mentioned.
    - New Customers  & Head Office (They are the customer specific Z-fields in BP Master Data)
    - Relationship Data: Has contact person Relationship. This is based on the assignment of Contact person to the BP (i.e. Day when the Relationship assignment done to the respective BP Master Data --> under Relationship tab page.
    We are not using Attribute Set (that we assign to Marketing Attribute tab page of BP Master), for your information.
    Appreciate, if you could let us know whethe this is possible by Standard feature/ any work around on this.
    Kindly do the needful.
    Thanks,
    Rahul

    Hello Rahul,
    it is possible to create a target group from an external list as far as i am aware. Maybe have a look at
    http://help.sap.com/saphelp_crm50/helpdata/en/57/d7de42777c2978e10000000a155106/frameset.htm
    Regards
    Mark

  • How can I copy the channels to a new group, so they would have the same length (in time)?

    Hi,
    I have several groups with channels of different lengths (time t). I want to make a new group containing the required channels. I did this in Diadem 2012 test version with Call Data.Root and it works. Now I am trying to do this in Diadem 10, but I've read that I need Data API which is  not available for Diadem 10. So, could someone just give a sample code? If it's necessary I can post my sample code written in Diadem 2012.
    Thanks in advance!

    Hey,
    is THIS maybe what you are looking for?
    Regards, Roman

  • Error -14120 when creating new group

    I have a 10.5 server running in my office. It has been running without a problem for many months now. Recently the machine was rebooted ( due to power outage ) and I had to reset the localadmin passsword as I could not remember it. Now whenever I try to create a new group I get an error -14120. Same error if I try to create a new user. What gives? Any help appreciated.

    Group folder creation is not automatic. You have to open a terminal session on the server, and run the command:
    sudo CreateGroupFolder
    If that doesn't create the folder, check to make sure it's properly set in Workgroup Manager (including having an owner defined), fix any problems, and try it again.

  • Adding new groups

    I was unable to find a viable solution to this without having to use OS X Server tools. I would like to create a user group so that I can make sure that certain users on my system will have access to the same folders, but restrict access to those folders for anyone else who is not a member of that group. However, I am unable to find an easy way to create the user group. Any answers?

    Courtney,
    You could use the ServerAdmin Utility as Biovisier has suggested, but it is certainly not necessary. Netinfo Manager is the only thing you need.
    For many, the easiest way to create a new, custom group is to duplicate and existing one, then modify the new group's properties. The "admin" group is usually the best choice for a template. When making any changes to the Netinfo Database, it is prudent to make a backup of the original first!!
    Select the admin group, then click the "Duplicate" button at the top of the window. In the "properties" pane at the bottom of the window, the "name" property for the new group should be highlighted for editing. Just type your desired name.
    Each group needs to have a unique "GID." GIDs 0-100 are reserved for "system groups," and OS X uses 501 and up for users. So, your best bet is to follow (pretty much) standard practice and use 201- 300 for custom-created groups.
    For a custom-created group, the "realname," "generated_uid" and "smb_uid" properties are not needed. Just select these properties and click the "Delete" button. You should now have only the "users," "name," "password," and "gid" properties. The only thing left to do is to modify the "users" property.
    Click the "disclosure triangle" next to "users" to reveal the complete list. First, remove any unwanted users by selecting them, then clicking the "Delete" button. Next, add users by selecting the "users" property and choosing Directory>Insert Value. A new user will be added to the list with the username value highlighted. Type the short name for an existing user to add that user to the list.
    The "password" property should remain in place, and should have a value of "*" (asterisk). This means that there is, in effect, no password for the group. Leave this property and value alone.
    When you have finished setting up your group, choose Domain>Save changes and confirm to "update this copy," if asked (Netinfo has become pretty smart about confirming and saving changes as they are made, so most or all of this shouldn't be necessary).
    Scott

  • Channels created in New groups

    Hi There,
    I am having some issues during the creation of Channels. I  have a module which creates few channels in the data portal. All these channels are to be created in the First group alone(there would be only one group in the portal). I dont no issues as long as they ran in my system but for testing when I run the same scripts in another system  few channels gets created in a new group though I have assigned proper inputs to ChnAlloc command giving the target group index as 1. I tried looking into the settings also transported the DDD file of my system to the testing system, but dint help me.
    Can you please let me know why is this happening, why I am not able to get those channels in the existing group and is getting created in a new group?
    Waiting for your response at the earliest.
    Thanks,
    Priya

    Hi Priya,
    Now I understand.  In DIAdem 9.1 we allowed implicit creation of new Groups when the Group name passed to ChnAlloc() included the construction "GroupName/ChannelName".  This lead to confusion of the sort you described, and this no longer happens in DIAdem 10.  You can get around this by using any character other than "/" (for instance "Data Time\Sec"  or "Data Time [Sec]").  I'd would also encourage you to put the unit information in the unit property of the channel using ChnDim() instead of in the channel name.
    The "/" character continues to be a disallowed character in both Group names and Channel names in DIAdem 10, so you need to think of some other way to name your Groups and Channels.
    Ask if you still have trouble with this,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • In contacts section for the groups section i want to delete old groups i have on the phone and then add a new group for easy access for work contacts for calling. rather then searching each individual contact when needed. is this possible?

    i currently have about 6 different groups listed on the iphone in my contact list section and i want to delete the old ones and create a new group for work puposes!
    i dont want any apps all i want is something similar to my favourites list but in a group so i can just go into that work group and scroll to the person i need to call and this way seperating my personal and work contacts.
    because i do alot of calls from my car i dont want to have to search my contact lists to find the right person i just want them all in a simple folder.
    is this possible because if i already have groups on my iphone i should be able to delete the old ones and create a new one?

    Deleting groups on the phone and creating new ones is not supported with iOS4, you'll have to do that on your computer and sync again.
    Let's see if they changed that in iOS5 when it is released.

  • I have created a group in my address book, but when I try to use it to send out a group email, only a comma shows up. How do I send out an email using my new group contact list?

    I have created a group in my address book, but when I try to use it to send mail, only a comma shows up. How can I send mail using my new group? I have an IMac with OSLion.

    I will agree with you on this one. Version 31 and all the fixes so far are a mess. Since I have been here answering questions for a little more than a year now I have learned to wait to upgrade until all the dust settles. I see no end to the dust storm version 31 has caused. I am still on version 24.6 and plan on staying there for the duration. At least until the developers comes to their senses and put out a working product.

  • In address book how do I move all cards from my 'last import' smart group into a new group?

    In Address Book, how do I move all cards from my 'last import' smart group into a new group that I will create? So far I am not being allowed to Edit Smart Group!
    Thank you x

    Simon
    You’re going to have a very big problem and very soon. These missing pics are the beginning of trouble.
    the total size of all my folders on my 60gb internal drive is 46.5 gb, yet only 1.9 gb is available,
    OS X needs about 10 gigs of free space on the hard drive for normal OS operations such as virtual memory and temporary files. Without this space the machine slows down as the OS hunts for free space, files become fragmented and applications begin to crash. The risk of data corruption increases exponentially.
    You must, as a matter of urgency, make space on the drive. I cannot stress this enough.
    You may be able to recover the pics from your camera card using an app such as MediaRecover
    Regards
    TD

Maybe you are looking for