How do I update my git password on linux? - linux

For some reason I set my git password on my Ubuntu desktop to something different than what I have it set to on my Windows laptop and I'd like to change the password on linux. Everything I'm finding talks about a credential helper but that's not really what I want. I don't mind typing in my password because it helps me to remember it. I have the current password so I'm not locked out but I can't find how to simply update the password. If I store the password in the credential helper and then something happens down the road where I need to enter that password I wouldn't remember it. Any help would be appreciated.

Related

Git push asks username & password for HTTP repo origin

I am working on a project of mine and I got the codes uploaded in github. I started working in this project from Win10 os and currently I'm working in Arch linux. In windows it didn't use to ask me for any password but it does now.
I've never pushed from my linux before. Today when I tried to push the terminal and VB code both are asking for my github username and password.
I kept a backup of this project at my usb hard drive and currently I pasted it in my linux ssd. What I'm saying is I didn't clone it from the repo. As far as my global username & user email are concerned both are accurate. I'm not using any SSH so when I type git remote -v in my terminal it shows https link as the origin for both fetch and push.
Why is it asking for my username and password? Is it secure to provide my password? In case if I provide my credentials then do I have to provide it every time I push? How to fix this?
I have searched stackoverflow for solution but the other questions that I have found doesn't match my criteria cause in windows it was working fine without asking any credentials.
So, I have updated my origin remote from https to ssh and added a ssh public key to my github account after creating one which is well defined by github finally my problem solved and now I can push to my repo without any credential prompt by the terminal. Thank you Code-Apprentice.
While in general, providing a username and password to git is secure, GitHub no longer allows authentication with username and password. Instead, you need to either use ssh or generate a personal access token.
See source for details.
Why people are editing my posts I don't understand. I'm trying to post a solution of the problem that I have faced previously. Then why people are editing my posts? I just want to put a proper solution for the future so that people get benefited from this. However, the solution of the problem is you have to do ssh push then it won't prompt for username & password anymore. That's all. Now please do not edit my post. I am not even sure how you are allowed to do that!

how to configure windows change password policy on linux

I work in a linux system with a windows proxy account. The password must change aways at the end of the month. Nowdays i need to go to a windows machine, change my password and go back to my linux machine.
The password is used for others internal services too. (like private email, git access, database access, etc).
I want to change my password without the help of a windows. I want to do it on linux. It can be done?
This is really the wrong forum: I'd suggest trying serverfault.com.
SUGGESTION:
It sounds like smbpasswd might be a solution: http://serverfault.com.

SourceTree: Keeps asking for a password to bitbucket.org

Can't connect to bitbucket.org from SourceTree. Keeps asking for password. Worked fine yesterday with the same project. Works from git command line
It's an issue with the newest version 1.6.24 downgrade to 1.6.23 to fix this
here is a link: http://downloads.atlassian.com/software/sourcetree/windows/SourceTreeSetup_1.6.23.exe
link to thread detailing issues:
https://answers.atlassian.com/questions/164023/password-not-working-on-sourcetree
I had a similar thing after an update; I tried re-adding my bitbucket credentials, changing the protocols, etc. with no luck, until...
I opened my keychain and searched for bitbucket under the Passwords category.
I found that I had multiple Access Keys for my user, so I closed my repository, deleted all the keys of "application password" Kind, opened the SourceTree preferences > Accounts > removed my account and re-added it (login as usual - I used Basic with HTTPS).
Keychain asks for permission to save the password, which I said yes and now I only see one key of the kind "application password".
I opened my repository from the repo browser and hey presto, no more password popups!
This bugged me for a whole week! If this helped you, you can do a little dance with me now :)

Save password for P4 visual client

I am using the below version of p4 visual client. Everytime, I launch the client it prompts me for a password. Is there a way that I can set the password (encrytped) as an env variable so that it doesn't prompt me for a password . I am using Windows 7 operating system.
Version:: Rev. Perforce Visual Client/NTX64/2014.3/1007540
Thanks
If your server's security level is 2 or lower, you can store your password in the 'P4PASSWD' environment variable, but it is not encrypted.
More information about server security levels, passwords and tickets is available here:
http://www.perforce.com/perforce/doc.current/manuals/p4sag/chapter.superuser.html#DB5-49899
Currently P4V does not have a mechanism to store your password within the application, but you may wish to consider submitting your suggesting to P4IdeaX:
http://www.p4ideax.com
Hope this helps,
Jen!

Default Jenkins User Password

I have a fresh install of Jenkins as a service on my Linux machine. When Jenkins installs, it creates a 'jenkins' user, but I can't seem to find the default password for it anywhere.
I'm trying to secure my system, so if the default password is '123' or something insecure that I just haven't thought of yet, that's a problem.
Thanks!
I don't believe it has any password. You should be able to do:
sudo passwd jenkins
This will prompt for you to set a password.
Alternatively you could create the jenkins user prior to installing, and it would leverage that one.
For fedora,
Go to /root/.jenkins/
open config.xml
In config.xml, set disableSignup to false.
Restart Jenkins.
Go to the Jenkins web page and sign up with a new user.
In config.xml, duplicate one of the hudson.model.Hudson.Administer:username lines and replace username with the new user.
If it's a private server, set disableSignup back to true in config.xml.
Restart Jenkins.
Go to the Jenkins web page and log in as the new user.
Reset the password of the original user.
Log in as the original user.
Default password for user jenkins is just "jenkins". However, logging into this user automatically closes your session (probably it is set to be used only to allow using particular computer as a jenkins agent, but I'm not sure). That't why su - jenkins and typing jenkins do not work.
You can try logging as a jenkins user with ssh and you will see that it works, but suddenly the session is closed:
I believe there is a solution for this, but maybe it is not needed in your case. Really need to use system as a jenkins user? Doubt it.
C:\Windows\system32\config\systemprofile.jenkins\secrets\
goto above mentioned path and find
"initialAdminPassword" click that file and copy value
this is password for jenkins!

Resources