Help me for writing the password script on solaris

hi,
help me for writing password scripts to change the user/root password.
in the script itself myself want to mention the new password.
now user want to login with the new password only.
model script:
echo $test:`perl -e '$x=crypt('$test123','test');
               print $x'`::::::: >> /etc/shadow
test--->username
test123---->new password.
the above script is not working.
kindly help me for writing the script.
Regards,
raja

Well. For one thing, if you just append the new password to the /etc/shadow file there will be two entries for the user in that file (at least if the user already had a password). Which probably is a bad thing.

Similar Messages

  • HT201441 Please help me I forgot the password for iclaud I can not open the device I want a solution "

    please help me i forgot the password for my iclaoud  i can not open my the device

    Try to reset your password here: http://appleid.apple.com

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • What do symbol ^ and stand for in the following script?

    What do symbol *^* and *>>>* stand for in the following script?
    Does *(int)* means that (temp ^ (temp >>> 32) return the int format?
    long temp = Double.doubleToLongBits(salary);
    result = PRIME * result + (int) (temp ^ (temp >>> 32));
    return result;
    Thank you very much

    jetq wrote:
    What do symbol *^* and *>>>* stand for in the following script?In Java, this is referred to as "code", script could be confused with Javascript, which is not Java at all.
    The previous reply will help you find all you need to know.
    Does *(int)* means that (temp ^ (temp >>> 32) return the int format?"format" refers to how a value is converted to text. (Sometimes how it is to be parsed as well)
    "(int)" casts the long value to an int value (signed 32-bit)
    long temp = Double.doubleToLongBits(salary);
    result = PRIME * result + (int) (temp ^ (temp >>> 32));This will treat -0.0 as being different to 0.0. If this is undesirable, you can do something like...
    long temp = aDouble != +0.0d ? Double.doubleToLongBits(aDouble) : 0L;
    result = PRIME * result + (int) (temp ^ (temp >>> 32));

  • I need to reset security question but the email that was saved for changing the password and security question is blocked , what can i do

    i need to reset security question but the email that was saved for changing the password and security question is blocked , what can i do?
    i purchased my account but i cant use that because apple ask me about security question and i forgot the correct answer

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
    Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                             Apple ID- All about Apple ID security questions.

  • USELESS ONLINE HELP FACILITIES For all the amazing productivity aids that APPLE offers the world I have to report that their online support service is worse than useless and has recently been the source of immense time wasting and irritation.

    USELESS ONLINE HELP FACILITIES
    For all the amazing productivity aids that APPLE offers the world I have to report that their online support service is worse than useless and has recently been the source of immense time wasting and irritation.
    Incident 1. Since many months attempts to download new and updated APPs produced a response – Apple ID Disabled. I had no time to consult an APPLE Store due to work in distant lands. When I finally visited yesterday I was told that as my IPAD has been reported as stolen, and APPLE in its wisdom had blocked its usage! I am not sure how they became so misinformed and nobody every advised me while with a few swift moves APPLE could have located me by email address or SKYPE.
    Incident 2. Once the above anomaly had been fixed I tried to down load a newspaper and diligently input my address, credit card number and personal data. Repeatedly I was advised that my Credit Card was invalid and my postal code was incorrect! Really!
    I was left to guess that having moved from UK to the US I should have advised APPLE! Not being told of this requirement brought about a second visit to APPLE Store in the same day to waste both mine and their time with a routine anomaly. How parochial in the context of a globalized world!
    In each case I tried to resolve the issues using online access to a help line and by calling by phone at the numbers on the APPLE Website. In each of four separate occasions I diligently went through the routine and  ended up with a message that thanked me for contacting Apple followed by a polite ‘Good Bye’!
    In desperation I went to an Apple Store for the second time in a day as it is close to where I live when I am not working. On both occasions I was courteously attended to by Apple Staff.
    However, my work is usually far away from the US and it is generally many thousands of miles to the nearest Apple Store therefore online help is viewed as imperative if one is to resolve issues away from home.
    Why can Apple not provide a clearly marked EMAIL address and Telephone number at a Help Desk with real people to respond to requests for help? It would cost nothing in relative terms and might restore my high level of anti-APPLE sentiment that these two recent events have provoked.
    Peter Hanney
    Miami, Fl.

    Why can Apple not provide a clearly marked EMAIL address and Telephone number at a Help Desk with real people to respond to requests for help?
    If that is your question, the answer is at the bottom right of this web page. It is clearly marked "Contact Us" and is the best way, really the only way, to contact Apple.
    If there were a publicly posted email address for concerns such as yours, it would be quickly filled with spam in about three minutes, thereby becoming instantly useless to you and everyone else. Apple would need to change it hourly, if not more often. That is also the reason you ought not to post your name, location, and what appears to be your iPad's serial number on this publicly viewable website.
    Apple does not respond here and I can find no other questions for your fellow Apple users to answer.

  • What do the symbol and stand for in the following script? not like displa

    What do the symbol *>* and *>>* stand for in the following script? It is displacement? They do not like displacement symbols.
    $JAVA_HOME/bin/java -cp $CLASSPATH $JVM_OPT $SYS_OPT
    oracle.sysman.integration.coherence.EMIntegrationServer *>* $COHERENCE_
    HOME/mgmtnode.log *>>* $COHERENCE_HOME/mgmtnode.err &
    Thank you

    jverd wrote:
    BigDaddyLoveHandles wrote:
    But the example, if it's correct, seems to be using >> to redirect stderr, not to append stdout. The OP should identify what OS and what shell they are using.In any unix shell I'm aware of, > is overwrite and >> is append.Which is why he said "seems to be using >> to redirect stderr". Which I read to mean that BDLH also found it to be incorrect but some "corner-product" shell may do this sort of thing (not that I know, or have heard, of any that do). ;-)
    In a bourne family shell, the initial construct would cause stdout to replace the log file and append the err file, and would not redirect stderr.
    If you want to send stdout to one file and stderr to another, with overwrite, it'd be
    command > logfile 2> errfile
    Correct, of course. ;-)
    And, of course, changing either of those ">" symbols to ">>" would append (that stream), but you've already said that. ;-)

  • What is the procedure/code in VBA for passing the calc scripts dynamically based on the selection.

    Hello Gurus,
    I want to know what is the procedure/code in VBA for passing the calc scripts dynamically based on the selection.
    For example:
    X=EssVCalculate("Sheetname","Calc_Script name",True)
    In the above code instead of the *"Calc_Script name"* I want a script which is called dynamically and the values are calculated accordingly.
    Thanks in advance
    Saurabh

    Hi Todd,
    This is the situation:
    I have a calc script in Essbase which I can call to perform the calculations on the current sheet that is retrieved. I want calculation for the following formulas:
    x = EssVCalculate("Sheet2", "CalcBC", False)
    CalcBC is my calc script which is present in Essbase
    So instead of passing the above script I want to pass the conditions dynamically in the VBA code . I don't want to mention the script name directly in EssVCalculate option
    For example:
    I have three drop down menus from which I would select three different( zero level )members. It would then retrieve the data for that particular values in the excel sheet and now when I click on Calculate button it should calculate the script dynamically.
    I don't know how calc scripts can be executed dynamically in the VBA code itself.
    Thanks in Advance
    Saurabh

  • Please help me to change the password policy in Sun Directory Server 6.0

    Hi,
    Please help me to change the password policy in Sun Directory Server 6.0

    What are you trying to accomplish? Have you at least read the manual?
    http://docs.oracle.com/cd/E19693-01/819-0995/fhkrj/index.html
    As reported in earlier threads on this forum, DSEE 6.0 IS NOT a release you should use in your production environment, specially if you're starting new projects; consider moving at least to the latest 6.x release which is 6.3.1.1.1
    thanks,
    Marco

  • Dear Friends, I am trying to draw a structure in Adobe Illustrator with 3D effect. But I am unable to give it proper shape. Can someone please help me for drawing the similar structure as showed below. I have facing problems in giving 3D effect.

    Dear Friends, I am trying to draw a structure in Adobe Illustrator with 3D effect. But I am unable to give it proper shape. Can someone please help me for drawing the similar structure as showed below. I have facing problems in giving 3D effect.
    Thanks a lot for your great help...

    i made a quick example:
    and what it's made of:
    just shapes and gradients. used a combination of pathfinder and shape builder to get the shapes exact.

  • Xgettext for perl and shell scripts on Solaris 9

    Hi......I have to internationalized perl and shell scripts on Linux and Solaris 9.
    I have used gettext on linux to internationalized both perl and shell scripts but on solaris i m not able to
    achieve the same.
    If we see help of xgettect on Linux, it shows input file options for Perl, Shell, C, C++ etc but help for
    xgettext on Solaris shows input file option for C only.
    Can you please provide me some way of using xgettext for perl and shell scripts on Solaris 9 or
    is there any other way of internationalizing perl and shell scripts on Solaris 9.
    Many Thanks,
    Lokesh

    Signature link blocked.
    db
    Contentprise wrote:
    Hi......I have to internationalized perl and shell scripts on Linux and Solaris 9.
    I have used gettext on linux to internationalized both perl and shell scripts but on solaris i m not able to
    achieve the same.
    If we see help of xgettect on Linux, it shows input file options for Perl, Shell, C, C++ etc but help for
    xgettext on Solaris shows input file option for C only.
    Can you please provide me some way of using xgettext for perl and shell scripts on Solaris 9 or
    is there any other way of internationalizing perl and shell scripts on Solaris 9.
    Many Thanks

  • Please help with "Error writing the project file. The specified module could not be found." error.

    I am a student.  I've been trying to install and use Visual Studio 2013 Professional for three weeks now and I cannot get it to work.  I am now two weeks behind in my Visual Basic class.  I've installed, uninstalled, ran the repair option... 
    I've tried everything I know how to do.  I just spent 45 minutes on the phone with Microsoft, was transferred four times and finally told I will have to use the forums to find an answer.  I'm almost completely out of patience with this.
    I got the software through the Dream Spark program as a student.  I installed it with the web installer and it appeared to install fine.  When I try to create a new project, I get the error:  "Error writing the project file.  The
    specified module could not be found."
    When I exit the application, I also get:  "The automatically saved settings file 'c:\users\user\documents\visual studio 2013\Settings\CurrentSettings-2015-02-02.vssettings' is not available for write.  You can change this file on the 'Import
    and Export Settings' Tools Options page."
    Please tell me you can help.

    Hi,
    could you please try the points mentioned here:
    http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/0376db8f-4761-4ae5-9af2-98c53216318a#VS_IDE_unexpected_problems to eliminate the possible cause of your issue?
    Please update the result in the forum after you try the method above!
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Help me to find the password in STRING

    i made the login dialog, with username and password fields but i don't know how can get password in String formate in order to connect to my database.
    final String driver = Login_Dialog.T_driver.getSelectedItem().toString();
    final String url = Login_Dialog.T_URL.getSelectedItem().toString();
    final String user = Login_Dialog.T_User.getText().toString();
    final String password = Login_Dialog.T_Password.?????????????;
    Class.forName(driver);
    connection=DriverManager.getConnection(url,user,password);
    statement = connection.createStatement();
    i know the URL or database, Username , but Password ??????
    so plz help me out ....
    thanx

    I'm not quite sure what you aare asking here, but if you have the user enter the password into your login dialog, just use the same methodolgy that you implemented for your user field (ie:.getText();)
    if I'm misunderstanding part of your question, let me know.... but I hope this helped

  • HT1338 I forgot my login password, please can you help me and reset the password.

    Hello, please help me reset my windows password.

    Forgotten Screen-Lock Passcode
    Connect the iOS device to your computer and try to make a backup
    iOS: How to back up
    Then restore via iTunes. The iOS device will be erased. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up    
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store    
    or
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.

  • HT1338 i want to refresh my mac book i for got the password

    i want to refresh my mac book i for got the password

    Boot from your Leopard installation DVD, and use the menus to reset your password.
    NOTE:  I said your Leopard DVD, because you are posting to the Leopard forum.  If you are really using Mountain Lion, then you would boot via your Recovery partition (boot holding Command-R), then reset your password.
    Message was edited by: BobHarris

