Questions regarding password-based authentication and password management

learn more… | top users | synonyms

2
votes
2answers
107 views

Why does root need to enter a password when executing specific commands?

On a certain RHEL5 machine, when root is executing commands such as passwd someuser or any other privileged command, the root password is requested for verification and the command can't be executed ...
4
votes
1answer
393 views

How to recover encrypted /home/ folder in Linux Mint 17.2

The issue: I changed my password earlier today, but I must've made a typo, because I couldn't log in afterwards. I booted into the Grub menu and started a passwordless root shell to reset my password. ...
0
votes
0answers
37 views

Password problem when trying to access a LINUX VM

I'm a MAC OS X (El Capitan) user who's currently trying to access a LINUX VM set up by IBM for class. I have downloaded and paired a .ppk file in order to access it (a real pain due to my OS), but for ...
0
votes
0answers
48 views

Is there a (256) character limit on linux/ubuntu user passwords when using sudo?

[I'm no expert in Linux.] When creating a user that I would rarely use the password on, I used an extremely long password (500 characters). Everything seemed fine, until I used sudo for the user and ...
1
vote
1answer
38 views

Linux password setting change

I need to know how to change the current password setting to become more complex. My current password setting are very weak the minimum password character number is 1 which it should be at least 8 .
0
votes
0answers
11 views

Can I make entering my private key's password work like sudo does? [duplicate]

Is there a way to skip typing my SSH private key's password if I have used it recently, similar to when sudo caches your credentials for a limited time? I know that I can use ssh-add with the -t ...
1
vote
2answers
57 views

Changing root's passwords using setuid

Is is possible to change root's password using setuid? What I tried is writing a simple program which calls system("passwd root") owned by root and its setuid bit is set but it didn't work. The ...
0
votes
2answers
109 views

How can I Log ssh login passwords attempts?

I need to log ssh passwords attempts. I read somewhere you could get this done by patching openssh but I don't know if that is the correct way to get this done. I am using Arch. EDIT: I want to get ...
0
votes
2answers
43 views

How to change the password if the shadow file has “!!”?

[root@notebook ~]# grep USER /etc/shadow USER:!!:16577:1:90:7::: [root@notebook ~]# [root@notebook ~]# su - USER [USER@notebook ~]$ id uid=1000(USER) gid=983(GROUPN) groups=983(GROUPN),10(wheel) ...
0
votes
1answer
44 views

A password is not necessary to enter my /home directory but after logging out password is necessary

I am facing a strange problem. I have an opensuse 42.1 leap Linux. I deleted my /home folder accidentally from my other linux which is Debian. For some reason I had to transfer everything from my /...
0
votes
2answers
127 views

Bash Script execute command as user

I'm just wondering if it's possible to execute a command inside a bash script as a specified user and supply the password in one string. At the moment I have COMMAND="${DIRECTORY}/script.sh" su -c ...
0
votes
2answers
65 views

How can I log password entered to 'sftp' command?

How can I log the password entered to 'sftp' command? The command is shown in .bash_history, but obviously the password is not included as it comes as the next prompt. How can I also log what is ...
1
vote
1answer
26 views

Plain text passwords and application authentication compared to Windows

I'm a Windows user trying to wrap my head around Linux, and lately that means following behind people on Raspberry Pi projects. I've noticed that there are applications that require me to enter the ...
1
vote
1answer
86 views

What is a password dialog in plymouth?

I was currently learning to create plymouth themes/scripts from this link while following the guide i came across the Plymouth.SetDisplayPasswordFunction area, and after quite an amount of searching ...
-1
votes
1answer
34 views

Ask password in window mode after sudo or other command line operations?

Was seen in movies, that after command line operations, the password was asked in separate GUI window. From my (small) experience, password, required from command line, was always asked in command ...
0
votes
1answer
432 views

How do I ask password by GUI prompt while using sudo in script?

I use Trisquel GNU/Linux with GNOME Flashback Desktop Environment. I need a GUI password prompt for user for executing command with sudo in script. Example consider following script: zenity --...
0
votes
1answer
118 views

How to prompt a password automatically in Unix Shell script? [duplicate]

I have the below line in a script. When I run it, it prompts for a password to copy files in the server. I need the password to be taken from the script. Please help me resolve this. for i in cat ...
1
vote
2answers
156 views

Cracking root user: Automating logging into root using “su” from nonroot user

I want to write a script that allows me to pass a password to the su command. The reason for this is to automate the process of logging into root from nonroot account. From my basic understanding of ...
1
vote
1answer
170 views

How do I change a LUKS password?

I would like to change a LUKS password. I want to remove my old password, but I would like to try out my new password before removing the original. I obviously know the old password. I would like to ...
1
vote
2answers
96 views

Storing application passwords in central location

Is there any secure local service that one should use for storing and retrieving organization wide application passwords? Most of the time we need authentication information in our scripts to run some ...
0
votes
1answer
58 views

SSH still asking for password even after I have tried everything (that I know of)

ssh is still asking for a password, even though I did everything by the book. I have included all output, right from the start. Any ideas? Thanks! Gary 1) Generating public/private rsa key pair and ...
2
votes
2answers
95 views

