Skip to main content

Questions tagged [password]

Passwords are used to check user identity or authenticate, for example log in to a user account, to gain elevated privileges with `sudo` or with encryption. Use this tag when asking about using and managing passwords, and understanding where and when they are needed for system security.

Filter by
Sorted by
Tagged with
539 votes
13 answers
1.1m views

Execute sudo without Password?

Inspired by this question.... I am the sole person using my system with 12.04. Every time I issue a sudo command; the system asks for the user password (which is good in its own way). However I was ...
BhaveshDiwan's user avatar
  • 11.1k
329 votes
2 answers
1.1m views

Change password on root user and user account

If I change the password for the root user is that going to automatically change the password for the user account? I found this link for root: WikiHow: How to Change the Root Password in Linux ...
Alisha's user avatar
  • 3,401
287 votes
3 answers
403k views

How do I run specific sudo commands without a password?

On one particular machine I often need to run sudo commands every now and then. I am fine with entering password on sudo in most of the cases. However there are three sudo commands I want to run ...
BhaveshDiwan's user avatar
  • 11.1k
166 votes
6 answers
199k views

How to set a short password on Ubuntu?

When I install the Ubuntu, I set a short password(<4). Now I want to change the other short password by "passwd" or change passphrase on "Password and Keys" program, it needs a password >4 char.
Lei Ming's user avatar
  • 1,799
133 votes
2 answers
244k views

How can I allow SSH password authentication from only certain IP addresses?

I'd like to allow SSH password authentication from only a certain subnet. I see the option to disallow it globally in /etc/ssh/sshd_config: # Change to no to disable tunnelled clear text passwords #...
ændrük's user avatar
  • 77.2k
130 votes
6 answers
558k views

Can I set my user account to have no password?

If I attempt to change my password to nothing by opening "User Accounts", the "Change" button remains greyed out: How do I change my password to be empty? I know you can set Ubuntu to automatically ...
Flimm's user avatar
  • 42.4k
108 votes
7 answers
188k views

How to change/disable password complexity test when changing password?

I know that it is a "bad" idea, I know that it is not secure, I know. I searched the net for an answer and all I saw was whining that it's not good. But I like using Linux because it lets me ...
wobmene's user avatar
  • 2,011
101 votes
7 answers
197k views

How to change the password of an encrypted LVM system (previously alternate Installation, now advanced feature)?

I installed Ubuntu 11.10 with the alternate CD and encrypted the whole system (except boot) with the encrypted LVM. Update 2020: Encrypted LVM can be selected at the Installation type step of the ...
Filbuntu's user avatar
  • 13.2k
99 votes
8 answers
179k views

How to encrypt individual folders?

Let's say that I have a folder, within my Documents folder, that has files I want no one to access without a password. Is there a way to lock down that folder so that it's password protected / ...
Gonzoza's user avatar
  • 2,508
84 votes
9 answers
150k views

Find the password for the currently connected wireless network

I want to find the password for the wireless network that I am currently connected to (and I entered the password when connecting to the network). How can I do this in Ubuntu?
Anderson Green's user avatar
72 votes
4 answers
54k views

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

Currently, whenever I git pull or git push to a http(s) repository, I get the following: $ git pull Username for 'https://gitrepos.reposdomain.com': [email protected] Password for 'https://me@mydomain....
tudor -Reinstate Monica-'s user avatar
71 votes
7 answers
146k views

mysql doesn't ask for root password when installing

I used apt install mysql-server to install MySQL on Ubuntu 16.04 but during the installation, it did not ask for root password. After installation I got ERROR 1045 when I tried to login as root and ...
spqa's user avatar
  • 823
70 votes
11 answers
81k views

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

Today I tried to switch to another shell. First I tried fish, and used chsh -s fish to change fish to default. After some time I found it cannot use ~/.bashrc (&& needs to be replaced by and)....
Mithril's user avatar
  • 2,411
63 votes
15 answers
42k views

How can I easily encrypt a file?

Is there any simple (IE: right click in Nautilus) way to password protect a particular folder/file in Ubuntu? I've got a few files containing sensitive info and I'd much prefer that if/when I leave my ...
Dante Ashton's user avatar
  • 5,525
59 votes
6 answers
18k views

How can I prevent someone from resetting my password with a Live CD?

Recently one of my friends came over to my place, within 15 minutes he hacked my account using a Live CD and reset the password in front of me. I was baffled to see such a thing. Please guide me to ...
coder's user avatar
  • 3,621
59 votes
4 answers
61k views

Disable password request from suspend - 18.04

How can I disable password request after suspend in Ubuntu 18.04? I have already turned off the screen lock but that didn't fix it. I am new Ubuntu user. There seems to be lots of information on how ...
Rookie's user avatar
  • 593
