Questions tagged [password]

Questions regarding password-based authentication and password management

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

How to change the timeout between incorrect password attempts in SDDM?

When entering a password, either in terminal or on login screen (in my case SDDM), the default timeout between incorrect attempts is around 2 or 3 seconds. I want to change it to something lower as I ...
lightproof's user avatar
0 votes
0 answers
30 views

Getting password ssh prompt after broken connection

I have the pubkey installed on the server I want to connect, and it works like a charm most of the times. However, every time I close my computer without first closing the connection, once I try to ...
Alberto's user avatar
  • 101
0 votes
0 answers
67 views

need to see what I'm typing (passwords)

I have had lots of antidepressants tested on me, and while that's been stopped in my horror I still have hands that do what they want alot. I need to be able to see my password when prompted by my ...
edcozz's user avatar
  • 1
1 vote
0 answers
60 views

How to view Wi-Fi passwords in plain text from the command line in Linux?

I'm connected to internet over ethernet but have saved wifi passwords. The folder /etc/NetworkManager/system-connections is empty. This command shows nothing (replace variable with desired uuid): # ...
Smeterlink's user avatar
0 votes
0 answers
39 views

Setting user passwords via kernel parameter

What is the correct syntax to use these bits of information from systemd manual: systemd-sysusers(8) will look for the credentials passwd.hashed-password., passwd.plaintext-password. and passwd.shell....
gcb's user avatar
  • 400
0 votes
0 answers
48 views

Unexpected password authentication problem

I have been using a properly configured system with no authentication changes for over a month now. And suddenly I get this error message: Sorry, password authentication didn't work. Please try again. ...
someonewhoknows's user avatar
0 votes
1 answer
37 views

IceWM. How to lock screen after laptop lid is closed?

I use the IceWM window manager. I would like the screen to lock after closing the laptop lid. I've found a couple of guides that looked promising (1, 2) but unfortunately didn't work for me. Maybe ...
Fyodor's user avatar
  • 3
0 votes
2 answers
26 views

pkexec asking for password multiple times

I have an application foo that starts other applications (bar and baz) under the hood.  I start foo using pkexec and I have written a policy file for foo with: <allow_any>yes</allow_any> &...
Frank's user avatar
  • 131
1 vote
0 answers
68 views

UBUNTU - I am not asked for password after logging in with fingerprint

I am running Ubuntu 22.04 with GNOME on a Dell XPS 13. I use the fingerprint as the main identification method, so I don't have to type the password each time I use sudo. The expected behavior is to ...
Claudio's user avatar
  • 111
0 votes
1 answer
58 views

dhcpcd times out at "waiting for carrier"

When I try to connect to wifi, dhcpcd gets stuck, # dhcpcd wlxf42853190543 dhcpcd-10.0.6 starting DUID 00:01:00:01:2d:1b:d8:8a:f4:e8:53:d9:78:b1 wlxf42853190543: waiting for carrier and times out. I ...
Dan Jacobson's user avatar
-1 votes
1 answer
84 views

How do I password-protect PDF file so that it may be opened in Windows with only Adobe installed? [duplicate]

I am running Ubuntu Linux and would like to password-protect some pdf files such that the recipient, running Windows, can open them with nothing more than Adobe, if they know the password. Can this ...
Steve Cohen's user avatar
1 vote
1 answer
62 views

How to migrate my encrypted passwords to my new laptop

I'm using pass to store my password. Passwords are stored in ~/.password-store. This has been working for 10 years, but now I have a new laptop. I'm trying to migrate the passwords by copying what I ...
JRR's user avatar
  • 121
0 votes
0 answers
31 views

Should you keep the (encrypted) gpg secret key in a file to export the password store on another machine?

I am using gpg and pass to manage my password (on my Macos). I want to read the keychain contained in .password-store on another machine. As there was no public or private key listed in the gpg on the ...
ecjb's user avatar
  • 403
0 votes
1 answer
89 views

expect script sending password before prompt

I have written a small expect script for automatic ssh to remote server. But sometimes my expect script don't work. Actually it sends password before password prompt. Here is my script #!/usr/bin/...
sachu's user avatar
  • 3
0 votes
0 answers
40 views

Limit shellinabox users to specific accounts

Setup and target I am running a server with ssh and shellinabox and would like to restrict login via shellinabox to one specific user only. Reasoning and approach For security reasons, the main user ...
FelixJN's user avatar
  • 13.6k
1 vote
0 answers
88 views

How to make policykit/polkit ask for YES or NO prompt instead of password?

How to make policykit/polkit ask for YES or NO confirmation instead of asking for the password? I don't want to remove the polkit prompt, just convert it to a confirmation dialog. Setting the password ...
Felipecconde's user avatar
0 votes
0 answers
22 views

In the nullmailer `remotes` configuration file, how do I quote single quotes in the password?

