Questions tagged [password]

Questions regarding password-based authentication and password management

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

sha512 unix variant format [duplicate]

If a password hash starts with $6$, what format is it (Unix variant)? thats the question i have been battling with for a while on tryhackme beginners learner path, any help will be appreciated.
1
vote
1answer
36 views

Verify password of current user, even when it’s root

Is there a simple command to verify the password of the current user? The command $ su -c true $(id -nu) suffices for non-root users. However a root user doesn’t need to verify his identity when ...
0
votes
1answer
63 views

'su user' behavior differs when logged in locally vs via ssh

On my Ubuntu 18.04 system, there's a user called myuser without a password: tester@box:~$ passwd -S myuser myuser NP 03/31/2020 0 99999 7 -1 When I log in to the machine locally and switch to myuser ...
0
votes
1answer
47 views

sshpass alternative in linux shell/bash code

These are standard sshpass commands to read password from file or as argument. user@linux:~$ sshpass -f pwd.txt ssh admin@server admin@server:~$ user@linux:~$ sshpass -p P@55 ssh admin@server admin@...
0
votes
0answers
17 views

SSH Log in issues

Attempting to log in a ssh terminal using: ssh name@ipaddress There is password to access it, but after typed command it doesn't ask for just get blank space below (as every line hasn't linux@user ...
1
vote
1answer
28 views

Trouble trying to set no password for certain cli commands in linux

Computer Environment OS: Arch linux - Manjaro Shell: zsh AIM I'm trying to enable the following commands to not require a password input for my main user account: ab sudo systemctl stop ...
0
votes
0answers
28 views

How to make everything run with password

Is there a way to make all commands and all apps run after requesting a password of root so that will increase security Against hackers because no command run without root password?
1
vote
1answer
41 views

What is this password prompt after logging in to Debian 9?

Every time I restart the system and log in, a password prompt pops up: In most cases, this happens as soon as I open Chromium (it actually seems to freeze up the browser), and usually clicking on "...
0
votes
0answers
27 views

Change password expiration warning message

I would like to change the password expiration warning message on CentOS 7.6. We are using Kerberos krb5 and want to add some instructions inside the default warning message, but I couldn't find ...
0
votes
0answers
15 views

SLES 11 Root account password is not Expiring

I want to expiry the root password after Max days and on next login want user to update the new password. But even after the password is expired, it sis not prompting the user to change the password ...
0
votes
0answers
23 views

Migrating passwords from 'normal' Ubuntu to Kubuntu

I decided to give KDE a try, and definitively I will keep using it from now on. However, I have my passwords saved in Opera and now when I launch it, it just says "The application Opera has requested ...
0
votes
1answer
30 views

Unable to pass argument to argon2 command

According to the manual of argon2 (Debian package), it says to pass the password from standard input. However, when I follow the instructions and attempt echo -n "password" | argon2 salt "...
0
votes
0answers
40 views

PureOSL Luks no longer accepts password

I need help with luks not recognizing my password all of a sudden. I'm using pureos on a librem and I was having trouble getting wine32 installed so one of the things I did was add the debain main ...
1
vote
0answers
25 views

Import KeePass database with key file to Pass

I have a KeePass database that is protected with a password and a key file and I'm trying to import it into Pass with a script. Unfortunately, the key file is giving me trouble. As far as I know, pass-...
0
votes
1answer
32 views

No password prompt for serial connection

I want to setup a password prompt (root user) when login through minicom (serial connection). After running passwd command (connected through ssh), i can setup a password for the root user. After that ...
0
votes
1answer
16 views

luks recovery of key safety hole

i found out that if you forget one of your 1-8 passwords for luks it can still be possible to recover it as a keyfile and then set a new password with that keyfile without remembering your old ...
0
votes
1answer
29 views

Locked out of remote machine when changing password

TLDR : Not able to login after resetting the password on a remote machine. The machine is on a truck that's 1000kms away. I have a remote ubuntu machine which is connected through a service called ...
1
vote
1answer
72 views

Linux - create user with no password (login without password prompt)

I found many articles mentioning that user has no password after using passwd -d. While on some of my systems it indeed works (I can su from unprivileged accounts to them without giving password) on ...
0
votes
0answers
20 views

Does samba have a chage inactive equivalent?

I am currently working with a slapd(ldap) + samba server, and trying to automatically disable accounts x amount of days after their password expires. chage -Inactive does exactly this, which works ...
0
votes
0answers
16 views

Does Samba have anything similar to /shadow/ sp_inact?

I am running Samba with slapd and I was wondering if there is any function similar to sp_inact — days after password expires that account is considered inactive and disabled. I need to disable ...
0
votes
0answers
21 views

Full-disk encryption password fails when booting kernels newer than 5.2.0

My full-disk encryption password has stopped working on newer kernels. At the grub menu I can boot to 5.2.0 and the password works; on newer kernels (e.g. 5.3, 5.4) it does not boot (and gives an ...
0
votes
0answers
62 views

Sniff password entered with read

I'd like to show that entering passwords via read is insecure. To embed this into a half-way realistic scenario, let's say I use the following command to prompt the user for a password and have 7z¹ ...
0
votes
0answers
19 views

adduser performs differently with the --disable-password

I am writing a shell script to add a user to the linux system. The intent is to pass via cmd arg, the username and generate a strong password in the script. Then I would email the password to them. ...
0
votes
0answers
49 views

Bash script to make passwordless connection

I want to make passwordless connection with help of bash scripting. The requirement is that user has to just provide password. Point to be considered: 1) There is no generated public/private key in ...
0
votes
0answers
23 views

Weird behaviour in per-user SSH password authentication

I'm using NixOS. Here's my SSHd config: services.openssh.enable = true; services.openssh.passwordAuthentication = false; services.openssh.challengeResponseAuthentication = false; services....
1
vote
1answer
55 views

