User administration per command line or skript ?

hi everybody,
does anyone know if it is possible to add users, roles, groups per command
line or skript instead of the Admin-Console ?
Thanks in advance
harald

I don't know why you want this but beware with this kind of things. A long, long time ago I decided it would be cool to write a small program to lock my hard drive so nobody would change anything. It was a success. The problem was that the application didn't unlock the drive and to compile the new version I had to format the drive and reinstall everything (including the 30 MS Office diskettes and the rest of the stuff).
You must remember that the administrator is also a user... This change would also (probably) prevent the system from creating swap files and Virtual Memory, logs wouldn't work and there are certainly a lot of other stuff that needs to write to the disk and that wouldn't work either.

Similar Messages

  • Tool for Creating Tracks per command line available?

    Hi all,
    for my master thesis I need to make up a development concept with the JDI.
    What I'm wondering is, is there any ability (maybe hidden option ) to create tracks per command line interface and connect them per command line?
    Another question which came to mind, I would like to control the DTR via the DTR command line tool, is there any option to do this, just without installing the Developer Studio IDE, as I only want to remote control the DTR via command line and don't need developer equipment on the server?
    Thanks for your help!

    Hi Matthias,
    tracks are stored in the Java database by CMS in its own format and when a buildspace is created on CBS that information is also stored in the Java databse in CBS' own format. Accessing the database directly is not a good idea as you would need additional information that is neither officially published nor supported and that may change.
    Regarding DTR client & IDE: Well, DTR doesn't know about tracks at all, it just stores the sources for track content. The "track" knowledge is part of CMS.
    The command line tool is only distributed with the IDE, but if you just copy the required libraries to the server (you had to edit the batchfile anyway, didn't you?) you do not need the full IDE installation.
    Regards,
    Marc

  • Administration Port / command line /  console gui question

    In the Admin_ref.pdf doc it says "After enabling the administration port, all Administration Console traffic must connect via the administration port". Does this mean that you can no longer use the web gui console to manage the servers?
    I would like the option to script deployments (deploy ears, stop start servers etc.) via command line to reduce the possibility of user error during routine deployments.
    I do config mgmt. and am not a developer so I may be getting hung up on the language here.
    Thanks,
    gj

    Hi
    For first question the answer is no. With the administration port, you enable the SSL between the admin server and Node manager-managed Servers. You can still use the web console.
    For teh second question, you can use ANT or can use the WLS Scripting ..you can get more details in dev2dev.bea.com
    Jin

  • How to assign the default service package to the user in the command line ?

    when i create use use the following command ,which service package is assigned to the user ,or in where can i set the default service package ,thanks for you!
    /opt/SUNWcomm/bin/commadmin user create -D admin -F John -l jdoe -L Doe -n jnpc.com.cn -p 80 -w admin123 -W demo -X v120e.jnpc.com.cn -S mail,cal -E [email protected] -H v120e.jnpc.com.cn -k legacy

    When I create a user via command-line, I get no service package. I don't see any way to assign such on creation via command-line.
    Some of what might be in a service package can be set as default falues, through configutil.
    quota is this kind of thing.

  • Backup user account with command line

    I am trying to set up a command line script (bash alias, actually) that will let me backup my entire user account to an externa firewire. Right now I am using
    rsync -a -u --delete --stats /Users/me /Volumes/FW_Backup/me/
    but I get about 500 meg less data at the destination as I have at the source and I get a command line response saying that some files could not be copies for permissions reasons.
    Would it fix things to run this command under Sudo or is there a better way to be sure I have a complete clone of my user account syncronized whenever the command is run (I am aware that there are multiple GUI resolutions to this but prefer to use the free native tools so I can roll it out to multiple Macs).

    I did try that but if I recall properly you wind up with other permissions problems - in the case of root not having permissions to the user. So I simply excluded the troublesome paths:
    code
    rsync -a -u --exclude Library/Caches/ --exclude Library/Preferences/ --delete --stats /Users/Richard /Volumes/rich_backup/
    And that has worked, but now I have a new problem: if the network share is not mounted, rsync will simply create the directory /volumes/rich_backup on the hard disk and rsync to it! This is a obviously a problem should I or other users forget to mount the network share intended for backup. So I need to figure out how to get the command to error out if the network share is not present. I tried to begin the script with
    code
    ls /volumes/rich_backup &&
    in order to get it to error out if the share was not present and it worked on my Tiger system, but on a customer's Panther system the script does not error out! Can anyone help me with some code that will intentially break my backup script if the destination volume is nor present?
    Dual 2.7 PowerMac Mac OS X (10.4.2)

  • Refresh EUL in Oracle Discoverer Administrator using command line

    Hi there! I wonder if there is a way of refreshing the EUL business folders of Discoverer Administrator using a command line, so that it could be done through a batch file process.
    Many thanks in advance

    What do you mean by refreshing the EUL business folders? The definitions of the EUL are updated whenever a workbook/worksheet/business area/hierarchy/ any other object inside the EUL is changed/added/deleted. Also, the contents of your EUL are updated whenever summaries are refreshed (either manually or on a schedule), or when scheduled workbooks run and their contents stored inside the EUL.
    Thanks
    Abhinav Agarwal
    Oracle Business Intelligence Product Management

  • Getting user name (at command line argument)

    At the beginning of my program I need to prompt for the user name and then follow this with a welcoming message. Please help as I have not yet learnt this in my studies!

    When prgramming java, and surely when learning it, alway use the documentation. You ken find it @ http://java.sun.com/j2se/1.3/docs.html To do input and output with the console you need the java.lang.System (Doc are @ http://java.sun.com/j2se/1.3/docs/api/java/lang/System.html ). The system object has an open inputstream called in wich reads the standard input, normally what users type on the console. So System.in.read() will get you a char that is typed on the console.
    In your case it might be easier to create a BufferedReader.
    BufferedReader input = new BufferedReader(System.in); will create a buffered reader that reads from the console. The advantage is that you can now use input.readLine() to read a complete line (until return key is pressed).
    Succes
    AVee

  • Chnaging user name using command line

    We have 2 DB users (db1 and db2).
    in configuration tab, Services/JDBC/Connection Pools/bvdb on colsole, the user and password is listed.
    Usually we change DB user from one to other from console. I want to write script for it.
    I wanted to know the cammand with parameters to change the user and password.

    When prgramming java, and surely when learning it, alway use the documentation. You ken find it @ http://java.sun.com/j2se/1.3/docs.html To do input and output with the console you need the java.lang.System (Doc are @ http://java.sun.com/j2se/1.3/docs/api/java/lang/System.html ). The system object has an open inputstream called in wich reads the standard input, normally what users type on the console. So System.in.read() will get you a char that is typed on the console.
    In your case it might be easier to create a BufferedReader.
    BufferedReader input = new BufferedReader(System.in); will create a buffered reader that reads from the console. The advantage is that you can now use input.readLine() to read a complete line (until return key is pressed).
    Succes
    AVee

  • I have NDS 4.16, and I have iMS 5.1 running on Sun, Solaris 8. I want to know how can I add users using the command line instead of the console. My problem is how to set the password to this user?

     

    You can use ldapmodify found in <ServerRoot>/shared/bin
    for example
    ./ldapmodify -h ldaphost -D "cn=directory manager" -w password -f <name of LDIF file>
    Here's an example LDIF file
    dn: uid=cms,ou=people,o=balius.com,o=Universe
    changetype: add
    objectClass: person
    objectClass: organizationalPerson
    objectClass: inetOrgPerson
    objectClass: inetUser
    objectClass: ipUser
    objectClass: inetMailUser
    objectClass: inetLocalMailRecipient
    objectClass: nsManagedPerson
    objectClass: userPresenceProfile
    cn: Chad M. Stewart
    sn: Stewart
    initials: CMS
    givenName: Chad
    pabURI: ldap://host:389/ou=cms,ou=people,o=balius.com,o=Universe,o=pab
    mail: [email protected]
    mailDeliveryOption: mailbox
    mailHost: my.mailhost.com
    uid: cms
    dataSource: Chad by hand
    userPassword: users-password-here
    inetUserStatus: active
    mailUserStatus: active
    mailQuota: -1
    on a subsequent search you'd see something like
    userpassword: {SHA}S3e+L/K6

  • ACS v5.3 (user command line interface)

    Hello,
    We have lost the user/pass of command line interface of our ACS, but we can access by Web Interface with all the privileges.
    We are trying create one user from web interface for the command line interface, but I don´t find the manner of do it.
    I create one user in <system Administration < Accounts  with all roles, but this user doesn´t work in command line interface.
    Is possible to create one user for command line interface from web interface?
    Thanks

    Complete these steps to reset the CLI administrator account.
      1. Insert the ACS 5.x Recovery DVD into the DVD drive  of ACS.
       2. Reboot the ACS 5.x.
       The console displays:
       “Welcome to Cisco Secure ACS 5.1 Recovery - CSACS 1121”
       3. To boot from hard disk press
                    Available boot options:
    [1] Cisco Secure ACS 5.1 Installation (Keyboard/Monitor)
    [2] Cisco Secure ACS 5.1 Installation (Serial Console)
    [3] Reset Administrator Password (Keyboard/Monitor)
    [4] Reset Administrator Password (Serial Console)
    Boot from hard disk
    Please enter boot option and press .
    Boot:
      4. To reset the administrator password, at the system  prompt, enter 3 if you are using a keyboard and video 
           Monitor, or enter 4 if you are using a serial console  port.
      5. The console displays the name of all the  administrators configured on the ACS 5.x
    Admin username:
    [1]:david
    [2]:john 
    Enter number of admin for password recovery:
    6. Enter the number against the adminstrator username  of which you want to reset the password. For the user
        "david", enter 1 at the prompt.
    7. Enter the new password for the administrator account  and verify it. Enter Y to save the new password.
         Password:
         Verify password:
         Save change&reeboot? [Y/N]:
    8. Now, remove the ACS 5.x Recovery DVD and reboot the  ACS.

  • Administration of Queues (GUI / command line)

    hi *,
    since i am working with JMQ now for a few weeks one thing bothers me most about the software....
    i could not find out since now if there is any administration GUI / command line interface that enables me to do very typical things in one tool:
    create / delete queues
    create / delete messages
    look into messages & properties
    etc...
    is there any or am i missing the point? how do several customers deal with this issue?
    regards chris

    First, thanks to you both for spending your time writing a response.
    We really wouldn't need this in production, this is more for testing each step of our translations.
    We actually do most of our IQmanager management through stcmsctrlutil.exe, though I do know we were looking at the management console through JCAPS as maybe an alternate solution for working with OpenMQ (it turned out to not be the case, and didn't research it any further). We weren't using the JMS API for OpenMQ to test any of the JMS functionalities.
    We haven't really thought of dumping or teeing the messages to put them back in the system (though we have had to do that before in our old SRE system in production, it was a mess). What I'm doing through scripts is pulling a message off at each JMS destination (after every translation) and storing it in a folder. I do the same for our old system (we're migrating from SRE --> JCAPS 6) and comparing the XML to make sure the translations are identical. We're a pretty small team, so we don't use any products like LISA or any testing suites, just a bunch of homegrown tools that do exactly what we need.
    It sounds like the private API will give us the needed functionality.
    When we're not on such a tight deadline for regression testing, I'll sit down and re-do all of the regression tools to work with OpenMQ, even if I have to change everything to queues, develop it using more JCAPS components (for pulling messages off and dumping them to the file system), or even use the unsupported API. Until then, we'll just do our unit testing on IQManager and our load testing on OpenMQ.
    big thanks from my team at Yum,
    --Adam                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to give filename at Command Line

    Hi,
    what do I do to make sure that when my user gives a command line argument like "-Dn" and then a filename , the system writes to that file.
    I have everything working properly and can achieve the same thing using a properties file, but do not know what to do in this case. Here is a snippet from my code:
    if(args.equalsIgnoreCase("-Dn")) {
         obj.setLogFileName(); //what to do here???
    The setLogFileName method resides in a class which writes to the disk and is working properly
    Thankx in advance...

    If you are usgin the command line syntax you are describing, like "java MyClass [arguments]" you can just go on traversing the argument list:
    String fileName = args[0];
    However, you can also do this as follows:
    java -Dlogfile=<the path> MyClass [arguments]
    In that case the <the path> string is available as a system property named "logfile", and can be retrieved as this:
    String fileName = System.getProperty( "logfile" );

  • How to view a parent-child relationship on the Command line (cmd)

    Hi
    I'm a newbie. I'm trying to insert some values using a small application into an oracle db table and I got this message:
    "java.sql.SQLException: ORA-02291: integrity constraint (DATA.SYS_C002764) violated - parent key"
    From my point of view(thinking) I'm trying to insert data into a child table which references a parent table.
    My Q is how can I see which table(s) are involve here per command line? What type of querry if any can I give onto the cmd line to see the relationships of tables which references each other? I'll really much appreciate your respond. Thanks in advance!

    Hi,
    Go to application navigator, model node by clicking on the entity, in the structure panel you'll see the list of defined constraints.
    But you better give relevant names to your database constraints. I create them at the database level, example
    for a primary key of table emp: DEPT_PK, foreign key in child table dept: DEPT_EMP_FK
    When you create the entity in jdev, the ide will use those names and it will be easier to identify them.
    Regards
    Frederic

  • How to enable Rosetta at the system level using the command line?

    I need to find a way to enable Rosetta at the system level (e.g. all users) using the command line. When Rosetta is enabled, the following entry is created in ~/Library/Preferences/com.apple.LaunchServices (run defaults read com.apple.LaunchServices)
    LSPrefsFatApplications = {
    "com.apple.Safari" = (
    <00000000 009a0003 00010000 c323458f 0000482b 00000000 00000023 0000727b 0000c2b0 8b4e0000 00000920 fffe0000 00000000 0000ffff ffff0001 00040000 0023000e 0016000a 00530061 00660061 00720069 002e0061 00700070 000f0014 00090053 00650072 00760065 00720020 00480044 00120017 4170706c 69636174 696f6e73 2f536166 6172692e 61707000 00130001 2f00ffff 0000>
    Does anyone know what the data shown here is? It doesn't change when Rosetta is turned off and then back on. It also doesn't change between user accounts (e.g. joe's com.apple.LaunchServices.plist has the same value as jane's).
    Will it be possible to run defaults in a way that makes this change work for all users of the computer?

    I am asking about the option to run in non-interactive modeIt cannot be done. Check "Oracle® Applications Maintenance Utilities Release 11i (11.5.10.2)" manual for more details.

  • How to get COMMAND LINE input

    I am writng an application to add numbers inputted by the user at the command line in a DOS session in the java application. How do i read in input from the user?
    any help is much appreciated

    import java.io.*;
    public class ReadUser {
          static String userInput;
          static int sum = 0;
       public static void main(String[] args) {
          BufferedReader buff = new BufferedReader(new InputStreamReader (System.in));
          // get a string 4 times
          for (int i=0; i<4; i++) {
              System.out.println("Enter a Number");
              try
                   userInput = buff.readLine();
              catch(Exception ex)
                   System.err.println("Had a problem getting input");
                       // convert the string to an int and total it
              sum = sum + Integer.parseInt(userInput);
          // print the sum
         System.out.println("The total is " + sum);
             System.exit(0);

Maybe you are looking for