Tagged Questions

Questions regarding password-based authentication and password management

learn more… | top users | synonyms (1)

1
vote
1answer
52 views

Break the Root password [duplicate]

How to reset the root password in ubuntu o.s ? I have forgotten the root password and tried to login in recovery mode but root password is asked.
2
votes
1answer
28 views

What's the correct way to authenticate a user without PAM?

as my related question doesn't seem to get much love, here another one: What's the proper way to authenticate a user via username/password prompt in Linux nowadays? In principle, I suppose I would ...
4
votes
2answers
180 views

Why rejection of password is much slower than acceptance of it? [duplicate]

In both my Linux and OSX machines when I type in the password to login, a correct password is accepted immediately. However, if I type a wrong password, checking process takes much longer. How is ...
3
votes
3answers
214 views

SCP command with selected file and directories for download ask's for password for each new file or directory

On my Fedora 20 system I use scp a lot, and this is the second time I encounter this, when I run this command: scp -r -P PORT user@host:/home/user/something/{file1,folder1,folder2,folder3,folder4} ...
1
vote
1answer
36 views

Hash in the shadow file, but no password?

A very strange thing happened: There is a user that has a HASH: [root@notebook /home/username/Desktop/b/a] cat passwd-machine foo:x:2229:3001:,,,System,fooo,-,userid for ...
1
vote
1answer
57 views

Simplest way of hashing passwords with multiple different hash algorithms [closed]

I have a large list of plaintext passwords stored in a file pwds.txt and would like to obtain the hashed version of these passwords under various different hash algorithms. I want one file for each ...
0
votes
1answer
57 views

How to recover linux user password? [duplicate]

I forgot my user password for my Linux and there is no permission to login as root. I don’t know how to recover it.
1
vote
1answer
27 views

Allow a python application to run if the user's password is wrong

Is it possible to let a python program execute only if a wrong password is given at the login screen of my raspberry pi?
1
vote
0answers
20 views

Subversion does not store password in gnome-keyring

I am using Linux Mint 16 Petra and svn, Version 1.8.10 (r1615264) and I want to store the passwords of my svn repositories encrypted. Although I think I set all the correct options, I get prompted for ...
1
vote
1answer
35 views

How to let a daemon prompt for a password (in Xsession, keyloggersafe)?

Exposition: Working inside an XSession. Some (background) deamon needs to prompt me for password input. How can I make the daemon to prompt me for a password using a popup in the Xsession? ...
2
votes
0answers
38 views

dbclient - login without manually typing password

On my router which runs OpenWRT I need a script which will keep a SSH connection alive mostly all the time (small breaks are OK). As the ssh server which I want to connect to takes care of multiple ...
0
votes
0answers
25 views

Password reset/ new user help! [duplicate]

My father bought a second hand desktop which came with Linux Mint. It logs into the GUI with no password every time it reboots but, since I don't know the password, I can't log back in without a ...
2
votes
0answers
19 views

Integrate my own PAM module with the passwd command

I know that to integrate my module with the passwd command all I need to do is add the following line to the /etc/pam.d/passwd file: password sufficient mymodule.so My question is I want my module ...
2
votes
0answers
33 views

Editing nsswitch.conf to check for files other than /etc/passwd while searching local files for user details

I have a file in /etc named radius which contains the user account details similar to /etc/passwd but of Radius users. How do I configure /etc/nsswitch.conf to check /etc/radius in addition to ...
2
votes
2answers
195 views

Unable to pass the password to su in a script

I am writing a build script. This script has to copy a file in the end. This file will be placed in another users home directory and it is also necessary that the file belongs to this second user. My ...
2
votes
1answer
39 views

Usage of pinentry with keepass2 for gpg mail encryption

Debian Jessie, XFCE 4.10, KeePass2, IceDove (with Enigmail).. I'm using KeePass2 generated passwords for my gpg private key, to de/encrypt mails. Icedove is my client which uses the enigmail. As ...
2
votes
1answer
149 views

Expired password and SSH key based login with UsePAM yes

