Questions regarding password-based authentication and password management

learn more… | top users | synonyms (1)

2
votes
1answer
4k views

Ubuntu 14.04 login into desktop by single user mode

My OS is Ubuntu 14.04 64-bit, and kernel is 3.13.0-30-generic. I forget my user account password and now want to get into GUI desktop. I know from the Internet that we can reset password by single ...
-1
votes
1answer
46 views

Password length and complexity

I am using CentOS and I want to set the minimum password length, minimum password expiry , maximum password expiry and password complexity in my system. I have looked over some tutorials to change ...
1
vote
1answer
254 views

Linux can't recognize the right password when ssh'ing?

I've created a local port forwarding and I was trying to ssh into my own port. During the process, I found that my own Linux won't recognize me even when I have the right password ...
1
vote
0answers
122 views

Fedora 20. Authentication requires a different password from su

In Fedora 20 (using Mate desktop) I have tried to change the default keyboard layout from US English to UK English, but am asked for "Authentication". The password I have for su is not accepted, and I ...
2
votes
2answers
72 views

Making su ask for password multiple times

Is there some way to make su ask for the password again in case of a wrong password (just as sudo does)? Initially I thought of this: while ! su -c foo; do read -n 1 -p "Retry(y/n)?" ch if [[ ...
3
votes
3answers
317 views

Changing user password through GUI app

I was making a GUI application to manage users and groups in Linux! I'm done with the part where it creates a new user, but stuck with the part where it gives the newly created user a new password. ...
1
vote
1answer
41 views

Dynamic password authentication

I would like to know how can I (and if it's possible) create a dynamic authentication for a user in linux. The server would change the user password periodically and the user would use a program ...
3
votes
1answer
65 views

How to use my login password to do two things

I have a CIFS drive that I mount regularly, and it requires a password for it. Since it's annoying to type my password every time, I wrote a script that sets the PASSWD environment variable, mounts ...
2
votes
1answer
29 views

Credential in PPD file: Is there a way to hide it?

We have a copying machine that can be used as a printer. In order to do that, I have to provide a credential in plain in the Xerox.ppd file. Problem: Any user on the system can grep credential ...
1
vote
2answers
44 views

Disallow Changing of Passwords [duplicate]

I have a spare computer running as a small server doing various things, and I'd like to create another account for my cousin, so she can learn how do manage a server/run minecraft etc. I'd like to ...
1
vote
1answer
700 views

How can I manually decrypt the hard drive?

I've just switched to Ubuntu 12.04 one year ago and moved all my photos, documents, etc to the 1TB main hard drive that has been encrypted during the installation process - not LVM but only the home ...
6
votes
3answers
473 views

Force Firefox to remember passwords on particular sites

Usually, when I log into a website with username and password, Firefox asks whether it should remember the login details. When I click yes, next time I visit the website, the username and password ...
1
vote
1answer
117 views

How do I edit the hotspot configuration for Network Manager?

Running Arch/Linux with everything up-to-date and I use network manager's built-in hotspot function to share my Internet. I'm trying to edit the configuration (mostly the password, as I don't like ...
3
votes
2answers
446 views

How to Create a Encrypted Password

I want to know how can I create a encrypted password in Ubuntu 14.04 TLS. Tried this: makepasswd --crypt-md5 password_here Did not worked for me throwing this Error sysadmin@localhost:~$ ...
1
vote
2answers
125 views

can you only input the password once and then execute the su command without entering a password? [duplicate]

I am copying files from a remote server to my local server. Here is the code that does this: sshpass -p "password" ssh -q username@$192.168.162.156 "mkdir -p /temp ; ...
5
votes
3answers
50 views

different passwords depending on plugged-in devices

I would like to have different passwords for my account(s): When (e.g.) a certain USB stick is plugged in then an easy password is to be used. The idea is: If I leave my computer then I take the stick ...
2
votes
2answers
120 views

Will I be prompted for the sudo password a second time?

This is what I plan to do: #!/bin/bash sudo -i <<'EOF' iptables-save | awk '/^[*]/ { print $1 } /^:[A-Z]+ [^-]/ { print $1 " ACCEPT" ; } /COMMIT/ { print $0; ...
1
vote
2answers
72 views

Why does it take more time for a login to fail than to succeed? [duplicate]

When logging in to my PC, and the password is correct, the login takes place nearly instantaneously. When the password is wrong, it takes a few seconds of waiting until the hint "The password is not ...
3
votes
2answers
496 views

show entered new password in unix “passwd” command

Is is possible to run the passwd command with an option to show the newly entered passwords? By default it doesn't show what I type and I don't want this. [dave@hal9000 ~]$ passwd Changing password ...
7
votes
4answers
1k views

Will there be always a pair of same UID and GID?

I have to change file/directory's ownership using chmod .I know only owners's username but want to change default group name simultaneosly . At this stage group name is not decided so I am putting ...
2
votes
1answer
81 views

Root Password Policy and Refresh

Unfortunately the infrastructure I work in has static root passwords that are very rarely refreshed. So people leaving the company will have our root passwords and it can potentially be leaked to ...
-1
votes
1answer
126 views

Why sudo ./bin/mysqld_safe & on Mac OS X 10.6.8 doesn't ask for password?

I get the following permissions from terminal: $ cd /usr/local/mysql $ ls -l drwxr-xr-x 41 root wheel 1394 29 Apr 00:55 bin drwxr-xr-x 4 root wheel 136 29 Apr 00:55 docs ...
1
vote
2answers
95 views

Reset password for regular user who is locked out

I'm a complete noob in Linux and I'm stuck in a situation where I'm logged in an Linux box from putty but on of my colleague, who was trying to login on same machine from his machine blocked my user ...
2
votes
2answers
86 views

User created without a password behaves as if he had one

Inside one of my scripts, I created an user based on a directory arrangement on another machine. The thing is that this user, created without a password, behaves just as he had one : he has sudo ...
2
votes
3answers
8k views

Kali Linux: On install, designated root password cannot login - incorrect password

I found an old laptop lying around and I figured I would install Kali Linux on it to learn more about penetration testing and to try to break into my servers for practice and learning more about ...
2
votes
3answers
2k views

Lost password for a user on a Linux Server: How reset it?

On a Server an user 16040 has lost his password. I have password for root but don't have password for user 16040. How can I reset his password? With passwd 16040, unix ask me current password that I ...
1
vote
1answer
2k views

Debian Live-CD user password

I am trying to use Debian live from an USB, however I do not succeed in logging in… What is the standard user and password to get access? I have tried searching this question on the internet and ...
2
votes
0answers
128 views

Why sudo won't remember my password?

I use sudo in many systems, but I have one of them that makes me type my password each time I run sudo. All the others remember it for a while. This is debian 7.4 wheezy and sudo 1.8.5 I found this : ...
2
votes
0answers
49 views

Getting non-stored password from Icedove

I've recently changed my mail password (because of Heartbleed), but I've forgotten the new one. When entering the new password in Icedove, I didn't think of clicking "remember password", but the ...
4
votes
1answer
643 views

How to reset password on an encrypted fs?

I've got a laptop which I haven't used since the last summer vacation: I did put Debian 7 on it and used Debian's feature to fully encrypt the disk, besides a tiny bootloader (or a tiny partition) I ...
2
votes
2answers
379 views

How is using a public-key for logging in to SSH any better than using a password?

I'm not asking about password vs key authentication. I've seen a few times (and even Amazons AWS) says that even if SSH has a major vulnerability that key authentication would make such an exploit ...
5
votes
1answer
437 views

Save password in bash script for multiple queries

I would like to know if there is a safe way to only be queried for a password once in a custom bash script, and then save it somehow to be used for later needs. At the end of the script it should be ...
4
votes
4answers
223 views

Login into a GNU/Linux distribution is taking too long

So, When I try to login with my username and password (in tty), and insert a wrong password, I need to wait around 5 seconds for the system to tell me that the password is wrong. Why the validating ...
6
votes
3answers
353 views

“no such user” but user is in passwd file

Looking at the files in /etc/: /etc/group:lbutler:*:1005: /etc/master.passwd:lbutler:$6$s..../:1005:1005::0:0:L Butler:/home/lbutler:/bin/bash /etc/passwd:lbutler:*:1005:1005:L ...
1
vote
1answer
58 views

Is it possible to remove the delay on wrong password? [duplicate]

So I type my password incorrectly from time to time. Sometimes for sudo sometimes for logging in to my (Ubuntu) machine. In either case, there is a two or three second delay before it gives me a ...
1
vote
2answers
496 views

gvfs-mount auto password

I would like to make shortcuts for gvfs mounts (I prefer to mount from the shell). For this, it is quite necessary/convenient not to have to enter the password for the ftp:// and sftp:// connections . ...
1
vote
1answer
361 views

Resetting password expiry date by number of days instead of specifying date

Is there a way with either commands passwd or chage to force the password to expire 90 days from the time of command execution? I know I can do it by date, such as: chage -E "2014-07-31" userid ...
2
votes
3answers
5k views

How to Use Encrypted password in shell script AIX

I had written a shell script that will connect with the Database to perform some operations This is my sample code #!/usr/bin/ksh . /home/ram/.profile sqlplus username/pwd@TNS<<EOF select ...
31
votes
2answers
3k views

Why is this random password flagged saying it is too simplistic/systematic?

How is the random string M1uG*xgRCthKWwjIjWc*010iSthY9buc being detected as too simplistic/systematic for a password according to passwd and cracklib-check? Try it on your machine and see echo ...
3
votes
1answer
554 views

Why does pam_mount ask for password?

I used the pam-auth-update tool in order to enable some pam configuration profiles: PAM configuration PAM profiles to enable: [*] encfs encrypted home directories [*] Unix ...
2
votes
3answers
325 views

Do all Linux distro's use the same cryptographic hash function?

Do all Linux distro's use same Cryptographic hash function? If yes, is it provided with the kernel itself? EDIT:- I refer to the function mainly used for storing user login passwords.
1
vote
0answers
527 views

PAM's passwd retry prompt fail

I am trying to use PAM to stop password reuse. Adding 'remember=24' to pam_unix stores the old passwords hashed with MD5 which I find unnerving. I was recommended 'pam_pwhistory' instead. Here is the ...
2
votes
3answers
242 views

proper configuration of visudo NOPASSWD for bash backup script

The abstract question is: If script x calls program y, do I need a NOPASSWD entry in /etc/sudoers for x, y or both x & y? (And can x then call sudo -v without a password?) Details: I'm trying ...
0
votes
1answer
59 views

feeding the password without any terminal window (stdout)

I have a command like this: echo "12345" | sudo abcde where 12345 is supposed to be the root password and abcde a program or a command. I have a shortcut which runs this command. I have tested the ...
1
vote
3answers
497 views

How to unlock admin account

By mistake I locked my admin account on Debian with passwd -l. I'm trying with live CD to unlock my account with no sucess. I've tried editing passwd file by removing x, but that didn't work. ...
1
vote
6answers
789 views

Program a file to self-destruct at a given time

Does anyone know whether there is a command in linux that can set attributes to file so that the file can disappear after certain time. For example, if I set one attribute to file as "1/1/2015", so ...
1
vote
1answer
115 views

Adding pass completion to fish shell

I'm trying to get the CLI password manager pass to work in my fish shell with auto completion. I've already found the necessary file on GitHub, yet am having trouble finding out where to put it, or ...
1
vote
0answers
16 views

How to ask for a password to mount crypted swap at boot time on Linux Mint 16 with initramfs-tools? [duplicate]

I use encrypted home folders on my notebook, which prevents use of hibernation on standard setup, because - and for a good reason - besides encrypting the home folder with ecryptfs, it reformats the ...
0
votes
2answers
146 views

Make file in linux readonly

Is there a way to make a file readonly permanently in linux. Or can I put a password to a file to make it readonly, then apply that password again to change its permission, or before they can alter ...
0
votes
1answer
143 views

Why user and root passwords cannot be empty on Linux?

I don't know about every Linux distribution but Kubuntu and all other distributions that I tried always require you to set non-empty password during installation. This password is required when you ...