I'd like to use nullmailer to have my Debian (bullseye and bookworm) systems send system-generated email messages to the appropriate recipient. nullmailer is configured (among others) by the file /etc/...
Binarus's user avatar
  • 3,360
0 votes
0 answers
54 views

Encrypt database password in shell script [duplicate]

I have a small script to compile an Oracle Form, in this script i login to the database and I would like to have the password in this script encrypted. for i in `ls *.fmb` do echo Compiling Form $i ......
rkonings's user avatar
0 votes
1 answer
57 views

I've forgotten my password but am logged in--what tools can I use to assist in recovery and limit damages?

I have an encrypted hard drive. The hard drive, root user, and primary user all share the same password. I have successfully logged in but seem to have forgotten the password. I'm looking to limit the ...
mpr's user avatar
  • 1,134
-3 votes
4 answers
135 views

Strong passwords vs ransomware for Linux login

Let's assume I have connected a Linux computer to my local network. There is one login to this computer with a strong password that only I know. Can ransomware that has infiltrated my network (via ...
fkarger's user avatar
0 votes
2 answers
147 views

Cannot sudo a custom function in a zsh script

I want to copy my .dot files (and not .dot directory) in a directory. For this my OS (MacOS) asks me the user password. I created a functions that does that and want to incorporate it in a bigger ...
ecjb's user avatar
  • 403
0 votes
1 answer
135 views

Log in to remote server by using a generated public key

I have a zsh script with which I logged into a remote host to copy some folders. The system asks me each time to give the password of the local host which I want to bypass, otherwise I have to enter ...
ecjb's user avatar
  • 403
0 votes
1 answer
145 views

Disable password login but keep sudo -v?

I'm on a Raspberry Pi, but I don't think this question is specific to Raspberry Pi OS. I only use an SSH key to log in as user pi. I have a script that calls sudo -v which currently asks for the ...
AndreKR's user avatar
  • 1,100
-1 votes
1 answer
228 views

Can I disable password login but still allow sudo?

While answering comments I realized what I should really be asking, so I asked a new question. I'm on a Raspberry Pi, but I don't think this question is specific to Raspberry Pi OS. I only use an SSH ...
AndreKR's user avatar
  • 1,100
0 votes
0 answers
40 views

Solaris-compatible password managers

I am working on a Solaris machine (Solaris 11.4.26.75.4, sun4v architecture) and would like to use a password manager to centralize storing various passwords. The password manager has the following ...
bproxauf's user avatar
  • 111
-2 votes
1 answer
369 views

Root password shows incorrect in terminal but is correct in system [duplicate]

I am using debian 12.1.0. I setup a root password while installing but when I go in terminal and use sudo, it prompts me to enter password. I enter it and it shows incorrect. Then I went to settings ...
Yubin Dhami's user avatar
0 votes
0 answers
274 views

remove password from libreoffice calc or excel file in terminal

I like passwords and security but once a file is safely on my encrypted drive it can become an annoyance and overkill having it there. The following command nicely and cleanly removes the password ...
cardamom's user avatar
  • 550
1 vote
0 answers
491 views

I can no longer run sudo commands - password not accepted

I have a server running Ubuntu which has been online for over a year. I connect to the server through SSH using my own user (not root) and using SSH keys (passwordless login). This user is part of the ...
T_M100's user avatar
  • 11
1 vote
1 answer
350 views

Pass Password-Manager for Aerc eMail-client

I use Aerc eMail-client on Archlinux. I have an gmail-account, which I was setting up like this: https://oren.github.io/articles/text-based-gmail/. So I integrated the special password-App. How can I ...
Denis's user avatar
  • 21
0 votes
0 answers
39 views

How to calculate the password hash in /etc/shadow [duplicate]

I have the following line in my /etc/shadow file (SALT and HASHED_PASSWORD are not real values for obvious reason). And I understand $6 means SHA512 is used. testuser:$6$SALT$HASHED_PASSWORD:19591:0:...
DrizzleX's user avatar
  • 125
0 votes
1 answer
60 views

exit ssh when prompt for new password

I am looking for a way to exit ssh when password expires. I have a script that is checking few things on all VMs in infrastructure. Unfortunately there are few VMs with password auth method.
saon's user avatar
  • 11
0 votes
0 answers
152 views

Difference between chage -I and passwd -i

I'm looking into ways to read and write expiry dates for temporary passwords (i.e.: If we grant users a temporary password and they don't log in and change the temporary password within N days, then ...
MrArsGravis's user avatar
0 votes
0 answers
50 views

Git credential manager to store credential from salsa.debian.org

I am cloning multiple repositories from salsa.debian.org with https, I am wondering how I can use git credential manager to store the password for this site? Every 100 or so repositories that I clone, ...
nerd's user avatar
  • 101
0 votes
1 answer
30 views

How to change the private key passphrase in lsh?