Maybe you are looking for

  • Custom XML IP PHONE text on "Your current options" and softphone button on

    Custom XML IP PHONE text on "Your current options" and softphone button on call manager 7.0 call manager 7.0 ?

  • Receiver server for Receiver file system

    Hi, I am trying to create a scenario where the data from SAP system goes to XI through ABAP proxy and has to write the data in the file. My Question... In the Integration directory my sender system is ABAP Proxy and receiver system is File adapter. W

  • Mail service not requiring SMTP Authentication

    hello everyone, I have been trying to find an answer and could not. I want my mail server to require SMTP Authentication. I have "CRAM-MD5" and "Login" checked in Server Admin -> Computers & Services -> Mail -> Advanced -> Security. Still, I can set

  • I can't import my pictures into iPhoto?

    Normally I just plug in my phone or camera, go to iPhoto, and hit import, but as of today it won't work. Earlier today I plugged in my iPhone 4, and it wouldn't let me import my photos. Thinking it was just my phone being slow I unplugged it and went

  • Can't Transfer my info from Imac( mid-2007) to my macbook pro (mid-2009)

    Hello, i bought a macbook pro today and I'm having trouble transferring my data from my Imac(mid-2007) to my macbook pro. I do not own a firewire cable unless it comes with the computer? I was doing it wirelessly and after i entered the code said it