My computer is booting to a full purple screen and asking for a username and password

Yesterday I reboot my computer to find out something went wrong the computer does not boot after about 10-15 sec after I press the power button it goes to a full purple screen I can't do anything to ...
3
votes
2answers
57 views

How can I export my passwords to other machines?

I just installed pass on my primary machine and I really like using it. I work on three or four machines and I'd like to synchronize all the passwords I have under ~/.password-store to all my machines....
1
vote
0answers
44 views

Slow hashcat after resume

Input.Mode: Dict (wordlist.txt) Index.....: 4/1265 (segment), 2994585 (words), 33550344 (bytes) Recovered.: 0/1 hashes, 0/1 salts Speed/sec.: 601 plains, 601 words Progress..: 1854564/2994585 (61.93%) ...
1
vote
1answer
123 views

How to add users to Linux through a shell script

The shell script that I have to write has to create new users and automatically assign them to groups. This is my code so far: echo -n "Enter the username: " read text useradd $text I was able to ...
0
votes
1answer
49 views

PAM filtering via IP for SSH

I know this is probably a bit of a nube question, but I need some input. So if I use last I can see my IP, and it's also in my auth log whether failed or accepted, eg. Dec 9 19:30:16 wilhelm sshd[...
2
votes
2answers
157 views

Pass, how to cache passphrase

I'm started to use unix password manager Pass Some passwords are not critical to me and I'm using them very often So it's became very annoying to me to type passphrase to get some password. Is ...
10
votes
1answer
3k views

SSH keeps skipping my pubkey and asking for a password

Everytime I ssh onto my remote server I need to provide the password. I copied my public key (id_dsa.pub) to the remote server using: ssh-copy-id -i id_dsa.pub user@server I checked it was ...
3
votes
1answer
39 views

Unlock the encrypted Volumes after restarting the server via SSH

I used the sudo shutdown -r to restart my Mac server via SSH. However, after restarting the server, I discovered that two volumes are offline due to encryption. What I am trying to do is input the ...
2
votes
3answers
108 views

What does it mean a ! before the username field in /etc/passwd?

After doing some googling I could not find why in the /etc/passwd shows a ! at the beginning of the line. It looks like this: !user:x:0:0:user:/home/user:/bin/bash any ideas? my only guess is ...
0
votes
1answer
47 views

Password protected script on editing, no password on executing

Is there any way to set a password on a script (or any file for that matters), without having to enter a specific command line to decrypt it each time I want to edit it? Setting this password to a ...
3
votes
3answers
120 views

How to set a password that violates password constraints without changing constraints using sudo

I have root access on a machine shared by others. I think the password constraints are absurd, they are overly excessive in how they mandate the use and ordering of non word characters and make ...
1
vote
1answer
130 views

How to change password using script

#OUTFILE=out.xml prefix='EDSAD150' password="asdf1234" pass=$(perl -e 'print crypt($ARGV[0], "asdf1234")' $password) for i in {01..02};do usname=$prefix""$i yes $pass | yppasswd $usname ...
6
votes
5answers
3k views