There is a SLES 11 machine. The users logs in via SSH and pubkey (mixed, some user uses password, some use ssh key) The sshd_config has: UsePAM yes PasswordAuthentication yes PubkeyAuthentication ...
1
vote
1answer
64 views

How to activate the password prompt on a lock screen?

I am using Linux Mint 17 Cinnamon. When I lock the screen it shows a dimmed version of my desktop background and the time. So when I want to unlock it, I usually move the mouse and the prompt for ...
0
votes
1answer
37 views

Overwrote passwd file; unable to login to fix it

I am running Red Hat Enterprise Linux ES release 4 (Nahant Update 8). The /etc/passwd file was overwritten by mistake. I have a backup copy of the original passwd file, but when I try to log in as ...
1
vote
1answer
18 views

Default Shell for Samba Machine Accounts

Using Samba, as a domain controller, I need to add Windows machines as users (in /etc/passwd), and to the Samba database as a machine. In the /etc/passwd file, I noticed about half the machines have a ...
6
votes
3answers
632 views

Is w command safe for users?

Some applications allow to pass password as an argument. For example: mysql --user=user_name --password=your_password db_name Is it safe? Besides the fact that typed password would be saved in bash ...
2
votes
2answers
76 views

What is my sudo password?

When installing things I am sometimes asked for my sudo password. I don't remember ever having one or setting one. But I do know my su password which has always worked fine for me. It is not the same ...
1
vote
0answers
52 views

gksu -S ask for password only once even when set to three times in sudo configuration

I have a problem with gksu command. It always ask for password only once even when I set Defaults passwd_tries=3 in /etc/sudoers file. Command: $ gksu -S --debug ls No ask_pass set, using default! ...
1
vote
2answers
165 views

/etc/shadow : how to generate $6$ 's encrypted password?

In /etc/shadow file there are encrypted password. Encrypted password is no longer crypt(3) or md5 "type 1" format. (according to this previous answer) Now I have a ...
0
votes
1answer
43 views

Changing my default directory in passwd changes my prompt

I don't understand what's happening in this scenario. I changed the home directory of a user by editing the /etc/passwd file instead of using usermod -d. It worked: the default directory wasn't ...
1
vote
0answers
39 views

Change password hashing to PBKDF2 on Debian-based OS

I'm looking for a way to change the hashing scheme on my Debian-based OS from sha512 to pbkdf2. Searching the internet hasn't helped much. The closest I've got is this question: Enable Blowfish-based ...
0
votes
0answers
24 views

Help with creating random passdown [duplicate]

This is the command I am issuing to generate password that has capital and lower case letters numbers, numbers and only 1 special character. I can't get it to work, can some one on what is that I am ...
0
votes
0answers
29 views

Debian, ActiveDirectory and Password

I have joined a Debian Wheezy to a Win server 2003 with Active Directory, following this guide: Everything goes well except for the password change. I am not able to change the password of my domain ...
1
vote
1answer
188 views

How to force change linux password even if similar as previous

I am trying to change my current password in Red Hat Enterprise Linux Server release 5.10 (Tikanga) but it says my new password is too similar. Is there any way to force change ? $ passwd Changing ...
0
votes
1answer
34 views

how many password generators are there in debian and how to know which are good

