03-26-2020
Shell Script for "Password Management"
Hi all,
Does anyone know of a 'simple' shell script available out there to do with 'password management'?
Age is really quickly catching up so one of these days I will really need to have a password management of some sort. Unfortunately, I am not the sysadmin of the servers and I can't install any utilities of sort, I can only use whatever's available now on the server. I've found some password manager tools, like pass, gopass, titan etc but as mentioned, I can 't install it. There are some Perl and Python scripts available now I presume, but I am sure I don't have much of the modules used on those scripts.
At the moment, am using KeePass on Windows and copying/pasting stuff from Windows to *nix server that I access via RDP and PuTTY/ssh to the server.
Am just looking at something real 'basic'. one that I can 'store' my password as an encrypted file. And then, whenever I need it, I just run the same script passing a username which will then display the password in plaintext. I will have to supply a password or pass phrase or something like that when I run the script.
Anyway, hoping for some feedback, suggestion, advise on this. Maybe someone already know of a script that I can use and modify to suit for what I am wanting to do.
Thanks in advance.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I have installed solaris 10 on an intel machine. Logged in as root. In CDE, i open terminal session, type login alex (normal user account) and password and i get this message
No utpmx entry: you must exec "login" from lowest level "shell" :confused:
What i want is: open various... (0 Replies)
Discussion started by: peterpan
0 Replies
2. Shell Programming and Scripting
Hi Folks,
I am writing a shell script that can logon to remote machine automatically. But, I am facing one problem. I am using "ssh" command in script and while login into remote machine it asks for passowrd and it stops for STDIN input for password. I want my script to supply password... (2 Replies)
Discussion started by: gydave
2 Replies
3. AIX
Hi,
This is odd, however here goes. There are several shell scripts that run in our production environment AIX 595 LPAR m/c, which has sufficient memory 14GB (physical memory) and horsepower 5CPUs. However from time to time we get the following errors in these shell scripts. The time when these... (11 Replies)
Discussion started by: jerardfjay
11 Replies
4. UNIX for Advanced & Expert Users
I want to customize the "change password" through unix shell. when a user's password is expired and he/she logs into shell next time he/she will be asked to change his/her password. At this time when the user provides new password instead of unix doing the "password change" action I want to call my... (4 Replies)
Discussion started by: sharmanikhilesh
4 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. Shell Programming and Scripting
Hi
I'm trying to run a script " abc.sh" which triggers "use.sh" .
abc.sh is nothing but a "expect" script which provides username and password automatically to the use.sh script.
Please find below the scripts:
#abc.sh
#!/usr/bin/expect -f
exec /root/use.sh
expect "*name*"
send... (1 Reply)
Discussion started by: baddykam
1 Replies
7. AIX
Friends,
Need someone's help in helping me with the below requirement for a script:
> For a list of servers(over 100+), I need to login into each of them(cannot configure password-less ssh) & grab few configuration details <
I know, this is possible through expect programming in a simple... (2 Replies)
Discussion started by: thisissouvik
2 Replies
8. Shell Programming and Scripting
Friends,
Need someone's help in helping me with the below requirement for a script:
> For a list of servers(over 100+), I need to login into each of them(cannot configure password-less ssh) & grab few configuration details <
I know, this is possible through expect programming in a simple... (14 Replies)
Discussion started by: thisissouvik
14 Replies
9. Shell Programming and Scripting
Ladies & Gents,
Can one of you gurus please show me a very simple "expect" script to change the password in Solaris in a script, please? Nothing fancy, no error checking, no nothing. Just to change the password of a new user, it's all.
Many thanks in advance. U guys have honestly earned my... (1 Reply)
Discussion started by: Hiroshi
1 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT NETBSD
pam_unix
PAM_UNIX(8) BSD System Manager's Manual PAM_UNIX(8)
NAME
pam_unix -- UNIX PAM module
SYNOPSIS
[service-name] module-type control-flag pam_unix [options]
DESCRIPTION
The UNIX authentication service module for PAM provides functionality for two PAM categories: authentication and account management. In
terms of the module-type parameter, they are the ``auth'' and ``account'' features. It also provides a null function for session management.
UNIX Authentication Module
The UNIX authentication component provides functions to verify the identity of a user (pam_sm_authenticate()), which obtains the relevant
passwd(5) entry. It prompts the user for a password and verifies that this is correct with crypt(3).
The following options may be passed to the authentication module:
debug syslog(3) debugging information at LOG_DEBUG level.
use_first_pass If the authentication module is not the first in the stack, and a previous module obtained the user's password, that password
is used to authenticate the user. If this fails, the authentication module returns failure without prompting the user for a
password. This option has no effect if the authentication module is the first in the stack, or if no previous modules
obtained the user's password.
try_first_pass This option is similar to the use_first_pass option, except that if the previously obtained password fails, the user is
prompted for another password.
auth_as_self This option will require the user to authenticate himself as the user given by getlogin(2), not as the account they are
attempting to access. This is primarily for services like su(1), where the user's ability to retype their own password might
be deemed sufficient.
nullok If the password database has no password for the entity being authenticated, then this option will forgo password prompting,
and silently allow authentication to succeed.
UNIX Account Management Module
The UNIX account management component provides a function to perform account management, pam_sm_acct_mgmt(). The function verifies that the
authenticated user is allowed to login to the local user account by checking the password expiry date.
The following options may be passed to the management module:
debug syslog(3) debugging information at LOG_DEBUG level.
UNIX Password Management Module
The UNIX password management component provides a function to perform account management, pam_sm_chauthtok(). The function changes the
user's password.
The following options may be passed to the password module:
debug syslog(3) debugging information at LOG_DEBUG level.
no_warn suppress warning messages to the user. These messages include reasons why the user's authentication attempt was declined.
passwd_db=name Change the user's password only the specified password database. Valid password database names are:
files local password file
nis NIS password database
FILES
/etc/master.passwd default UNIX password database.
SEE ALSO
passwd(1), getlogin(2), crypt(3), getpwent(3), syslog(3), nsswitch.conf(5), passwd(5), nis(8), pam(8)
BSD
February 26, 2005 BSD