Passing root password safely in a shell script

I always boot up my GNU/Linux laptop in console mode. But sometimes I need to bring up the GUI mode. it always requires entering the root password. So I wrote the following script "gogui.sh" and put ...
4
votes
1answer
261 views

How to achieve conditional PAM authentication?

I am currently using auth required pam_unix.so try_first_pass nullok auth optional pam_ssh.so use_first_pass (plus some other, probably irrelevant entries Arch Linux added by default), which means ...
2
votes
0answers
53 views

How to remember / autofill forms with uzbl

I'm using uzbl to listen radio online, including this French web radio. There's a simple email/password form I would like to be filled automatically (down-right corner link "Se connecter"). Less ...
4
votes
2answers
63 views

Understand the PasswordAuthentication in sshd configuration

I have an OpenSSH server which supports only password authentication: [martin@ ~]$ ssh -v 10.10.1.183 -l root OpenSSH_5.2p1 FreeBSD-20090522, OpenSSL 0.9.8k 25 Mar 2009 debug1: Reading configuration ...
3
votes
2answers
231 views

Physically override linux credentials

Say someone gains physical access to my computer, and they want to login to my account and see everything I have. Is it possible that they take the hard-drive out of my computer, modify the file /etc/...
0
votes
1answer
27 views

Security of password in a cron job on a VPS

I have a site hosted on a VPS and need to run a MySQL dump nightly. If I create the cron command: mysqldump -u user -ppassword database | gzip > /path/to/zip/file are there any security issues? ...
1
vote
0answers
84 views

Pass passwordlist to 7zip

I'm writing a shellscript to automate my 7zip, rar etc extraction tasks. Normally JDownloader2 does this for me when I download files through it, but when I download files by hand I will still need to ...
1
vote
0answers
256 views

Non-root user cannot change Samba password

Samba users cannot change their own passwords. The password can only be changed using root account using the command smbpasswd -a <username> But I want users be able to change their passwords ...
0
votes
0answers
190 views

ubuntu 15.04 problem with typing password to decrypt the disk

I have a stupid problem after installation of ubuntu15.04 on lenovo e450. I install ubuntu with full-encryption disk option, but I have a problem. I cannot type password to this password box, but when ...
1
vote
1answer
48 views

Is it possible to find back my forgetten password if I can login via key?

I am using a ssh key to login a remote server but today I want to login with username and key pair. I can still get on server with my key but I can't remember the password. Is it possible to get it ...
0
votes
1answer
129 views

Specify anonymous ftp password in ftp command

I would like a simple (ideally one-liner, without separate script file) command to connect to an ftp server via anonymous login using my email address as the password. My attempt is based on the ...
2
votes
4answers
209 views

Authentication failure on Amazon Linux

There is an authentication failure when I'm trying to enter password for any of my accounts. I am logged in using ssh to my AWS EC2 instance. After a while I checked the privileges to files that ...
0
votes
0answers
100 views

Brute Force 256 AES .dmg

I have most of the password for a dmg file and crunched a word list for all the combos. How do I get the hash for it to feed into John The Ripper? I am using OS X Yosemite. When I have tried before, ...
0
votes
1answer
70 views

Reset admin password in Cent OS 7 from grub [duplicate]

I just recently installed cent os 7 and I forgot the admin user password so now I couldnt log in and locked out. I entered the grub boot menu and tried to change the password using password command ...
0
votes
1answer
136 views

Prompt user to enter for his/her user password to execute non sudo terminal command [closed]

As the question asks I want to learn how to prompt users' password for nonsudo commands EDIT: I think that I could not tell it clearly according to comments, so I will elaborate my request with ...
0
votes
0answers
283 views

Centos 7, protect single user mode [systemd vs init]

Since Cento7 & RHEL 7 started using systemd inplace of init inittab there are no use /etc/inittab & /etc/sysconfig/init to password protect single user mode Question is now where we can find ...
0
votes
1answer
54 views

Ubuntu & Plesk - How to exclude a sub-url from password protection?

I have website which is password protected where runs a php app on it. Now I have to unprotect a sub-url of that website but without disablng the protection of the main site which is configured ...