System users password has expired - oracle

I have just tried to login to my db via sql developer as system so i can create a new user. It has come with an error that the password has expired.
I have googled a bit but cannot see how to reset the system user password. I guess this is a security issue.
My problem is how can I log in as system if the password has expired? How can I unexpire the password without logging in as System users. I seem to be stuck here in a loop where I cannot reset the password expiration.

Open up cmd.exe and type in SQLPLUS
Enter user-name: SYSTEM
Enter password: the expired password
It will now let you type in a new password for the SYSTEM user

If SQLPLUS is not available, you can also reset an expired password from within SQL Developer:
Save your connection information (if not done already)
Right click on your connection
Click on the “Reset Password” option in the menu, enter old/new password blah blah blah

If someone drops by from a Google search but uses IntelliJ:
You can reset the system password in the connection properties' "Advanced" tab. There you can set the new one as a value for the oracle.jdbc.newPassword key.

Related

Alter User Identified By Inquiry

Inquiring if the statement after identified by is the password 'pw12334' to be applied to the account
example
Alter user username identified by pw1234 account unlock.
also inquiring if "identfied by" command alone can replace password without the "replace" command
kinda confused here, since I need to apply the password to apex.xml to make the ords 503 error go away.
the syntax to unlock the user is, the IDENTIFIED BY password is needed becuase if you unlock an account without resetting the password then the password remains expired.
ALTER USER james IDENTIFIED BY Jim123 ACCOUNT UNLOCK;

I forgot my Macbook's admin name and password and my user account is changed to standard, how can I change it?

I tried everything using terminal still can't get anything I can't change it using user setting as it demands the password and admin name I used keychain but still didn't get it
Boot up your Mac and hold CMD + R
which will boot into Recovery Mode.
Go to Utilities and open Terminal. Type in the following:
resetpassword
Close out the Terminal window and behind it you will find the Reset Password utility. All you have to do now is select the user account you want to reset, enter a new password or leave it blank and click Save. Then just simply restart the computer from the Apple menu and login with your new password.

CFEXECUTE assigning it to run with administrator rights

I am trying to change a password with active directory using cfexecute.
The only code on my page is this (username and the new password are filled in):
<cfexecute
name="c:\windows\system32\cmd.exe"
arguments="NET USER username password /domain"
outputfile="C:\Users\administrator\Desktop\test.txt"
timeout="90">
</cfexecute>
When I tried running this code through dreamweaver on my pc the tab in my browser just kept spinning even after 5 min... I closed the tab went to the server logged in and the text.txt was there empty. But I am unable to delete it because it says coldfusion.exe is using it???? Also it did not change the users password.
So then I opened up the command line on my pc and ran NET USER username password /domain it gave me a System error 5 has occured. Access is denied..
So then I went on to the server logged in as an administrator ran NET USER username password /domain and it worked.
How do I tell cfexecute to run as that administrator when it runs so that it works properly?
I looked up the docs of cfexecute and it is not like cfldap where you can choose a username and password.
Any help with this would be greatly appreciated!
Edit
Also checked log files in admin and it stated this:
Error occurred: coldfusion.tagext.lang.ExecuteTag$TimeoutException: Timeout period expired without completion of c:\windows\system32\cmd.exe
(It cant run that simple command within a 90 second timeout? But runs instantly when I run it in the command line?) Is there something wrong with using cfexecute?
EDIT IS IT POSSIBLE?
To Add a user it always runs as to change the password like so?:
"/c net user /user:domain\Administrator <admin-pwd> username password /domain"
ColdFusion is only able to access the domain and user account that is used by the ColdFusion service.
If you want to authenticate a username/domain against local system or Windows domain using any version of ColdFusion, consider using the CFX_EXEC tag.
http://adiabata.com/cfx_exec.cfm
<CFX_EXEC
CMD="NET USER username password /domain"
USER="Administrator"
PWD="pass"
DOMAIN="domain"
FILE="C:\Users\administrator\Desktop\test.txt">

Active Directory how to simulate a user login in and changin his password

Short story :
Knowing the temporary password of a user, how to simulate a user login and change it's password without actually open a session when the option user must change password at next logon is enabled ?
Long story:
I'm in a helpdesk and have access to an app that allow me to generate a new password for a AD user account. When the password is generated, the option user must change password is also activated. Sometimes the user is outside the office so he ask me to change the password for him. I'm able to switch user on my workstation, open a session with the user's temp password then change the pass.
What I'd like is to make this password change from my own session.
What I have tried
Run as: runas /user:domain cmd.exe
-> error 1907 The user's password must be changed before logging on the first time.
net user net user username newpassword /dom
-> error 5 access denied
start-process start-process -credential domain\username powershell.exe
-> invalidOperationException The user's password must be changed before logging on the first time.
Actually this is really easy with the active directory module :
Set-ADAccountPassword username
will ask for the old and new password. That's all

Unable to reset WAS admin password. unable to login WAS console

I am unable to login inot WAS Admin console. So I am trying to reset the admin credential after disabling security(security.xml-enabled="false"), but unable to save the new password. Any idea what should I check and troubleshoot?
I tried entering the credentials on soap.clients.props, but no help. WAS version : 7.0
From
http://www-01.ibm.com/support/knowledgecenter/SS7JFU_7.0.0/com.ibm.websphere.messages.doc/com.ibm.ejs.resources.security.html?cp=SS7JFU_7.0.0%2F1-15-7-225
SECJ7342E: Failed to validate user/password
Explanation Failed to validate user password in WIM registry
Action None
The credentials that you entered do they exist in the WIM registry?
From the screen shot it appears that you are using the File Based registry. Check that the ID and passwords match the values in that File Registry.
If you disabled security, then restart your server, so it starts plain, unsecured and enable security again via console. There will be prompt to specify admin user and password (I'm assuming you are using default Federated repository with file based). Provide new password there and restart the server.
In the page you are showing now, leave Server user identity as default - Automatically generated. This is not page, where you change user password.
Settings in soap.clients.props are not related to password changing. Once you set new password via console, you can update that file, so you won't be prompted, when you stop server from the command line.
This technote is also helpful when forgetting your WAS Admin console password:
Forgot password and cannot access WebSphere Application Server administrative console
https://www.ibm.com/support/docview.wss?uid=swg21405302

Resources