Command #user can change there own password (inside script..without passwd)

HI,
I have prepared one script, from which user can change there own password across all the nodes he wants.But problem is script is not working because the following command is not working
echo -e "$oldPassword\n$newPassword" | passwd
i have tried to run it manually but it is showing the folowing error....
[testuser@xxxxxx01 ~]$ echo -e test\ntest123|passwd
Changing password for user testuser.
Changing password for testuser
(current) UNIX password: passwd: Authentication token manipulation error
[testuser@xxxxxxx01 ~]$
any idea how to resolve this , or is there any other command where user can change their own password (inside a script).
Regards,
Ani

When you change the password and are not root user, the passwd utility will ask for the current (old) password. You have specified a wrong old password, plus the utility will ask for confirmation of the new password.
<pre>
$ passwd
Changing password for user dude.
Changing password for dude.
(current) UNIX password: asdfasdf
passwd: Authentication token manipulation error
$ passwd
Changing password for user dude.
Changing password for dude.
(current) UNIX password: correct_password
New password: How_will_1_ever_remember
Retype new password: How_will_1_ever_remember
passwd: all authentication tokens updated successfully.
$ old_pwd='How_will_1_ever_remember'
$ new_pwd='My_secret_passord_1'
$ echo -e "$old_pwd\n$new_pwd\n$new_pwd" | passwd
Changing password for user dude.
Changing password for dude.
(current) UNIX password: New password: Retype new password: passwd: all authentication tokens updated successfully.
</pre>
Edited by: Dude on Sep 25, 2012 4:36 PM

