Questions tagged [password]

Questions regarding password-based authentication and password management

Filter by
Sorted by
Tagged with
1
vote
0answers
45 views

User is prompted twice for current password

Users are forced to change their password on login. When they do log in, it prompts them for the current password twice, once with parenthesis and once without. And then prompts for new password ...
0
votes
1answer
25 views

Customize password request string

I'd like to know if there's a way to customize the sudo password request. The default string is: [sudo] password for USER: Is there a way to change that to some other custom string, like: Insert ...
0
votes
2answers
59 views

How insecure is it passing a password to curl via cat

I have a script which executes curl many times. I'd like to enter my password only once (so I don't want curl to ask for it on every execution). I don't want the password to appear in process list or ...
0
votes
0answers
15 views

After imaging Linux and restore are password broken but actually not

I have a weird issue on Centos 7.5-18.04 I have a freshly installed system with accounts added for ssh. The image is done with clonezilla. Restoring the image works fine but the passwords of the ssh ...
1
vote
0answers
56 views

Password does not work anymore

Today I took a look at the /etc/shadow file with the password-hashes without changing it but saving it again. After again starting my PC with Linux Mint 19.4 I entered my password and that also worked....
1
vote
0answers
24 views

How to set up SSH 2FA with either publickey+token or password+token?

I have tried to set up PAM authentication for SSH to a Ubuntu 18.04 server (by modifying the instructions in this guide). I am attempting to set the login so that any of these two combinations is ...
-1
votes
1answer
49 views

Beeing root but without knowing password. Replacing binaries in /bin/ to bypass restrictions

I have an active root account, but I don't know my password. To be able to change my password or even to create another users (with the tool passwd) I need to know my password. So that creates a ...
-1
votes
2answers
56 views

What is mean “x” in second field of /etc/shadow file [duplicate]

I have content in shadow file: root:!:17777:::::: bin:x:14871:::::: daemon:x:14871:::::: mail:x:14871:::::: ftp:x:14871:::::: http:x:14871:::::: dbus:x:14871:::::: nobody:x:14871:::::: systemd-...
0
votes
0answers
17 views

Is there any web application to store passwords to a .db file?

I am using Apache subversion to maintain repositories. I am trying to implement it using a MAC book and unfortunately I could not use apache svn modules since it is giving me some run time errors. I ...
2
votes
1answer
73 views

How to disable root password in NixOS?

I tried setting users.users.root.hashedPassword = "*"; similar to sudo passwd -d root or user { 'root': password => '*', require => Package[ruby-shadow], } in Puppet, but after sudo nixos-...
2
votes
0answers
34 views

User input in cronjob

I have created a script which calls another script.I'm implementing this via below cronjob 55 12 * * * cd /backup2 && ./script2.sh The another script ,I'm calling(restore1.sh) requires ...
1
vote
1answer
44 views

How to securely store password for use by mount

I would like non-root users to be able to mount certain drives on the local network (or have them be mounted automatically on log-in). To mount network drives (via cifs) a password is passed on over ...
1
vote
1answer
41 views

How to write an “expect” script that checks if the supplied password matches one of multiple possible passwords?

I want to change the password on my server. There are four possible passwords that should all be accepted for changing a password on the server. To achieve this I want write an "expect" script ...
0
votes
2answers
35 views

Is there a way to get the exact time of password expiration (aside from the date)

I can get the date with chage -l username, but I need to get the exact time. How can I get that?
0
votes
0answers
34 views

How pssh do the ssh activities without password

the follwing pssh command do a parallel as date pssh -i -H "master01 master02 master03 worker01 worker02" -l root -x '-q -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o ...
1
vote
0answers
38 views

How can I detect if the shell ask for password? [closed]

My question is how can I programmatically detect if a command asks me for password or not?
-3
votes
1answer
49 views

Force ssh to use only password issue [duplicate]