I know of two password generators in Debian. The first one which I have used is apg and it seems to generate some good passwords. $ apg -m 15 -M SNCL RefGav:quedTut7 {Shtetmigdybig1 ...
0
votes
4answers
293 views

sftp script to get a file from remote machine

I use a script, which contains the line: sftp $FTP_USER@phcsftp.pearsoned.com:/dir/file.txt When I run the script, it asks for my password: user@phcsftp.pearsoned.com's password: However, ...
2
votes
1answer
21 views

Printing through a Samba server without recording the password in plaintext

I need to access a printer through a Samba server. In CUPS, I could make it work by entering a device location such as smb://username:password@hostname/printer_name. However, it would mean for my ...
2
votes
1answer
71 views

How do I determine if the linux password was changed?

I'm developing an application which is distributed on a VM. The default password is always the same, but it's hash in /etc/shadow changes with every release. How can I programmatically (e.g., from a ...
1
vote
1answer
58 views

SSH key-only remote login, is disabling password a good practice?

I need a maintenance user which only requires a remote login. I'll preferably use only public keys to login into the account. I thought of just creating the user with useradd myuser, adding later the ...
0
votes
0answers
27 views

Why there are two different shadow files preset in /etc [duplicate]

I am running ubuntu 12.04 on rackspace cloud. Somehow it has two shadow files /etc/shadow /etc/shadow- I know about the first being used for password protection but where second came from ? Can it ...
0
votes
1answer
56 views

How do I pass my password to gksu?

gksu doesn't has an option like sudo has to pass the password to it in the following way: echo 'password' | sudo -S command Anyway I wonder which is the simplest way to pass my password to gksu. ...
2
votes
1answer
27 views

Understanding passwd --keep-tokens

On GNU/Linux, I do have trouble understanding the meaning of the --keep-tokens option for passwd. As it doesn't seem to be much used as I am not able to find any examples and only online copies of man ...
1
vote
1answer
41 views

How can I run ssh-add on demand? Can it act as SSH_ASKPASS?

I want to ssh from user@local to user@remote several times per day with an encrypted SSH key, a situation which ssh-agent handles with a good trade-off between security and usability. I'd also like ...
2
votes
0answers
85 views

NetworkManager cannot remember my WiFi password

My system is Gentoo 64bit, with KDE4. I just updated my Gentoo system. And after reboot, it asks me for my WiFi password. But the next I log in, it asks the password again. I checked the settings, and ...
3
votes
2answers
115 views

How can I check GMail messages with prompt for password from a script?

I'm using zsh on Ubuntu 14.04 over SSH using Putty and I'm setting up the key bindings for my keyboard. Because zsh doesn't seem to make use of my function keys I thought I'd setup scripts to do ...
3
votes
3answers
159 views

How to mask passwords in 'watch' command?

I am using watch to monitor the progress of a MySQL replication slave. The way I have it set up now, the password shows up in the header of the watch output. I am not exceedingly worried that someone ...
4
votes
1answer
63 views

Self-contained password manager with CLI [closed]

I'm looking for a password manager that has the following properties: The manager is entirely self-contained. I take and install a directory on a thumbdrive and execute from that drive. It should ...
0
votes
0answers
19 views

Is it possible to create an alias to rlogin and pass login paramteres?

There is a system I need to rlogin to for work, and each time it asks for my username and password and after the login I have to type in a code-word in order to get to the view I want. Is it possible ...
0
votes
0answers
23 views

How to reset the password on a Kurobox PRO NAS appliance

I've had this old Kurobox PRO demo unit (Precursor to the Buffalo LinkStation series of NAS appliances) kicking around for quite some time now, I decided to fire it up and see if I could install ...
4
votes
2answers
79 views

Using $ in a password

Lets assume that password of my server is Abcd$1234 I am trying to ftp a file from other server to my server using the following in shell script ftp -inv (IP) << EOF user Username Abcd$1234 ...
1
vote
1answer
57 views

How do I remove login password for Centos6.5?

Question 1 On Centos 6.5, I have a username called admin. How can I make it so the system logs in automatically? Question 2 How can I configure system to login as root user when there are other ...
0
votes
1answer
36 views

Howto Tell if a System authenticate with password only or through PAM

If my computer has the pam package installed and has the directory /etc/pam.d/sshd, does it mean for sure when I ssh to my computer, I am authenticated through pam modules? The /etc/pam.d/sshd looks ...
1
vote
1answer
80 views

How does Linux verify the login password?

I would like to know how the password verification in Linux works. I know that the passwords are stored as a hash in /etc/shadow file and user information is in /etc/passwd file. My understanding ...
0
votes
0answers
63 views

Installing MySQL 5.6 Validate password plugin

So I have installed MySQL 5.6.19 Enterprise Edition and have installed the validate_password.so plugin. My question I have is, Does the MySQL password policy notify the user of what the requirements ...
0
votes
1answer
41 views

Store passwords of Linux users in plain text - on purpose [duplicate]

I want to reset passwords temporarily to log in as root at least one time to change passwords. I have access to the hard drive and I can run a live distro to gain root access. I did think it would be ...