Questions regarding password-based authentication and password management

learn more… | top users | synonyms

0
votes
0answers
2 views

How to add sudo user without storing password in /etc/shadow?

I'm managing access privileges in my PC user accounts using sudo. I noticed that all this user's password storing in /etc/shadow. Now I want to add sudo user to my PC but password will not store in ...
0
votes
0answers
34 views

SCP demanding password for root

I configured (successfully I hope) a client and a server on OpenWRT (SSH), now I'm trying to use scp to put a file on a server from the client, but it doesn't work because it wants me to give a ...
0
votes
1answer
32 views

Cleanest way to require the user to enter password to run a program?

What is the cleanest way to require the user to enter password in order to run a particular program without the use of third-party applications? For example, if I type firefox to launch it from the ...
5
votes
0answers
96 views

Taking a picture with a laptop webcam after entering an incorrect password

I'd like to set up my laptop so that if a wrong password is entered when the screen is locked, a picture is taken using the laptop's webcam. I examined xlock (from xlockmore package), but there is no ...
3
votes
0answers
52 views

Cannot login SSH with key, always asking password

There is a issue confusing me for couple of days. I have 3 Servers. A, B and C. I want access B and C from A via ssh. I have set public key/ authorized_keys ... on A,B,C. Scenario #1: Access B(.133)...
-2
votes
1answer
55 views

Bash script if - else contitions [closed]

I would like to do create a bash script that downloads a specific installer from the internet, installs it, create a desktop file that launches it, make it auto start, then remove the installer, but ...
1
vote
1answer
45 views

script ssh login to server and pass root password

I have written an expect script to automate the login process for ssh. My user account has rsa keys setup but once I log in I want to switch to root but the remote server is hanging on the password. I ...
0
votes
0answers
11 views

Generating word list base on possible numbers/caracters via Crunch in Kali Linux

I'm new to crunch. I'm try to generate word list containing 8 characters long. I've tried crunch 8 8 > pw.txt It freeze my computer because it doesn't have enough space for that. Is there a ...
2
votes
1answer
14 views

How to “forget” user credentials after logging in to a windows share (samba)