I have a problem with ssh connection to my remote server. I've just reinstalled remote server recently. user:~/workspace/cheops-master/frontend $ ssh -o PreferredAuthentications=password root@##.###.#...
0
votes
0answers
34 views

creating a systemd service to mount the encrypted home

I hope my message is posted in the right section, i'll try being as precise as i can. i'm running: arch-linux with LTS kernel (4.19.52-1-lts) zfs on root (0.8.1). systemd: 242 (242.29-1-arch) ...
0
votes
0answers
46 views

How to make password prompt to the root shell accept any password?

Board running embedded Linux version 2.6.26.5 and Busybox 1.10.2 When accessing board via a serial console port, the access to root shell is password protected. How to make the password prompt accept ...
0
votes
1answer
61 views

How to calculate the password length if the user already exists in Linux?

How to calculate the password length if the user which already exists in Linux? I only know the encrypted password for that user in another file /etc/shadow. Can I calculate the password length from ...
0
votes
2answers
30 views

What does the L returned from passwd --status mean

I was checking my password status and noticed that instead of NP or P there was a L returned so i checked the man pages and found it was a locked password could someone explain what this is to me?
0
votes
0answers
35 views

How do I change my password for Tox?

I use Tox (Tox.chat) for IM on my computer, linux OS. I would like to change my password. Does anyone know how to? I log in thru a terminal, but the command to change my password for my desktop ...
0
votes
0answers
19 views

Connect to WiFi with “networksetup -setairportnetwork en0 ssid password” without entering the password in plaintext?

How to connect to a WiFi network using networksetup -setairportnetwork en0 ssid password without using the password in plaintext?
2
votes
0answers
20 views

How to have synchronized samba passwords with local linux accounts where linux account are the leading system/authority?

How to have synchronized samba passwords with local Linux accounts where Linux accounts are the leading system/authority? This seems to be a surprisingly complex request/requirement. Since I already ...
0
votes
1answer
23 views

Encrypting Wifi Password When Using Wicd

Inspired by this answer, I'm wondering if there is a (relatively) painless way to "hide" the wifi password(s) that is/are present in the /etc/wicd/wireless-settings.conf file. I travel a lot and ...
0
votes
1answer
23 views

Shell Script to fix minimum password age not working but no errors

The goal of this script is to change the minimum password age in the /etc/login.defs file. My issue is that this script runs, I don't get any errors but when I vi to the file, nothing has changed. I'...
1
vote
4answers
87 views

Check which users have specific password

I'm trying to remove all default user passwords across a bunch of servers with ansible. Firstly, I'd like to output the name of every user whose current password is foobar. How can I achieve this? My ...
1
vote
1answer
52 views

How to confirm linux root password from ssh root?

How can I check a remote machines root password? I have a remote machines that are normally accessed via ssh root and other users. For security purposes I have a script to change all keys and user ...
1
vote
0answers
32 views

ssh to one machine and than another wihout password

If I ssh a server from my work PC, I do not have to enter password, it uses keys for passwordless authentication. Yet If I use vpn and ssh to connect to my work PC (with a password) and then ssh to ...
0
votes
0answers
22 views

Restrict root shell access

Background : 1. I have two users admin and root. admin user is not in sudoers and only runs a menu of restricted commands. 2. root account access is restricted to shell based protocols like scp, ssh ...
0
votes
0answers
54 views

Login Failed at Manjaro KDE no user can login

No user can login. I did the same as this post No users can log in I tried a lot of things and no one logged. Any solutions?
1
vote
1answer
44 views

Investigation - user's password is lost in every reboot issue

I'm investigating this issue: pi's password is lost in every reboot. Issue summary: Change pi's password by passwd command -> reboot -> the changed password always will be changed to another which we ...
1
vote
2answers
142 views

Does using non-root user without password makes system more vulnerable?

