Questions regarding password-based authentication and password management

learn more… | top users | synonyms

0
votes
1answer
75 views

Set root password AMI linux

I need to set a password for root on EC2 AMI Linux. I have tried with passwd root but if I log in with ec2-user and run sudo su, I get a root bash without asking for a password.
0
votes
2answers
1k views

Change sudo and root password on Debian

I have sudo access, but I don't remember the sudo or root password; how do I change it from my limited account using sudo?
0
votes
3answers
3k views

How to gain root privileges for specific user if we have root password? [closed]

Can someone suggest how can I change process privileges in Linux to root ? Assume, I have a normal process running under some user-consider me. Now my script should create some users using 'useradd' ...
0
votes
1answer
30 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" ...
0
votes
1answer
27 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. ...
0
votes
2answers
33 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
167 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
185 views

Wordlist/dictionary generation for penetration testing

How can I generate a dictionary of words containing 8-16 of alphabet characters ([a-zA-Z]) with low memory?
0
votes
1answer
163 views

Disable root password caching

How can I disable root password caching? I looked at This Question, but I didn't really understand how to do it, is not the same as my question but it is indirectly related. I tried adding this to ...
0
votes
1answer
303 views

How do I pass my password to gksu?

gksu doesn't has an option like sudo has to pass the password to it in the following way: echo 'password' | sudo -S command Anyway I wonder which is the simplest way to pass my password to gksu. ...
0
votes
1answer
60 views

Maximum password length

Is there a maximum password length on unix systems? If so, what is that limit and is it distribution dependent?
0
votes
3answers
43k views

How to check that a user/password is expired in AIX?

I can check that the user is expired or not with: lsuser -f USERNAME | fgrep expires But how can I check that the user's password is expired or not? Are there any other "expiring" things that can ...
0
votes
2answers
48 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 ...
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?
0
votes
1answer
680 views

piping a password located in a file to the ssh command [duplicate]

So I need to login as a lot of different users to a server using ssh and I'm tired of copying the password from the files, which contain the passwords for the users, each time. I can't change it to ...
0
votes
1answer
220 views

Manipulating a (non-root) password in Fedora 22

My Fedora 22 (workstation-gnome) home pc has two accounts: steve, which has no password, and root which does have a password. On this website, the fedora 22 - change from gnome to kde4 topic may ...
0
votes
2answers
98 views

Installing Kali Linux

This is my 4th attempt at installing Kali Linux mini on Dell Inspiron 1545 Laptop. When I get to dialog that says "Select components to install" there is no way to select additional components it ...
0
votes
1answer
97 views

How to change password of an ssh identity file

Can I, and in that case how can I, change the password of an SSH identity file without having to generate a new key and setting up it all over again?
0
votes
2answers
678 views

How to make the script automated to take password on its own?

I have a script that is doing sftp some files from one server to another, like inside the script script.ksh I have the below lines; sftp user@ip_address << EOF cd path put file1 bye EOF When ...
0
votes
1answer
2k views

How to recover linux user password? [duplicate]

I forgot my user password for my Linux and there is no permission to login as root. I don’t know how to recover it.
0
votes
1answer
52 views

Changing my default directory in passwd changes my prompt

I don't understand what's happening in this scenario. I changed the home directory of a user by editing the /etc/passwd file instead of using usermod -d. It worked: the default directory wasn't ...
0
votes
1answer
161 views

Password length and complexity

I am using CentOS and I want to set the minimum password length, minimum password expiry , maximum password expiry and password complexity in my system. I have looked over some tutorials to change ...
0
votes
1answer
94 views

feeding the password without any terminal window (stdout)

I have a command like this: echo "12345" | sudo abcde where 12345 is supposed to be the root password and abcde a program or a command. I have a shortcut which runs this command. I have tested the ...
0
votes
1answer
580 views

Force users to change email password every six months

I'm going to build an experimental mail server with Postfix + Dovecot and Mysql for user accounts. The server will offer SMTP + POP3 + IMAP. Is there a way to force users to change their mail account ...
0
votes
2answers
812 views

Error when I want to create a user on FreeBSD

I'm trying to run FreeBSD (.iso) in a virtual VMWare machine. The useradd command gives me an error: # useradd pstnc useradd: Command not found Why is that? The command is correct and very simple, ...
0
votes
1answer
21 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, ...
0
votes
2answers
33 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 ...
0
votes
1answer
49 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 ...
0
votes
1answer
35 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 ...
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? ...
0
votes
1answer
54 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
117 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
1answer
701 views

sftp to use password stored in a parameter file

Is it possible to to connect two servers through sftp with a batch of commands and where the authenticating password needs to be read from a file (where it is stored previously)? I am new in the UNIX ...
0
votes
1answer
32 views

How to see the password in rhel6 [duplicate]

How to see the password what we are entering in RHEL6. If not how to see at least the entering password in some special characters.
0
votes
1answer
487 views

CentOS 7 - while installing i set disk encrypted with password, but on reboot always it asking password

While installing CentOS 7, i put password for disk encrypt. Now while working remotely on that machine and doing reboot it always ask password to be inserted on-site. Is this normal? or there is a ...
0
votes
2answers
77 views

/etc/passwd shortest password

I need to put one character inside the password file so that nobody can notice. I thought that if I was able to put the password as plain text and put something like a space nobody would ever find ...
0
votes
1answer
199 views

Mint maximum user passtext length?

Strangely, I can use a long passtext, approximately 64 words long, for disk encryption, but I'm having trouble with user password lengths. Certain steps fail like the installer or unlocking the ...
0
votes
1answer
126 views

When I boot Linux, it asks for password, pretends to proceed, but then returns to asking it again

I turned off my computer by pressing a turn off button for a long time. Then I turned it on. Usually it doesn't ask for password, but this time it did. So I tried to enter my password and it seemingly ...
0
votes
1answer
147 views

Overwrote passwd file; unable to login to fix it

I am running Red Hat Enterprise Linux ES release 4 (Nahant Update 8). The /etc/passwd file was overwritten by mistake. I have a backup copy of the original passwd file, but when I try to log in as ...
0
votes
1answer
49 views

how many password generators are there in debian and how to know which are good

I know of two password generators in Debian. The first one which I have used is apg and it seems to generate some good passwords. $ apg -m 15 -M SNCL RefGav:quedTut7 {Shtetmigdybig1 ...
0
votes
1answer
94 views

Howto Tell if a System authenticate with password only or through PAM

If my computer has the pam package installed and has the directory /etc/pam.d/sshd, does it mean for sure when I ssh to my computer, I am authenticated through pam modules? The /etc/pam.d/sshd looks ...
0
votes
1answer
78 views

Store passwords of Linux users in plain text - on purpose [duplicate]

I want to reset passwords temporarily to log in as root at least one time to change passwords. I have access to the hard drive and I can run a live distro to gain root access. I did think it would be ...
0
votes
2answers
306 views

Make file in linux readonly

Is there a way to make a file readonly permanently in linux. Or can I put a password to a file to make it readonly, then apply that password again to change its permission, or before they can alter ...
0
votes
1answer
3k views

Setting up the superuser password for the first time

How can I set up the super user password for the first time in Zorin OS, since the installer didn't ask me to provide one. I have experience with Fedora and openSUSE, but they asked me for the ...
0
votes
1answer
44 views

Login retrieval in osx [duplicate]

I got an old Mac G4 (powerPC) from the company who wanted to put it in a bin. The company agreed that I can take it home for private use. It is running an early version of OSX but because it is old ...
0
votes
1answer
13 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 ...
0
votes
1answer
34 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
16 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
37 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 ...
0
votes
1answer
28 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 ...