Since Solaris passwd does not have --stdin option can you advise how to change the password for 30 users with a script. The password can be the same one. I`ve tried already echoing, xargs, cat and similar.
Thanks.
---------- Post updated at 04:04 AM ---------- Previous update was at 03:13 AM ----------
Done it, thanks to my colleagues for suggesting this
One bash script with
One expect script called ./chpass.exp
Hello chiefs :)
I have a SUN Enterprise 250, running Solaris 8.5 - I have managed to be able to connect a dumb terminal to the box via a standard straight-through rj45 cable, to my ibm laptop. OK so Putty can connect to the box via ssh - nice! But I dont have the password for root - or any... (1 Reply)
i'm trying to change passwd remotely in unix (solaris) and tried using "expect" but it is not working.
Any ideas to change the passwd remotely using a shell script? (1 Reply)
Dear all,
One one of the systems running solaris 8 the oracle account has a issue when trying to set the passwd. Following is what i get when the passwd command is executed.
:/opt/oracle> passwd
Enter existing login password:
System configuration error. Please contact your administrator.... (1 Reply)
Hi Gurus,
i have ussers cannot change their passwords, neither can root change the user's password.
O.S. Solaris 8
up−to−date on security patchaes as far as I know.
Examples (names have been changed to protect the guilty):
User logged on:
$ passwd
passwd: Changing password for <user>... (8 Replies)
I have turned off PermitEmptyPasswords in sshd_config, but a user with empty passwd (deleted by passwd -d user) can still login without password, why? it is big security concern, linux doesn't have the issue.
$ uname -a
SunOS 5.10 Generic_118855-14 i86pc i386 i86pc
... (8 Replies)
Hi,
I am using solaris 10. i am facing a strange problem regarding os passwd. i have a user oracle with passwd abc123
when i open a putty session with the os using abc123 it logs on. but if i use abc123!@# it agian log on without passwd error.
I came to know about the issue that if i... (5 Replies)
Hi Folks,
I have Solaris 10, latest release.
We have passwd aging set in /etc/defalut/passwd.
I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging.
When I reset the users passwd using passwd command, it re enables... (3 Replies)
Hello
I am trying to monitor when a user account gets added to my solaris server.
Does anyone know how I can set up an snmptrap for changes in the /etc/passwd file ? (4 Replies)
Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies
LEARN ABOUT DEBIAN
srptool
srptool(1) General Commands Manual srptool(1)NAME
srptool - Simple SRP password tool
SYNOPSIS
srptool [options]
DESCRIPTION
Very simple program that emulates the programs in the Stanford SRP (Secure Remote Password) libraries using GnuTLS. It is intended for use
in places where you don't expect SRP authentication to be the used for system users.
In brief, to use SRP you need to create two files. These are the password file that holds the users and the verifiers associated with them
and the configuration file to hold the group parameters (called tpasswd.conf).
OPTIONS --bits BITS
specify the number of bits for prime numbers (used only when the --create-conf option is used).
--create-conf FILE
Generate a tpasswd.conf file.
-h, --help
Prints a short reminder of the command line options.
-i, --index INDEX
Specify the index of the parameters in tpasswd.conf to use.
-p, --passwd FILE
Specify a password file.
-c, --passwd-conf FILE
Specify a password configuration file.
-s, --salt SALT
Specify salt size for crypt algorithm.
-u, --username username
Specify username.
--verify
Just verify password.
EXAMPLES
To create tpasswd.conf which holds the g and n values for SRP protocol (generator and a large prime), run:
$ srptool --create-conf /etc/tpasswd.conf
This command will create /etc/tpasswd and will add user 'test' (you will also be prompted for a password). Verifiers are stored by default
in the way libsrp expects.
$ srptool --passwd /etc/tpasswd
--passwd-conf /etc/tpasswd.conf -u test
This command will check against a password. If the password matches the one in /etc/tpasswd you will get an ok.
$ srptool --passwd /etc/tpasswd
--passwd-conf /etc/tpasswd.conf --verify -u test
AUTHOR
Nikos Mavrogiannopoulos <nmav@gnutls.org> and others; see /usr/share/doc/gnutls-bin/AUTHORS for a complete list.
This manual page was written by Ivo Timmermans <ivo@debian.org>, for the Debian GNU/Linux system (but may be used by others).
February 21st 2005 srptool(1)