Similar Messages

  • Is there a way to prevent an end-user from changing their own password?

    All you guru's out there, I need your help. Is there a way to prevent an end-user from changing their own password? Is there a function or procedure I can create or what?

    In this case, you do not want someone (whoever they are DBA etc) to connect as that
    particuler user to change the password.Yes, but I wouldn't expect the users to[i] know that password. The connnect would be handled automatically, behind the scenes.
    The clear implication of the OP's question and response was that users would not be allowed to change their own passwords. I'm guessing this is in response to a policy that says users mustn't have simple passwords like 123abc or mom. In such a scenario a better approach would be to apply regexp to a user's password to ensure it contains a mix of letters, numbers, punctuation, etc to achieve the desired level of complexity.
    So questions, should not be regarded as daft Agreed, but the same is unfortunately not always true of business decisions. As the OP has told us not to ask we cannot know why they want to do this. Personally, I think a user's individual password should always be their responsibility; anything else strikes me as insecure. YMMV.
    Cheers, APC

  • User's changing their own password

    Is it possible to allow user to change their own password when logged onto a portal applicastion I have written ?

    Presumably, the application you say you have written, is a Login Server partner application. So changing the user's password means changing it on the login server.
    The URL that you need to go to, to do this, is something like: http://server.domain.com/pls/portal30_sso/portal30_sso.wwsso_app_user_mgr.change_password?p_done_url=xxxxx
    Where xxxxx is the URL where you want control to go after the user submits their new password.
    null

  • How to enable ebs users to change their own passwords.

    Hi,
    Is there any profile option which will enable the users to change their passwords on their own from EBS front-end applications...?

    Hi,
    Is there any profile option which will enable the users to change their passwords on their own from EBS front-end applications...?Users can change their password from the application itself (Edit > Preferences > Change Password).
    If you want to force all users to change their password, see (How To Force All Applications Users To Change Their Password? [ID 414976.1]).
    Also, see old threads for similar discussion -- http://forums.oracle.com/forums/search.jspa?threadID=&q=414976.1&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to enable a user to change his own password at EP7?

    I want to give the EP7 users the ability to change their own password at EP.
    Can we do that thru any role assignment or some development is needed?
    Any detailed help would be appreciated .
    I'll give points. Thanks!

    Hi Jones,
    It is possible to change their password in EP 7 with eu_role(Everyone Role). After you  are login in the portal, just go to your personalize and select the User profile in the personlize. In that user porfile having number of tabs, you should select the General Information and click the Modify button, after you getting the edit mode with the changing the password option. It ask old and new password, after you give the password and save it.Once you change the password, just you have to log off and Re - Login with new password. Its working fine.
    I hope this is helps to you.
    Regards
    Prakash T

  • User is not able to change his own password... Only DBA can change users password ??

    Hi,
    I have this problem today.I am using Oracle 8.1.7 on Solaris 2.8
    A Oracle user say " SCOTT" trying to change his password but could not.. he gets the followling message
    SQL> alter user scott identified by abc123;
    alter user scott identified by abc123
    ERROR at line 1:
    ORA-28003: password verification for the specified password failed
    Scott's profile has password_verfiy function. Hence i thought abc123 password was not matching with the password verify condition. Surprisingly, what ever password SCOTT tries with, he could get the same error message and could not change his password.. Ultimatly SCOTT could never change his password. How is it possible ??
    It is noteworthy to mention that if i give DBA role to SOCTT then he can change his password with abc123 or any thing that satisfies with password verification function.
    Now Only a user who has DBA role or a DBA could change passwords..
    Can somebody through some light on it and explain what corrective action to be taken so that Users can change their password without DBA's interreption.
    Thanks in advance
    Regards
    Srini

    <PRE>
    This is the description of the error message:
    =============================================================================
    ORA-28003 password verification for the specified password failed
    Cause: The new password did not meet the necessary complexity specifications
    and the PASSWORD_VERIFY_FUNCTION failed.
    Action: Enter a different password. Contact the database administrator to find
    out the rules for choosing the new password.
    =============================================================================
    it clearly says that password has to match the complexity specifications. You will not be able
    to change password without meeting the complexity requirements.
    DBA's can make the change to the password because if DBA's can not change the password, it could lock
    you out of the database (all users including the DBA's) and you will not be able to access the
    database.
    Try removing the password verify function and see if you can then change the password succssfully.
    </PRE>
    hi Prakash,
    The verify password function is standard oracle function and I do not think the current problem is any way related to the rules that were framed in verify password function. The key point here is a user could not change his own password. But a DBA or a user who has ALTER USER system privs.. can do so..
    Regards
    Srini

  • Users changing their own passwords

    we have set up an Open Directory and are going through the steps to deploy. One issue we have yet to find an elegant solution to is user's passwords and changing them on a regular basis. Many of the contracts we deal with stipulate user passwords are to be changed every 45 days.
    Now - there is no way we want our users monkeying around in Workgroup Manger changing their own passwords - and the last thing we on the IT team want to do is perform data entry tasks every couple of months to change everyone's password. Plus - for security reasons - this is a terrible idea.
    so - is there an easy way to have a user update their password without going through Workgroup Manager?
    thanks

    And you can set the password lifetime and reset and character-content policies in Server Admin > Open Directory > Policies > Passwords, if you've not already found that set of knobs.
    I'd also suggest looking to two-factor or certificate-based approaches, if you're having requirements around password resets.

  • Is there a way the user can change the equation in the formular node from the front panel on the fly, dynamically?

    Is there a way the user can change the equation in the formular node from the front panel on the fly, dynamically?

    Sorry, I don't think so. That would be pretty cool if you could create a property node for a formula node and then enter a formula on the front panel and use it to update the formula. But you can't create a property node for a formula node and the only way of modifying the formula is by typing it into the formula node on the diagram. And you can't modify a diagram of a running VI.
    You could create a VI which is only a formula node with the maximum number of inputs and outputs you expect. Have a button on the calling VI to Edit Formula. When the button is pressed, use a VI server to display the front panel on the formula VI, display a dialog box telling the user how to display the diagram of the formula VI, then stop the calling VI. (You can't edit a sub-VI while t
    he calling VI is running). The user will then need to rerun the calling VI to use the new formula.
    You might be able to do something by calling MatLab or something like that to get an interactive formula window.

  • Force all users to change their Enterprise passwords with a batch operation

    Hello,
    Do you know if there is a way to force all users to change their Enterprise passwords with a batch operation in the SDK? Is there any implementation done?
    Many thanks!
    Bea

    You can logon to Enterprise as Administrator in your SDK application. Query all users using following query:
    select * from ci_systemobjects where si_kind='user'
    then loop through the collection InfoObjects returned and cast east object to IUser.
    Either call setPasswordToChangeAtNextLogon(true) so that the user logs on next time will be forced to change his\her password. Call commit on InfoObjects collection at the end to save the changes.
    Otherwise you can call setNewPassword("new password") to reset password for that user.
    Depending upon number of users you can do bath commit. You can use commit(infoObjects,true). The 2nd argument is true for batch commit.

  • How to allow user to change SAP Portal password by themselves

    We would like to allow user to change SAP Portal password by themselves. However, I added role Manage_My_Password and Manage_My_Profile to a user account. After logoned with this user account and opened the option 'Personalize'. I only find the page allow me to customize the page layout. But I haven't find tab for changing profile and password.
    Pls advise.
    Thanks.
    Edward

    Hi Edwar,
    You can hide the pages from portal personalization workset. copy the workset and select the page and click on property -> select Invisible in Navigation Areas ->yes
    You can find the workset under
    Portal content->End user content->Standard Portal Users>Workset->Portal Personalization
    If you want a custom developed application fro change password see the below blog
    A Change Password Application
    Hope it helps
    Regards
    Santosh

  • Allowing user to reset their own password in BOXI3 SP3

    Is there (a new) possibility to have users reset theri own password in BOXI3.1 SP3
    Thansk for any help

    I have to refrase my question, I am looking for the possibility to let the USER ask for a new password in case of "password forgotten" (The user is NOT logged on yet)
    He/she should then ask via a link for an new password without bothering the BO-user-administration.
    This functionality is found on many websites, so I thought : there should be a possibility WITHIN SAB/BO
    On BOB I found a document named "Self-Serve Documentation.doc";, may be ther is a easier way ??

  • How to configure security so users can delete their own file(s)?

    I have configured our file server so that all users can write/modify in any other user's folder. However, it seems that they cannot delete their own file(s) in another user's folder. Do I have to give all users the "Modify" but not Full permission
    so that every user can delete their own file or folder even if it's in another user's folder? I still do not want user A to delete/modify any files/folders that user B originally created.
    Any help is much appreciated.

    Hi,
    Based on my research, if a user can rename a file/folder, then he/she can save it using the original name, there is no way to prevent this via permission assignment.
    You may need to use scripts to achieve this.
    Best Regards,
    Amy Wang

  • Control PO field one user can change

    Hello,
    We are implementing SRM 7 with ECS.
    We want to restrict fields a user can change in a Purchase order. How can we achieve that? For instance we do not want the user to be able to change cost assignment.
    Thanks in advance.

    The visibility and editability are controlled by IMG in SRM 7. In SPRO,
    SRM server >> Cross application basic settings >> Extensions and field controls >> Configure field control >> Configure controls for fields of substructure
    There you can hide or make accounting information display only.

  • İs the information true, that ipad 3 user can change their ipad 3 vs. an ipad 4, if they bought the ipad 3 within 30 days ago??

    İs the information true, that ipad 3 user can change their ipad 3 vs. an ipad 4, if they bought the ipad 3 within 30 days ago??

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    I know of no anouncement from Apple. It is reported by cnet that one Apple Store in San Francisco said that was their policy. You should call the Apple Store in question to confirm that it will also follow that as a policy.

  • Avoid users can change Short Text of Material Id in Purchase Requisitions

    Hi
    We have a problem with purchase requisitions.
    Users create a purchase requisition. In the field material,   type the ID of the Material but then, change the description in Short Text, for example Material 1000 is a Bearing, and the user can change this description for  Nut for example, causing problems and confusion in the following steps.
    We want that if the user use Material ID can´t change the Short Text
    Thank You  very much
    Sergio

    Hi,
    You can control this via tcode OLME. go to Purchase Requisitions and then 'Define Screen Layout at Document Level'.  Select appropriate field selection key (NBB if using standard one), go to basic data, item and maintain required settings.

Maybe you are looking for

  • Table transformation from two different database

    Hi all, I am trying to load table from one database table to another database table in ODI 10g.I have created two physical and logical topology. But when in interface design i have drag the source and target tables in the diagram window, but here it

  • PC does not recognze iPod, freezes when iPod is connected.

    I have a refurbished (I needed my original replaced last spring) 20G Photo. My computer runs on Windows XP. One week ago it froze, and when an album or artists was slected to be played, it would skip from one song to the next without actually playing

  • MM BUS2105 Workflow - doubled emails

    Hello, I am trying to create an BUS2105 workflow, to release a purchase requisiiton. The emails ( outlook ) send by the workflow, are recieved 2 times for each release level, and 3 times for the last level. Did any of you encouter this problem before

  • Transferring photos taken on an iPhone to a PC

    I am trying to transfer photos taken on my iphone to a pc running windows XP (work computer)  However this is NOT the pc that the computer is sync to. How do I do it? (The pc is sync to my home pc - running Windows 7) You used to be able to go My Com

  • Installing MacTracker onto 5G iPod

    How do I install the MacTracker app onto my 5G iPod? I dragged the icon from my applications folder into my "Notes" folder of my iPod. Now I can't see anything that resembles the info that MacTracker has in it's application. Did I do something wrong?