59 votes
2 answers
11k views

Why does Ubuntu have a disabled root account?

Ubuntu disables root login for "security reasons". However it seems to me that it doesn't help with security at all. If an intruder manages to get your login password for Ubuntu, then he also has the ...
TellMeWhy's user avatar
  • 17.6k
56 votes
17 answers
60k views

Can you recommend a password generator?

I was hoping someone could recommend a good password generator. Extra props to the person who can name one that gives you a mnemonic to remember it as well.
myusuf3's user avatar
  • 34.5k
56 votes
5 answers
451k views

How to change root password in ubuntu?

I am trying to change root password in my Ubuntu system. This is what I did: ashot@ashot-desktop:~$ sudo passwd root passwd: Authentication token manipulation error passwd: password unchanged ...
Ashot's user avatar
  • 661
55 votes
11 answers
58k views

How to extract saved password from Remmina?

I don't remember my password for one of my servers. I have a working connection saved and want to get the password from it. From Remmina faq: Q: How are my passwords stored? Are they secure? ...
linuxnewb's user avatar
  • 551
54 votes
4 answers
58k views

Ignore "Bad: new and old password are too similar"

I receive this message when trying to change my password: "Bad: new and old password are too similar" The passwords' "similarity" is irrelevant for my needs, so I'd like to bypass this. I tried ...
user999's user avatar
  • 541
53 votes
2 answers
115k views

Disable root account in Ubuntu?

I was asked for root credentials to setup my printer in Ubuntu. This seemed to be caused by a bug. And the suggested workaround is to create a root password. Since it is default that no root password ...
NES's user avatar
  • 33.3k
53 votes
1 answer
2k views

How do I stop the constant requests for a password?

I am 70 years old and losing my memory. The only other person here is my wife, who I trust with everything. I have Ubuntu set to automatically log me in when I boot the system. I need to stop the ...
Tom D's user avatar
  • 589
52 votes
4 answers
146k views

Adding NOPASSWD in /etc/sudoers doesn't work

On 14.04 here. I SSHed into my machine, added the following line to /etc/sudoers: myuser ALL=NOPASSWD: ALL And then tried running: sudo mkdir /etc/blah ...and I'm being asked for my password. ...
Zac's user avatar
  • 623
51 votes
3 answers
220k views

Can't SSH in as root

I'm using the default installation of openssh-server for my Ubuntu 14.04 server. I can connect through the console as root like normal, with my username and password. When I try to SSH with the same ...
vaindil's user avatar
  • 938
51 votes
1 answer
142k views

How do I remove Ubuntu's password requirement? [duplicate]

Here are my circumstances: I am running Ubuntu 12.04. I have one user account. I absolutely hate the password requirement. How do I disable this requirement such that my Linux computer will behave ...
Melab's user avatar
  • 1,678
51 votes
2 answers
149k views

what is the default password when you create new user in ubuntu?

I have created a new user by using useradd command e.g.: sudo useradd acreddy Then new user is created but it is asking for a password what is the password?
a-c-sreedhar-reddy's user avatar
48 votes
3 answers
763k views

How to change root password for mysql and phpmyadmin

I've set up mysql and phpmyadmin and chose not to set a password when installing hoping that once set up i could login with root and no password but i get the following error from phpmyadmin: Login ...
Jon's user avatar
  • 585
46 votes
13 answers
29k views

Password Management Applications?

I have some passwords that are long, complicated and hard to remember. I would like to use a password-manager application to save all of my passwords instead of saving them using a text editor. ...
Achu's user avatar
  • 21.3k
45 votes
2 answers
47k views

Force the user to change their password at first login

When I add a new user to my system I set a password and tell it to the new user. If the user doesn't like it, he/she can change it. However in my opinion it is better to force the user to change his/...
qbi's user avatar
  • 19.2k
45 votes
4 answers
46k views

How do I get passwords from the keyring in the terminal for usage in scripts?

When you have a LUKS encrypted drive in your computer, Nautilus or Nemo will show it under Devices as a drive with a little lock on it. When you click it, you need to enter a password. If you choose ...
Redsandro's user avatar
  • 3,704
41 votes
4 answers
52k views

How can I clear my cached gpg password?

I've tried: the SIGHUP method --> no succes the cache timeout in gpg-agent.conf --> it seems that this file is not read, althougt I have the 'use-agent' line in gpg.conf What should I do ?
Thomas Produit's user avatar
40 votes
8 answers
68k views

Nothing shows up in the terminal when I type my password

When I'm about to install a program in the terminal it wants the password: [sudo] password for xxx: But when I start to type my password nothing happens. What should I do?
Lazloinn's user avatar
  • 401
40 votes
8 answers
90k views

How to set user passwords using passwd without a prompt?

