Questions regarding password-based authentication and password management

learn more… | top users | synonyms

-1
votes
1answer
28 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
237 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
93 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
122 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
115 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
70 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
51 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
82 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
56 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 ...
1
vote
0answers
33 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
98 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
40 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 ...
2
votes
2answers
111 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 ...
7
votes
1answer
1k 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
93 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
39 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
109 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
100 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
189 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
45 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
53 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
228 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 ...
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
63 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 ...
0
votes
0answers
206 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
157 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
47 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
107 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
189 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
88 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
57 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
125 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
243 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
45 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 ...
8
votes
2answers
347 views

What is most secure and simplest way to have a user-typed password on bash become part of stdin to a program?

I'm looking for the (1) most secure and (2) simplest way to have a user type a password on a bash shell prompt and to have that password become part of stdin to a program. This is what the stdin ...
0
votes
1answer
110 views

How to view all users and change the password

What I have done is set up a virtual machine using AQEMU/KVM of Kali Linux, the problem is that I don't remember either of my log in details user name / password. So, is there a way to view those ...
4
votes
1answer
86 views

Prevent users changing password in FreeBSD

How can I prevent a user to change its password in FreeBSD. In Linux i can do this by using chage -m 99999 <username> where chage is found in shadow-utils Reason for this is I created one shell ...
27
votes
8answers
8k views

How to generate a random string?

I would like to generate a random string (e.g. passwords, user names, etc.). It should be possible to specify the needed length (e.g. 13 chars). What tools can I use? (For security and privacy ...
1
vote
1answer
88 views

Sshfs on Beaglebone Black password with Ubuntu arm 3.14

I'm trying to transfer a file to my Beaglebone Black using sshfs. I've installed Ubuntu Arm 3.14. I can use sudo sshfs 192.168.0.102:/ /mnt/sshfs which pops up with root@192.168.0.102's password:, ...
0
votes
0answers
83 views

Linux Mint 17.2 dual password prompts

I have an odd issue with my system showing me two password prompts after waking up from suspend mode. I can click on either to enter my password and I only need to enter it into one form to login. I ...
2
votes
2answers
99 views

Using PAM, how is minimum number of days between password changes set?

On my Amazon Linux (RHEL-derived) system, within /etc/login.defs, I've set the minimum number of days between password changes to 1 day: PASS_MIN_DAYS 1. I thought I should be doing that with PAM ...
1
vote
1answer
42 views

Why does it take more time to identify an incorrect password than to identify a correct one? [duplicate]

It takes almost two seconds before my linux machine replies the password is incorrect while the correct one gets accepted almost instantaneously.
1
vote
0answers
143 views

Fedora 22, disk-encryption passphrase, POST fails, dracut

I was in the process to install Fedora 22-3 on an Acer desktop with Windows 8 to create a dual-boot system. I believe to have followed reasonable guidelines on how to do this. (I reached up to point ...
1
vote
1answer
381 views

Linux Mint Rafaela Password

I want to boot Linux Mint Rafaela from a live USB Stick. The MD5 checksum is correct. I am asked for a password. In the documentation I can find following: Typ as Login: "Mint" Password: -empty- I ...
1
vote
3answers
215 views

MySQLdump via crontab - Pass --password=/hashed/password/file so I can use via crontab w/o using plain text password

So I'm setting up a WordPress backup guide/making a backup schedule for myself for real. I want to do MySQL dumps daily, but the command either requires -p then user input or ...
1
vote
1answer
1k views

How to change default root password for Live Kali Linux - USB persistence

After making a USB Live with Persistence stick, I tried to change root default password (using passwd) to no avail. Every time I reboot it resets to the default one. All other changes I've made (e.g. ...
0
votes
1answer
29 views

Is it safe to run GPG tools in x11?

Given the relative (anyone with my present user permissions can swipe scancodes) ease of keylogging in an x11 environment, should I run GPG tools only in the TTY?
1
vote
0answers
52 views

Root password not working when trying to update

Running SLES12 on a VirtualBox VM I get the notification that there are software updates. Trying to invoke the update, a popup appears and forces input of administrator password. When I enter the ...