info lsh manual covers how to create a keypair and protect the private key with a passphrase. The manual does not tell how to change the passphrase or how to decode the private key, which is stored as ...
Roman Riabenko's user avatar
0 votes
1 answer
264 views

With hdparm, why do I need to set a password before secure-erasing the drive?

To use hdparm's --security-erase, I need to provide a password; and for that to work, I need to first set a password. Why is that? i.e. if I've never set a security password for my drive, why wouldn't ...
einpoklum's user avatar
  • 9,525
1 vote
0 answers
50 views

How to portably check for `crypt` failure?

Some systems are unfortunately integrating a new crypt implementation from libxcrypt which, when the function fails, instead of returning a null pointer, returns a "failure token" string ...
Kaz's user avatar
  • 8,476
0 votes
1 answer
458 views

Cannot log into user account on LightDM nor TTY

After fixing pacman using a live USB installation, something peculiar occurred. When I attempt to log into my user account on the LightDM login screen, it informs me that I have entered the wrong ...
Post Self's user avatar
  • 251
0 votes
1 answer
398 views

What's the difference between account expiry(inactive) and account becoming locked?

Source: https://linuxopsys.com/topics/chage-command-in-linux The image is taken from the book Linux with Operating System Concepts. What I don't understand here is that what is -E option? Is it the ...
achhainsan's user avatar
1 vote
2 answers
4k views

Cannot login to newly installed Debian 12, stuck on the login screen

I’ve successfully installed Debian 12 and upon reboot, I’m attempting to login to the desktop environment for the first time. After I type in the password on the login screen, the following screen ...
Chairman Meow's user avatar
0 votes
1 answer
414 views

PAM password "minlen" setting not enforced

I installed Ubuntu 18.04 and manually modified /etc/security/pwquality.conf with the following settings: minlen = 14 minclass = 4 (without # at the start of the line). However, when I add a new user ...
hutcruchi's user avatar
  • 339
2 votes
2 answers
471 views

How to prevent Centos from recovery password in remount - Grub?

As you know, recovering the root password of CentOS is easy. You can enter 'E' in GRUB and try to remount. Is there a way to prevent any password recovery? I want to limit all general ways of ...
Nimafire's user avatar
1 vote
2 answers
2k views

How can I encrypt a password in a bash script?

I created a shell alias that runs a simple shell script. The script is shown below, it sshs into another Linux machine: #!/bin/bash sshpass -p 'P@ssw0rd' ssh username@hostname I would like to encrypt ...
OpenSourceSingh's user avatar
0 votes
0 answers
409 views

gpg not prompting a password for file decryption

I can encrypt a file with gpg 2.3.8, (not using keys), but I can't decrypt it. [user@test ~]$ gpg -c tarredzip.tar.gz That prompts for a password (I'm just using "test", so I get a warning ...
account-minute's user avatar
0 votes
2 answers
870 views

Triggering "Reset Password" option in macOS Ventura for a specific account from the command line

I ran this command first to open the "Users and Groups" preferences on macOS Ventura: open /System/Library/PreferencePanes/Accounts.prefPane Next, I want to run a command that triggers the &...
Tav's user avatar
  • 11
0 votes
0 answers
14 views

ubuntu xfce only ask for pw to unluck when not on private wifi

Is there any software that can make it so that my ubuntu xfce only asks for password to unluck my screen when i am not on my private wifi? I have tried scripts but i would much prefer a legit software ...
Morten's user avatar
  • 1
0 votes
1 answer
8k views

Debian all sudo commands fail with 'user is not in the sudoers file. This incident will be reported.' error [duplicate]

I tried out Linux for the first time. When I installed Bullseye Debian a few hours ago I created a root account and user account. Both of them have a password. However whenever I try to use sudo to ...
ykg39958's user avatar
1 vote
1 answer
937 views

Is there any way I can view my old passwords?

I forgot my previous password on my Ubuntu system, so I found this guide on how to reset it using the GRUB menu. But now I really need the previous password for something else. Is there any way I can ...
Pizzanerd2's user avatar
-1 votes
1 answer
218 views

SSH: Use key-pair authentication, but if not present default to password

I am hoping to find a way to configure our systems so that it will work with ssh-key-pair authentication, but if not present, fail over to requiring a password, and fail login if incorrect password is ...
jewettg's user avatar
  • 107
0 votes
1 answer
495 views

Changing/removing password in a .qcow2 virtualization

I downloaded a .qcow2 image from cloud.centos.org, and have been attempting to change the password so I can log into it when loaded into a virtual environment. I tried editing /etc/shadow using virt-...
Michael VanDeMar's user avatar
4 votes
2 answers
1k views

Entries in /etc/passwd are all duplicated (and entries in /etc/shadow are also all duplicated)

Checking the two files /etc/passwd and /etc/shadow on a standard Linux distro, it appears all entries are duplicated in both files: in /etc/passwd, all entries are duplicated (2 lines for each ...
Glendalough's user avatar

1
2 3 4 5
25