All Questions
11 questions
1
vote
1
answer
939
views
How to set a password for all users (Bash Linux)
how do I set a single password for all users in a Linux system? For example, how will I set a password, x, so that it's the password of all users in the system?
I was thinking of a for loop that ...
0
votes
2
answers
137
views
Secure way to update UNIX account password using Python as root user?
Consider a UNIX account jdoe. I want to update jdoe's password using python script running as root. Currently, I am using:
cmd = 'echo "' + username + ":" + new_pass + '" | ...
1
vote
3
answers
5k
views
How to force sudo su to ask for a root password
There are absolutely no good, straight forward answers for this. The question is simple:
How do I force linux to ask for my password when I type sudo su?
0
votes
1
answer
182
views
User password check
I want to verify a user using my Java code.
As a choice, I want to check if one knows the password for the account using Java.
I know if I can look into /etc/shadow then it would be easy. However, it ...
0
votes
1
answer
1k
views
Compare current password of a Linux user with an entered password in Perl
I would like to get to know if the password a username has provided in a form is the one that user has on the system in a given host... I need this in order to change the password or return an error ...
1
vote
2
answers
4k
views
Passing Variable with Special characters as password breaks bash script. How do I Sanitize special characters in bash?
I am looking for a solution to sanitizing variables in my bash password change script.
The script below is working, however I have found that some "Special Characters" will break my script. I am not ...
2
votes
2
answers
885
views
how do I use read system call to take password interactively
how do I implement the following command line using system calls in golang?
read -s -p "Enter Password: " mypassword
that is, what additional options to set while reading the password to avoid the ...
4
votes
3
answers
25k
views
Where does Webmin stores its passwords?
I am trying to figure out where does Webmin store its passwords on a fedora machine ? Is it stored hashed ? or plain text and where ?
I have tried to search all the system files and Webmin but no ...
1
vote
3
answers
84
views
Parameter not passed through well
I created a function for crypting passwords. But the first parameter is not passed through well. crypt_pass "a" outputs the same as crypt_pass "b". What am I doing wrong?
crypt_pass() {
echo $(...
24
votes
6
answers
19k
views
Are passwords on modern Unix/Linux systems still limited to 8 characters?
Years ago it used to be the case that Unix passwords were limited to 8 characters, or that if you made the password longer than 8 characters the extra wouldn't make any difference.
Is that still the ...
98
votes
16
answers
341k
views
Using the passwd command from within a shell script
I'm writing a shell script to automatically add a new user and update their password. I don't know how to get passwd to read from the shell script instead of interactively prompting me for the new ...