I logged in from my Mint to a windows share (which is actually a linux running samba, if it's relevant), typed in the password, and got it. Even though I marked it to forget the password immidiatly, ...
1
vote
0answers
33 views

How to read the password of a user and implement it in the subsequent commands?

I am writing an api call that requires the user id and password of the user. I can get the user id but how to get his password and supply it to a variable? Here is the api command curl -u $user:$...
3
votes
1answer
28 views

Can I unlock 'pass'?

In my search for a simplistic password manager, I found 'pass' and made it my choice. One unexpected difficulty, that I encountered, is that web searches about its features are difficult to phrase in ...
0
votes
0answers
15 views

In Ubuntu Chromium does not load any saved passwords in Normal Mode but working fine in Incognito Mode

I have a weird problem. I recently did a software update for Chromium and now it does not load any off my saved passwords (I literally had hundred for all my clients.) When I go to manage saved ...
3
votes
1answer
40 views

groupadd -p Not Recommended?

I have a question about groupadd, specifically with password (-p). It says it is not recommended, "This option is not recommended because the password (or encrypted password) will be visible by users ...
0
votes
1answer
64 views

ssh/git does not use GUI to ask for password after upgrade to to Ubuntu 16.04

I used to run Ubuntu 14.04 on my computer. Whenever I used ssh keys to log in to various servers, I used to get a GUI pop-up dialog asking me for the password for my key. After entering the password ...
-1
votes
2answers
76 views

Creating a user without a password on NetBSD

On my NetBSD installation, I have it set so that root has no password. I can login as root without typing a password. But, when I create a user with just useradd -m <username>, log out, then ...
0
votes
0answers
18 views

Where are WiFi passwords stored in Linux Mint? [duplicate]

Where are WiFi passwords stored in Linux Mint? I have tried this looked into /etc/NetworkManager/nm-system-settings.conf, but could not find it.
0
votes
1answer
32 views

How to delete password for current account

I just installed Ubuntu 15.10 on my new desktop. However, I want to erase the password of it. I followed the instructions here. I now can successfully login with out password, but I cannot use sudo ...
2
votes
1answer
26 views

Can I make it so that all new users created in the future will have an expired password by default? [duplicate]

I want to make it so that every time anyone creates a new user on my system that user will be forced to set a password during their first login. I can't find anything in /etc/login.defs that will do ...
3
votes
3answers
52 views

Sudo-like remembrance of passwords for own scripts

I have a script which requires a password for authenticating a web service. A single password for a pre-defined user will suffice, and the password should if possible be stored securely (not plain ...
2
votes
2answers
74 views

Hiding passwords in wpa_supplicant.conf with WPA-EAP and MSCHAP-v2

My wpa_supplicant.conf looks like this: network={ ssid="Some name" scan_ssid=1 key_mgmt=WPA-EAP eap=PEAP identity="my-user-id" password="(clear text password here)" ca_cert="/usr/share/...
0
votes
1answer
17 views

KSH password generator

How to make sure the generated passwords contains all these special characters: ?!/=\? Currently I'm using: pwd_usr["$i"]=`cat /dev/urandom|tr -dc "a-zA-Z0-9-_\?\!\=\/\"|fold -w 15|head -n 1` But ...
3
votes
2answers
41 views

Feedback when entering passwords, without revealing length

I often SSH into a machine and use sudo on it. When entering passwords, I'm always afraid that another window will steal the focus. However, I don't want to display asterisks (with pwfeedback, for ...
68
votes
2answers
8k views

I accidentally typed my password into the login field, is it still secure?

I was looking down at my keyboard and typed my password in because I thought I had already typed my login name. I pressed Enter, then when it asked for the password I pressed Ctrl+c. Should I take ...
0
votes
1answer
36 views

How can I avoid being prompted for a password in this script? [duplicate]

I’m using Amazon Linux. If I login as my “otheruser” user, and create a script, test.sh, with this text sleep 5 ; sudo reboot now I can login and run the script like so … [davea@mydevbox ~]$ sudo ...
0
votes
1answer
48 views

rsync over ssh without typing the password each time [duplicate]

I got a bash script to synchronize data between two computers. It works fine but I have to type my password every time the rsync command is called. #!/bin/bash sourceIP="192.168.178.128" sourceUser=...
0
votes
1answer
35 views

What's the difference between lpasswd and passwd commands?

Studying the CentOS/RHEL sysadmin manual, I can't understand if there are or what are the differences between these commands.
0
votes
0answers
61 views

Centos 7 root passwd reset

I was stupid enough to log my root password on one spot and that crashed so I lost my root password to my server. I followed the guild of https://access.redhat.com/documentation/en-US/...
0
votes
1answer
24 views

Proper way of creating new accounts in passwordless systems [closed]

What is the proper way of delivering credentials in passwordless ssh systems (linux)? By passwordless I mean login using only SSH keys. Should I generate pair of ssh keys and deliver it to new user, ...
2
votes
1answer
63 views

How to encrypt/hide password in /etc/network/interfaces file on debian?

How can I encrypt/hide my - wpa-psk "password" - line in the /etc/network/interfaces file? Since it's uncovered and readable for everyone who can get in the file now. Or is it better that I use ...
0
votes
1answer
28 views

Moderate users homedirs - removing cleartext passwords [closed]

On one of Linux terminals I administrate, we allow users to write own scripts in bash/perl/python to enhance their administrative tasks. The problem with users is they don't always follow the rules. ...
1
vote
2answers
55 views

Last Password Change of A User [closed]

I'm am currently trying to figure out a command that will show the last password change of a user on a UNIX system. I have tried running the command passwd -Sa and it gives the password change date ...
0
votes
1answer
51 views

Bash script to change password in chroot

I have build a Linux From Scratch live CD and wrote an installer script for it. There is a step in that script in which I take an username and password from the user and create an user. The installed ...
1
vote
0answers
27 views

Dictionary attack GPG symmetric encrypted LUKS keyfile

I remember typing in a long phrase for the password. I wrote all the words I could have possibly used into a plain text file, combining the words I know were used in a certain order. I might have ...
1
vote
1answer
30 views

Mechanism behind password storage in sudo

Whats the mechanism behind sudo that stores the password for all subsequent calls to sudo?
5
votes
2answers
257 views

How is the su command masking/protecting my password from being displayed on screen? [duplicate]

Apologies if this is an abstract question - I'll try to be as specific as possible. When I'm at the bash shell and switch to a different account via su - foo, I'm prompted for a password. The ...
1
vote
1answer
25 views

Set user-specific password hashing rounds in PAM

In /etc/pam.d/common-password we have a line such as: password [success=1 default=ignore] pam_unix.so sha512 rounds=200000 Meaning, whenever anyone sets their password, hash it with 200,000 rounds ...
1
vote
1answer
32 views

Block regular users from changing their passwords: only root should be able to [closed]

For security reasons, I want to make it so that only root can change user's passwords This can be achieved if I set /usr/bin/passwd to 700. Now, if password aging is enabled or first login is enabled, ...
1
vote
1answer
79 views

Puppet: Forcing user to change his password at next login

I am using `users' resource to create unix accounts and then set a default password. For this I have written the following manifest . node 'node2.example.com','node3.example.com'{ user { 'askar': ...
4
votes
1answer
122 views

Is it possible to convert linux salted sha512 password hash to LDAP format?

We have an LDAP server which stores passwords and other user data. The server is not used for authentication of client machines though but only for authentication of client apps. So users change their ...
31
votes
3answers
4k views

Why is the password I entered not visible?

Below is an image of the process I took to create a user on bash in Linux. I understand that the password shouldn't be displayed for security purposes, but what I mean is, why do asterisks (or the ...
0
votes
0answers
13 views

is there a tool that edits /etc/login.defs for you?

I am attempting to set password expirations for all new accounts and am curious if any tool already exists that will edit /etc/login.defs for you -- or is manually editing the only way?
2
votes
2answers
162 views

Avoiding plain-text password in http_proxy

I am behind a corporate firewall, which brings lots of pains in the area of proxies. There are two main approaches I've found to work: Use Cntlm at the cost of not being able to connect (from the ...
0
votes
0answers
24 views

Password help chronos

I am trying to put Minecraft on my son's Asus C300 Chromebook. I have followed the steps to get into developer mode. I get to chronos@locahost and then I get a message that says "We trust you have ...
0
votes
0answers
69 views

Chronos@localhost password fail

I am trying to put Minecraft on my son's Asus C300 Chromebook. I have followed the steps to get into developer mode. I get to chronos@locahost and then I get a message that says We trust you have ...
1
vote
0answers
59 views

Linux password expiring and cron jobs failing

I have jobs running on a server which I access via powerbroker (so don't know the password). However the password of the user account expired recently and the said jobs failed. Due to password ...
1
vote
1answer
92 views

How to login to an ssh server and capture prompts programmatically?

I'm attempting to write a script that will login to a remote server via ssh, without popping up a password prompt to the user (the remote server is not under my control, and they won't allow me to use ...
0
votes
2answers
42 views

Linux system root login forgotten password recovery instead of new password from hash

I have a multiple Linux hosts(virtualization) to which I can login as root on only one of the host with ssh root@host with ssh key setup(id_rsa.pub and authorized keys). I don't have this setup on ...
2
votes
2answers
102 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
283 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
36 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 ...