Installing PostgreSQL on Windows - windows

I'm in a bit of a mess here. I installed PostgreSQL on my Vista computer a couple of days ago but then when asked to enter the password for the postgre user account I couldn't remember it (allegedly I was asked during setup but I don't remember that).
Anyway, so I uninstalled Pg with the intention of reinstalling it, removed the user account, it's /Users/ directory and it's special privelleges ("Advanced user profile properties") but when I come to install Pg it seems to think the account still exists as when I supply a password during setup it says that it is not the correct password - meaning that the account still exists somewhere.
Is there anyway I can recover this?

Go to Control Panel -> Administrative Tools -> Computer Management. There under "Local Users and Groups" you can see all users created for your system. Remove "postgres" and reinstall PostgreSQL.

Open a command prompt with the administrator rights.
i.e. Right click on command prompt icon -> Run as Administrator
Use the following command to change the password:
!important: CASE and SHOULD BE RUNNING AS ADMINISTRATOR
NET USER postgres <NEW_PASSWORD>

On Vista you can go to Control Panel -> User Accounts -> Manage Another Accounts
then select user postgres, change the password if you forget your last password.

Related

How do I fix "Developer tools access needs to take control of another process for debugging to continue." in Xcode?

I'm aware that this question has been asked before but their solutions did not solve my problem. Typing "DevToolsSecurity -enable" into console returned "Developer mode is already enabled," but the window keeps popping up. I do not have an admin account on this computer so I cannot type in an admin username or password.
I am running Xcode 10.2.1 with Mojave 10.14.5.
man DevToolsSecurity says:
DevToolsSecurity tool to change the authorization policies, such that a user who is a
member of either the admin group or the _developer group does not need to enter an
additional password to use the Apple-code-signed debugger or performance analysis
tools.
So this tool only helps if you are in the admin or _developer groups.

Disable admin restrictions

My school has blocked literally everything on my windows laptop, I can't access cmd, gpedit.msc, regedit, setting/control panel and pretty much anything else you could think of that could disable admin restrictions. So how would i disable admin restrictions, i'm uses windows 10 (can find edition as info is blocked).i just need to be able to access one of the above mentioned things
You can not disable "admin restrictions" if you are not part of the admins group.
The Administrator is the account who can change any configuration in your computer.
There is a group called "Administrators" those accounts can change any configuration in your computer too if they have the administrator role asigned to that group.
By default the first account in your PC is the administrator.
Check this link for a better explanation.
try opening cmd using powershell by typing
"start cmd"

oracle home user

I have windows 10 64 bit
I try to re install oracle database 12c
i delete all files .. from directories .. from services. from regedit .. from temp.. from c disk .. from everywhere i remove oracle files all also i run ccleaner but when i try to install oracle database12c again
then in this step this show oraclehomeuser1 already exist :O
i dont why where it is located
any solution please
It seems that as part of the Oracle 12c installation process, you created an 'Oracle Home User' account. This user account is used to run all database services. You haven't done anything wrong here: I've created Oracle Home Users for Oracle 12c databases I've set up.
Evidently as part of your uninstallation you didn't remove this user account.
Remove this user account, using this Super User question if the user doesn't appear in Control Panel, and try again.
press WIN+R , Type lusrmgr.msc, press enter, double click users in left pane, delete the Oracle home user you create during instalatiom –
Tayyab Mazhar
Thanks Tayyab.. this is perfect answer.

XAMPP Administrator Password Reset

I'm trying to install WordPress onto my Portable XAMPP-lite with Bitnami. However I get this dialog asking for the administrator password and I have no idea what it is. I never set one up and I've tried all my normal passwords.
I have a Windows machine and all the resets I've found a for Mac/Linux or are outdated. Is there anyway I can reset the password or at least another way to install WordPress?
Dialog:
I had the same issue, but running the installer with elevated rights (Right-click: "Run with elevated rights") fixed it.
It must be asking for an OS admin password; but in a weird way.
when I entered my OS X admin password, it said that it will restart with admin rights, and on the second run, it skipped asking that password and came to this setup stage :
That step is asking for your system password.
In case of Linux/Mac, that password is your user administrative password. You can also run the installer on the command line with sudo.
In Windows, you can avoid that step running the installer with Administrator permissions (double click over the installer and clicking on Run as administrator)
After that as onur-surme pointed you will be asked for the application password. There you can set the application administrator password, in case of Wordpress the one you use to log in on the back end interface.

Authorize a non-admin developer in Xcode / Mac OS

I use a standard user account for my daily tasks on Mac OS. Since upgrading to Snow Leopard I am asked to do the following when a program is run from within Xcode:
"Type the name and password of a user in the 'Developer Tools' group to allow Developer Tools Access to make changes"
While I know the admin username/password, this is annoying (though only required once per login).
The developer tools access is asking for rights to "system.privilege.taskport.debug" from application gdb-i386-apple-darwin.
What is the best way around this?
You need to add your macOS user name to the _developer group. See the posts in this thread for more information. The following command should do the trick:
sudo dscl . append /Groups/_developer GroupMembership <username>
Finally, I was able to get rid of it using DevToolsSecurity -enable on Terminal.
Thanks to #joar_at_work!
FYI: I'm on Xcode 4.3, and pressed the disable button when it launched for the first time, don't ask why, just assume my dog made me do it :)
$ dseditgroup -o edit -u <adminusername> -t user -a <developerusername> _developer
You should add yourself to the Developer Tools group. The general syntax for adding a user to a group in OS X is as follows:
sudo dscl . append /Groups/<group> GroupMembership <username>
I believe the name for the DevTools group is _developer.
Ned Deily's solution works perfectly fine, provided your user is allowed to sudo.
If he's not, you can su to an admin account, then use his dscl . append /Groups/_developer GroupMembership $user, where $user is the username.
However, I mistakenly thought it did not because I wrongly typed in the user's name in the command and it silently fails.
Therefore, after entering this command, you should proof-check it.
This will check if $user is in $group, where the variables represent respectively the user name and the group name.
dsmemberutil checkmembership -U $user -G $group
This command will either print the message user is not a member of the group or user is a member of the group.
Answer suggested by #Stacy Simpson:
We are struggling with the issue described in these threads and none of the resolutions seem to work:
Stop "developer tools access needs to take control of another process for debugging to continue" alert
Authorize a non-admin developer in Xcode / Mac OS
As I'm new to SO, I cannot post in either thread. (The first one is actually closed and I disagree with the localization reasoning...)
Anyway, we created a work-around using AppleScript that folks may be interested in. The script below should be executed asynchronously prior to launching your automated test:
osascript <script name> <password> &
Here is the script:
on run argv
# Delay for 10 seconds as this script runs asynchronously to the automation process and is kicked off first.
delay 10
# Inspect all running processes
tell application "System Events"
set ProcessList to name of every process
# Determine if authentication is being requested
if "SecurityAgent" is in ProcessList then
# Bring this dialogue to the front
tell application "SecurityAgent" to activate
# Enter provided password
keystroke item 1 of argv
keystroke return
end if
end tell
end run
Probably not very secure, but it's the best work-around we've come up with to allow tests to run without requiring user intervention.
Hopefully, I can get enough points to post the answer; or, someone can unprotect this question. Regards.
For me, I found the suggestion in the following thread helped:
Stop "developer tools access needs to take control of another process for debugging to continue" alert
It suggested running the following command in the Terminal application:
sudo /usr/sbin/DevToolsSecurity --enable
Here is a better solution from
Mac OS X wants to use system keychain when compiling the project
Open Keychain Access.
In the top-left corner, unlock the keychain (if it is locked).
Choose the System keychain from the top-left corner.
Find your distribution certificate and click the disclosure triangle.
Double-click ‘Private key’ under your distribution certificate.
In the popup, go to the Access Control tab.
Select ‘Allow all applications to access this item’.
Save the changes.
Close all windows.
Run the application.
I am on Snow Leopard and this one didn't quite work for me. But the following procedure worked:
First added another account with admin privileges by ticking "Allow user to administer this computer" under Accounts, for example an account with username test
Logged into the test account
Launched Xcode, compiled and ran my iPhone project. All ok, no errors were thrown related to permissions
Logged out of the test account
Logged in with the another account having admin privileges
Took away the admin priviliges from the test account by removing the tick from "Allow user to administer this computer" under Accounts
Logged back into the test account
Deleted the iPhone project directory and again checked out from the repository (in my case svn)
Launched Xcode, compiled and ran the project. I didn't get any errors and the App ran well in the iPhone Simulator.
After you run:
sudo dscl . append /Groups/_developer GroupMembership <username>
per the answer above, you may still get prompted to enter in your own password:
We need authorization from an admin user to run the debugger.
This will only happen once per login session.
What it really means is any _developer groupmember user so just your non-admin user/password will work here but to get rid of it completely (no prompts after a reboot) you'll also need to run:
sudo DevToolsSecurity -enable
(running it with sudo as an admin user/as root will make it so you can do it remotely without a gui password prompt)

Resources