I am writing a script to add a large amount of users to a system. Part of this involves setting default passwords for each user. How can I set users' passwords without it prompting me for the password ...
Jake Petroules's user avatar
40 votes
1 answer
81k views

Where are passwords saved?

This is a weird question to ask, but where are the passwords saved? I mean they must be somewhere for comparing every time. So where are system and network passwords saved?
Nirmik's user avatar
  • 7,898
39 votes
9 answers
170k views

How to find out root password for installing software

I'm trying to install the NetBeans IDE in my Ubuntu and in the process it's asking for my root password which I don't remember. I know my sudo user password. How can I recover my root password?
Hemanth's user avatar
  • 1,045
39 votes
3 answers
560k views

How do I set the root password so I can use su instead of sudo? [duplicate]

Possible Duplicate: How to know my root password? I'd like to define a password for root so that I can use su directly, without having to prepend it with sudo. And because I'd like to log in as root ...
Zignd's user avatar
  • 10.8k
39 votes
7 answers
277k views

MySQL Access denied for user 'root'@'localhost'

In my server, everytime I try to access MySQL I get the error: Access denied for user 'root'@'localhost' (using password: NO) when I try mysqladmin -u root -p password I get Access denied ...
user253867's user avatar
37 votes
2 answers
20k views

Disable password access through SSH?

I'm setting up a server for backing up my desktop box remotely. I want to prevent remote password access to the server, permitting only users with private keys (AKA my desktop box) to access it. How ...
Evan Kroske's user avatar
  • 2,058
36 votes
2 answers
74k views

Samba does not accept my password

I have installed Samba onto Ubuntu 12.04 Server but I can't login as it says my password is incorrect but I am the only user so there are no other passwords. I have tried changing the password ...
Luke's user avatar
  • 361
36 votes
2 answers
23k views

How can I get GPG Agent to cache my password?

I'm a developer, and I commonly sign my Git commits with my GPG key. I've been able to get GPG Agent working properly on OSX so that it only asks me for my password once per day, but I'm having ...
rdegges's user avatar
  • 463
36 votes
2 answers
41k views

How do I prevent PolicyKit from asking for a password?

For years, I've had the following in my sudoers file: scott ALL=NOPASSWD: ALL For those who don't know, this prevents sudo and friends (gksudo, etc.) from asking for a password. However, over the ...
Scott Severance's user avatar
35 votes
4 answers
45k views

Yubikey Two-factor Authentication Full-disk Encryption via LUKS

I recently acquired a Yubikey Neo - a nifty little hardware second factor authentication device. It's primarily intended for use with One Time Passwords, and the emerging U2F protocol - but since ...
seanlano's user avatar
  • 3,056
35 votes
1 answer
28k views

How to change the gpg key of the pass password store

One can use pass as a password manager to store passwords. One thing that is not clear from the manual is whether it is possible to easily change the gpg key that is used. One initializes the ...
willeM_ Van Onsem's user avatar
35 votes
1 answer
54k views

Why was I asked to create a password in order to disable secure boot on initial installation of Ubuntu 16.04?

On initial installation of Ubuntu 16.04, I checked off "Install third-party software" and, underneath it, I was prompted to check off another option which would allow the OS package to automatically ...
Cosmo's user avatar
  • 531
33 votes
2 answers
30k views

How do I force a user to change the password periodically?

I'm by far no network admin, but I know on the PC I use at work, we need to change our passwords every 30 or 45 days. Is there something like that on Ubuntu that can prompt users to change their ...
Muhnamana's user avatar
  • 1,816
33 votes
6 answers
60k views

Annoying KDE Wallet Service popup: The application 'kded5' has requested to open the wallet 'kdewallet'

On my Ubuntu 18.04 Bionic Beaver LTS, the following popup appears often when working with Docker and I'm not purposely doing anything that would require a password: KDE Wallet Service: The ...
V-R's user avatar
  • 485
32 votes
3 answers
67k views

22.04 - Remote Desktop Sharing authentication password changes every reboot

I am trying to setup remote desktop sharing for a Ubuntu 22.04 desktop system with the intended purpose of running this system headless without a screen connected. I am able to successfully VNC to the ...
LRB's user avatar
  • 321
31 votes
6 answers
122k views

How do I make Ubuntu not ask me for my password?

I'm confident that I do not need a password for my computer. How do I remove passwords for things like when the screensaver activates and installing software?
fent's user avatar
  • 413
30 votes
2 answers
189k views

Ubuntu server default password using Raspberry Pi image?

I've just installed Ubuntu Server on my Raspberry Pi 2 B and the download page says that the default username and password are both "ubuntu", but the system says that the password is incorrect. What's ...
Gianmarco's user avatar
  • 411

1
2 3 4 5
55