Let's say somebody sitting under user (non-admin, not root), but he didn't set up any password for it, only superuser/root has password. Is it bad practice (in context of remote access to a desktop ...
1
vote
1answer
28 views

read -s gives error via script

I am trying to read a password from user, i used -s silent flag but read -s is not working from the script but it works if i do it manually from terminal. error details project.sh: 3: read: Illegal ...
0
votes
0answers
20 views

Mount cifs Network Drive: dynamic permissions?

I have a mount from Linux to a windows network drive that works great. Except for one thing: every 90 days my password changes and I have to go in and recreate the mount like so: sudo mount -t cifs \ ...
0
votes
1answer
30 views

Manually enter password into expect and use as variable while scrip is running

I have an expect script that uses interact every time a password is needed. The program that expect is automating asks for the password multiple times. Is there a way to only have to type the ...
0
votes
0answers
15 views

Forced Password Expiry question

If I force a password expiry for an account that have aging setting set previously, Am I forcing it also to count inactive days earlier than what was set previously or aging settings (like warning and ...
1
vote
1answer
45 views

Synchronise passwords across devices with pass

I am looking for a simple, open-source password manager for linux with a CLI. It has to have a way of retrieving a password via the command line, so I can use it in several scripts (that sync my email ...
0
votes
0answers
35 views

How to setup password history using authconfig?

I've been setting up a password policy and have used authconfig like so: authconfig --passminlen=15 --update However I can't see a way to set password history without manually changing the conf ...
-1
votes
2answers
406 views

What is the root password for raspbian jessie or debian 9

What is the default root password for raspbian jessie or debian 9? I have Raspbian Jessie stretch iso "Raspberry Pi Desktop" or pixel Virtualbox and I need to install keys with root "su", what is the ...
0
votes
1answer
157 views

How to avoid password prompt when starting Synaptic?

Whenever I start the Synaptic package manager, it asks for a password. How do I make it skip that dialog? I'm using Debian 9.8.
-1
votes
1answer
41 views

Trisquel:What to type when I set a blank password? [duplicate]

I recently installed trisquel on my computer. When I decided to use the terminal and sudo I was prompted to use a password despite the fact that I set a blank one. I want to know what I am supposed ...
0
votes
1answer
45 views

How to sync gopass password store to an android device?

I have setup gopass to be my password manager on my arch linux desktop. I would like to sync the password store to my Android mobile device. Is the only way to create a remote git repo on GitLab/...
2
votes
1answer
48 views

Switch to root user always failed after modifying /etc/pam.d/common-password

I'm using ubuntu 18.04. To strengthen my pass-word policy I modify my /etc/pam.d/common-password like this: # here are the per-package modules (the "Primary" block) #password requisite ...
0
votes
0answers
83 views

Terminal - Password suddenly “visible” in asterisks [duplicate]

I did not change anything, and suddenly, when typing my password into the terminal during "sudo" commands, my password length is shown in asterisks as i type. Is this a feature of a new mint cinnamon ...
0
votes
0answers
19 views

Unable to login passwordless after the changing the users password

for example, A user was locked on server C, i've reset it password. and after that it was unable to ssh passwordless from server B to C, which was working before. i've checked the authorixed_keys and ...
-1
votes
1answer
79 views

Administrative password not accepted

I just finished installing Debian 9.8 Cinnamon and set up a root pwd and my user pwd. Now I want to install veracrypt and it asks me for my administrative password, but the root password doesn't work. ...
0
votes
0answers
115 views

Passwordless SCP from automated script - NO ADMIN RIGHTS server side

I have a cloudways server with no admin rights. I have set up ssh keys using their website interface, to use ssh and scp without passwords from a raspberry pi 3b+ running stretch, however i am having ...
1
vote
1answer
91 views

pam_cracklib setting min password length

I am experimenting with PAM and, in particular, pam_cracklib at the moment. I've run into a bit of a problem setting min password length and credit for particular character types. My config file for ...
-3
votes
1answer
35 views

Scientific Linux 7x - Too much system hardening!

Some Linux users like my company build Linux servers to use on factory production lines. We write software to load BIOS and FLASH memory and test our products. We constantly need to reboot these ...