114 votes
Accepted

What is the correct way to use git with gnome-keyring and http(s) repos?

git-credential-gnome-keyring is now deprecated. Instead, use libsecret. If it's not already pre-installed on your machine, use the following procedure: Make sure libsecret and its development ...
eddygeek's user avatar
  • 1,669
95 votes

Execute sudo without Password?

The preferred way to grant individual (or group) permissions would be to add files under /etc/sudoers.d This separates local changes from the default policy and saves time in case the distribution ...
QT-1's user avatar
  • 1,402
88 votes
Accepted

chsh always asking a password , and get `PAM: Authentication failure`

Thanks to this question on Server Fault, I worked around this by: Replacing auth required pam_shells.so with auth sufficient pam_shells.so in /etc/pam.d/chsh. Then it doesn't ask for ...
Mithril's user avatar
  • 2,381
71 votes
Accepted

Disable password request from suspend - 18.04

Type the following in the terminal after the $ prompt: gsettings get org.gnome.desktop.screensaver ubuntu-lock-on-suspend If the result displayed is true then set it to false using: gsettings set org....
WinEunuuchs2Unix's user avatar
70 votes
Accepted

mysql doesn't ask for root password when installing

You can recover or set root password without knowing the current one by starting mysql without loading the grant-tables. Please note the $ in the commands. This is specifying the terminal prompt you ...
L. D. James's user avatar
56 votes

Ubuntu server default password using Raspberry Pi image?

I found that it takes a few minutes after it boots for Ubuntu on the Pi to create the 'ubuntu' user and its password. I searched for a solution and found this question. The existing answer was no ...
Cliff's user avatar
  • 1,373
55 votes

How do I stop the constant requests for a password?

There is an easily changed setting to prevent these requests for your password whenever you need to walk away from your computer for a while. First follow this path: Dash --> System Settings --&...
andrew.46's user avatar
  • 38k
55 votes

MySQL root password setup error

I just found the same issue. So, these were my steps: I killed the mysql_secure_installation process, sudo pkill -f mysql_secure_installation. I logged into mysql using: sudo mysql of course, sudo ...
Duloren's user avatar
  • 795
48 votes

mysql doesn't ask for root password when installing

It will not ask for the password while installing mysql in Ubuntu 16.04 but you can set it after successful installation in following way: After completion of mysql installation, run command: sudo ...
d a i s y's user avatar
  • 5,511
48 votes
Accepted

How to change the gpg key of the pass password store

Use pass init [-p path] <gpg-id> where <gpg-id> specifies the new gpg key with which you want to encrypt your passwords. According to the pass man page, If the specified gpg-id is ...
Wayne Warren's user avatar
46 votes

How can I set up a password for the 'rm' command?

There's no easy way to set up such a password on the rm command itself, not without a lot of code hacking that'll probably break things like apt-get installing packages and removing files, and making ...
Thomas Ward's user avatar
  • 74.4k
44 votes

Why can this command unlock my lock screen without password? (Security question)

In both use-cases, these seem like secondary issues. If somebody can run gnome-screensaver-command or loginctl as you, remotely, your home, your $PATH, essentially your whole computer —from the ...
Oli's user avatar
  • 293k
40 votes
Accepted

USB shared among students: set a password just for writing

Because this drive is going to be used on systems you do not control, or that are not Linux and don't otherwise support the Linux permissions scheme, you're a bit out of luck here. There's no real way ...
Thomas Ward's user avatar
  • 74.4k
40 votes
Accepted

sudo: 3 incorrect password attempts - can root see the password in clear text?

No, passwords are not logged by default. This would be a security problem, as logs may be read by other administrators, allowing impersonation of the user in case of a slightly mistyped password.
vidarlo's user avatar
  • 22.7k
37 votes

chsh always asking a password , and get `PAM: Authentication failure`

Try this: sudo chsh -s $(which zsh) $(whoami)
Roitmaster's user avatar
36 votes
Accepted

SSH without password with non-default identity file location