'pass': Easiest way to synchronize the password-store between multiple machines

I moved to the pass password manager and I'm trying to integrate it as well as possible into my workflow. However, I'm not familiar with deeper synchronization/version-control concepts (git, password ...
3
votes
1answer
61 views

Why does /etc/shadow uses user name instead of uid?

/etc/shadow contains the username, but not the uid. Is there a specific reason, why a char * field was chosen over an int? For direct username->password check this might be quicker, but for ...
0
votes
2answers
34 views

Delete file using sudo along with password in the same command

I am using the below command to delete the file: $ echo <Password> | sudo -S -u <User> rm -f <Filename> rm: cannot remove ‘<Filename>’: Permission denied Please let me know ...
0
votes
0answers
29 views

Default password prompt change in linux unix

I want to change default password prompt in Linux. Instead of below default prompts, I want to customize the message. What Linux file I need to modify to effect these change? New password: Retype ...
0
votes
0answers
53 views

kwallet get password as root user

I'm currently setting up a borgmatic backup job that should get the repository from the kwallet using the following command: kwallet-query -r systeembackup kdewallet -f borg But unfortunately it ...
1
vote
1answer
25 views

Omit string with repeating characters using grep

I feel this question has been asked before but I am having trouble locating an answer and it combinations of possibilities is mind boggling. Many resources provide something almost close but I'm ...
2
votes
2answers
279 views

disable login by editing /etc/password file

I am assigned to generate a script that can disable password login for ssh service. Knowing that I can perform this action by editing /etc/sshd_config file, but my mentor mentioned the file I should ...
1
vote
0answers
27 views

How to connect to a wifi which password only has 6 letters?

1st, the WiFi is a mobile hotspot, I can not change its password unless I am able to connect to it first. The only way to connect to the device is by using WiFi. I have reset the device and I have ...
0
votes
1answer
100 views

how to access grub menu when it is locked with a password

I am running a CentOS-7 virtual machine and I have the task of recovering the root password of the system. But the GRUB menu is locked with Password-Based Key Derivation Function 2. Therefore I cannot ...
-3
votes
1answer
34 views

Encrypting an hiding files on a vps

Recently me and a friend bought a vps. We use it mainly to mess around with but also as a remote workstation. Now we sometimes let other people use it. My goal is to hide and encrypt sensitive ...
4
votes
1answer
282 views

Disable password on linux user with command

Based on /etc/shadow(5) documentation on the second (password) field: encrypted password If the password field contains some string that is not a valid result of crypt(3), for instance ! or *...
-1
votes
1answer
24 views

could a password policy be dynamic, depending on password lenght

I would like to set different password complexity depending for exemple on the password length. Is it possible to make conditions, so I can have a high level of complexity with password length=8 and ...
5
votes
1answer
815 views

How to know if password in /etc/shadow is hashed with SHA or MD?

I want to know my /etc/shadow password hash if its SHA or MD or something else. From what I read, it is related to the $ sign, but I don't have any dollar signs. Im using Ubuntu 16 Example: user:0....
0
votes
1answer
66 views

How to force all local users to change their password

I'm Currently following RHCSA. Can you guys tell me way to force all local users to change their password in next login?
1
vote
1answer
51 views

Read from stdin and pipe to next command

I would like to read a password from stdin, suppress its output and encode it with base64, like so: read -s|openssl base64 -e What is the right command for that?
3
votes
1answer
55 views

How to lock down a specific operating system in grub

I am currently dual-booting one of my laptops, but I want the Linux distro to be practically hidden completely. So far I have been able to make it so then you have to press Shift for the grub menu to ...
2
votes
1answer
748 views

Live Kali Linux root/toor login not working

Today I tried to get Live Kali Linux working off a USB stick. When I got to the login screen, I tried entering root as the username and toor as the password like always, but the login failed. I am out ...
1
vote
1answer
122 views

Debian 10 su command to existing user as root without password

I just installed a brand new VM with Debian 10 (buster) and joined it to our active directory using pbis. what I encountered now is, that: as the root user, I can su to every other available user ...
1
vote
0answers
58 views

Cannot reset root password through Linux command menu

When I run through the full sequence of commands given to me to reset my root password, the Linux Command menu says I correctly reset my password, however I cannot use the password i set it to. The ...
1
vote
1answer
55 views

Linux password reset through Grub menu doesn't work

when i try to reset my root password through the grub menu I get the prompt: root@(none):/# If i wait to long, like 4 seconds, I get the message: [ 15.011870]random: crng init done [ 15....
1
vote
1answer
42 views

Why would a ssh password-based login fail?

I currently use ssh keys to connect to my server (Ubuntu 18.04). I would like to allow (in a specific, limited scope) the ability to login with passwords. Whenever I try, my passwords fail. below is ...
0
votes
1answer
53 views

How to remove all entries containing particular string from history command in BASH?

Is there any command or way to remove all entries from history of bash shell containing a particular string? this will be useful to remove commands in history containing password. I know we can remove ...
1
vote
0answers
37 views

Is there something like HTTP Digest access authentication for SSH?

Apparently, SSH does send (albeit using an encrypted connection) the client's login password to the server if password authentication is being used instead of a pair of public and private keys: Does ...
1
vote
1answer
62 views

How to retrieve password for vpn in Fedora?

I have a vpn connection with Cisco Anyconnect. The password is saved, but I need to retrieve it. I looked at this question Where does GNOME Network Manager store passwords? but it did not help. There ...
0
votes
2answers
53 views

How to ensure I know my password?

I am connecting to machine via ssh key and have sudo rights. How can I check that username password I know is correct? /etc/shadow doesnt' contain me. What else can be done?

1
2 3 4 5
20