Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1 votes
1 answer
3k views

How to deal with special characters in linux passwords

I am running the following command: echo 'my!#%^password' | sudo -S bash -c 'useradd -m -s /usr/sbin/nologin -p $(echo my!#%^password | openssl passwd -1 -stdin) george' The issue I am having is the ...
Daxcor's user avatar
  • 145
1 vote
0 answers
194 views

How to pass passwords in echo command?

I need to run a simple while loop as below and run a command recursively. Ex : while true; do echo command; sleep 10; done But to execute command, I need to enter couple of passwords once after ...
Arun Mathe's user avatar
1 vote
0 answers
102 views

linux mint 17 root password recover

I got an old x86 laptop with Linux Mint 17 installed. However, I do not have any decent passwords for either root or user accounts. I have already done steps explained at https://www.tecmint.com/reset-...
JussiJ's user avatar
  • 41
0 votes
0 answers
563 views

Load key invalid format to connect ssh server

I'm having problems setting an auto-login using ssh, I tried some things that I have seen there but none of them worked for me. I have my .ssh/config with the host as, Host hostname User ... ...
Euler's user avatar
  • 151
3 votes
0 answers
2k views

Docker Compose - How to handle credentials securely?

I have been trying to understand how to handle credentials (e.g. database passwords) with Docker Compose (on Linux/Ubuntu) in a secure but not overly complicated way. I have not yet been able to find ...
Tando's user avatar
  • 31
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 ...
Vince G's user avatar
  • 25
-1 votes
1 answer
566 views

"echo password | sudo -S" with exclamation mark

What I want to do is $ echo password!p | sudo -S [command] in a linux terminal (in my case, ubuntu20.04). If you type it as it is, the exclamation mark will refer to the history of the command line, ...
Saga873's user avatar
0 votes
0 answers
134 views

How to validate the password of a user without using shadow.h in linux in C(++)

I have a project in C++ (https://ari-web.xyz/gh/kos) and it's like sudo but in C++ and doesn't use PAM, I want it to keep it this way but is there a way to validate the password of a user without ...
user avatar
0 votes
1 answer
2k views

Bash Password validator

I have stuck with my bash code. and needed some help. I trying to write bash code that : Length – minimum of 10 characters. Contain both alphabet and number. Include both the small and capital case ...
Evgeny Dudko's user avatar
1 vote
0 answers
468 views

How to add Multiple user acccount with check and SSH key using Bash script

Based on my requirement in my dev server, I have Created a Linux function that will create a dev user,(Take the user's first name and create a Linux user ) we have a devs group in our developer server,...
sam23's user avatar
  • 67
0 votes
1 answer
2k views

Linux hydra command - cracking a simple password [closed]

I am trying to write a linux command to get into a Wix website I have created and put a password on. I have created the webpage to specifically show my students how easy it is for a hacker to crack a ...
Missy Jezabel's user avatar
0 votes
0 answers
86 views

How to view or reset root password on google compute VM

I have a Google VM on Linux OS. I only have console user access to a normal user When I try to change the OS login to root using the command "su -", the last password I remember is not ...
Samer Khawaja's user avatar
3 votes
2 answers
2k views

Authentication token manipulation error when trying to change use password in dockerfile

I am trying to change a password for a user I am creating during the run of a dockerfile: RUN groupadd --system ${UNAME} --gid ${UID} && \ useradd --uid ${UID} --system --gid ${UNAME} --...
Gulzar's user avatar
  • 28.3k
0 votes
2 answers
210 views

bash: colored output do not stop

I'm writing a password validator and after all the tests I need to give an answer to the user if the password is valid or not. If it is valid I will write the password in green color If it is NOT ...
Eylon Levi's user avatar
-1 votes
1 answer
194 views

Bash: How to find a specific char in a string

I have the assignment to write a bash script to validate password strength and one of the requirements is: Include both the small and capital case letters. The Password variable is the input, of ...
Eylon Levi's user avatar

15 30 50 per page
1
2 3 4 5
15