It fails for the same reason that ssh-copy-id failed the first time - i.e. because you have chosen a non-default location for the identity file. You can resolve it in the same way, by adding -i /home/...
steeldriver's user avatar
34 votes
Accepted

Forgot passphrase (encrypted hard drive), how can I use my computer again?

If you can't remember the password, then that's all she wrote. All you can do is install a new OS. You don't need to enter recovery mode to do that. Just boot up the live USB and carry out the ...
Alcuin Arundel's user avatar
34 votes
Accepted

How can I get GPG Agent to cache my password?

In addition to setting up the cache times in gpg-agent.conf, you also have to make sure GnuPG is actually interfacing the gpg-agent. GnuPG 2 and upwards generally does, but the GnuPG 1 branch does not....
Jens Erat's user avatar
  • 5,043
32 votes
Accepted

Can root see my encrypted /home folder?

Short answer: Yes and no. Can root see my encrypted /home folder? Yes. As long as you are logged in, root as well as any sudo user can see your decrypted files. Also, when you wake up from sleep, ...
pLumo's user avatar
  • 26.9k
31 votes

How do I make Ubuntu accept a short password?

You can simply run sudo passwd username in a terminal. Root is allowed to ignore the password rules, and you can enter whatever you want. You can also edit /etc/security/pwquality.conf to suit your ...
vidarlo's user avatar
  • 22.7k
30 votes

How can I clear my cached gpg password?

GPG: In a single command: gpg-connect-agent reloadagent /bye SSH: for ssh agent you probably want those two: ssh-add -D #delete identities ssh-agent -k #kill ssh-agent
DrBeco's user avatar
  • 492
29 votes

sudo: 3 incorrect password attempts - can root see the password in clear text?

Login attempts successful and unsuccessful are logged in /var/log/auth.log Example of a successful attempt: Oct 23 21:24:01 schijfwereld sudo: rinzwind : TTY=pts/0 ; PWD=/home/rinzwind ; USER=root ...
Rinzwind's user avatar
  • 299k
28 votes
Accepted

I can omit the last few characters of my password on Ubuntu 14.04

If you don't have administrator access, there's not much you can do. That said, this seems to be because of administrator incompetence. This sounds suspiciously similar to password encryption using ...
muru's user avatar
  • 198k
27 votes

How do I run specific sudo commands without a password?

Sorry but there's so much confusion over this and some really complicated answers, that i feel i must weigh in here before someone misunderstands and does something crazy. Using visudo!! visudo Add ...
Owl's user avatar
  • 546
26 votes

mysql doesn't ask for root password when installing

After the installation just: sudo mysql (yes, no user no pass) You are now in the mysql console. Execute: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'my_new_pass'; FLUSH ...
DimiDak's user avatar
  • 631
25 votes

Is it possible to use secret-tool to lookup existing seahorse passwords?

I made a utility, lssecret, that lists all items using libsecret, including all GNOME Keyring items. It looks like libsecret automatically adds a key value pair for every item, but Seahorse doesn't ...
Vaelus's user avatar
  • 693
25 votes
Accepted

How to save SSH options and connections in Ubuntu?

You can use a per-user ssh-config file located in ~/.ssh/config or a system-global one in /etc/ssh/ssh_config that stores the basic settings for each connection. Example: Host example_host ...
hecke's user avatar
  • 426
25 votes
Accepted

Can I view the password of a mounted encrypted volume?

Full disk encryption uses cryptsetup to manage LUKS encrypted devices and not ecryptfs and ecryptfs-unwrap-passphrase is a part of ecryptfs-utils which I guess is not installed on your system and has ...
Ravexina's user avatar
  • 55.7k
25 votes
Accepted

SSH without password does not work after upgrading from 18.04 to 22.04

The RSA SHA-1 hash algorithm is being quickly deprecated. There is a workaround for re-enabling RSA at SSH-RSA key rejected with message "no mutual signature algorithm" . To fully resolve ...
karel's user avatar
  • 115k

Only top scored, non community-wiki answers of a minimum length are eligible