I want to change the password of unix users on a number of servers.My plan was to ssh to all the servers in a shell script and use the passwd command. I tried to do so but everytime i run it i get this error.
I have gone through a number of posts but dint see anyone else having this issue.
Also, I dont mind entering the password on prompts , i dont want to install expect.Please let me know if I am doing something wrong.
Last edited by Franklin52; 06-16-2011 at 06:24 AM..
Reason: Please use code tags
I have SunOs 5.8. I need to change password using a unix shell script. I have tried to pipe the passwords to the passwd command but does not work. Pls provide a script to change passwds of a list of users using a shell script.
( I have also tried crypt() but did not work)
The flow of the... (2 Replies)
hi,
my problem is that i am calling a script from my perl program.
the script checks wether a particular process is running or not if the process is not running then it should start the process.
the problem here is that the front end logs into backend with a user which does not have the... (0 Replies)
Hi all,
I am trying to eject the cdrom from a livecd after certain stage...
Now assuming that it is possible to eject,please consider my issue!!!
The OS boots into a regular user by default...so i am unable to use the eject command to push out the drive...
However if i try pfexec eject it... (3 Replies)
I am trying to write a script to change passwords for the same user on multiple servers.
My environment runs purely ssh / scp not rsh / rcp and therefore coping using rcp is not an option.
I have been playing with expect to perform tasks but think there must be a better way.
Has anyone got... (7 Replies)
Hi,
Is there a shell script or any software to genarate random passwords and the passwords expire automatically after a stipulated time period.
Please suggest. (2 Replies)
Hi,
Is there an shell script/batch file to genarate random passwords which expires after a stipulated time period? Please suggest a software which does this for AIX and windows both else.
Thanks. (5 Replies)
Hi Experts,
I had tried to executes this script to change the user password through script:
No lines in buffer
#!/bin/ksh
cat /etc/passwd | grep -v userid >> /tmp/pass.tmp1
cat /etc/passwd | grep userid >> /tmp/pass.tmp2
PASS1=`cat /tmp/pass.tmp2 | cut -d ":" -f2`
PASS2=`q2w3e4r5`
sed... (3 Replies)
Hi,
I'm new to this site, so my apologies if this is posted to the wrong board.
I'm the student administrator of a small computer science lab (20 Win 7 PCs) at a university. The logins to the PCs are handled by samba (v. 3.5.8) on a CentOS server (kernel v. 2.6.9-100.ELsmp). Recently I ... (1 Reply)
Hello Experts,
Need some direction on creating shell script for following environment:
We have about 20 people in the team working as Oracle DBA's (sysdba's and appdba's). Total Servers which is a mix of Unix and Linux are 200. We do not have Root user access on any of the servers and... (3 Replies)
Hi All,
I am trying to create a script with the help of while and expect loop to do the following:
1. script will pick up the servers one by one from server_list file and will do ssh to it.
2. for each server it will change the password of user test1.
3. script should also provide logs for... (1 Reply)
Discussion started by: omkar.jadhav
1 Replies
LEARN ABOUT DEBIAN
passwd.nntp
PASSWD.NNTP(5) File Formats Manual PASSWD.NNTP(5)NAME
passwd.nntp - passwords for connecting to remote NNTP servers
DESCRIPTION
The file /etc/news/passwd.nntp contains host-name-password triplets for use when authenticating client programs to NNTP servers. This file
is normally interpreted by the NNTPsendpassword routine in libinn(3). Blank lines and lines beginning with a number sign (``#'') are
ignored. All other lines should consist of three or four fields separated by colons:
host:name:password
host:name:password:style
The first field is the name of a host, and is matched in a case-insensitive manner. The second field is a user name, and the third is a
password. The optional fourth field specifies the type of authentication to use. The default is ``authinfo'' which means that NNTP
``authinfo'' commands are used to authenticate to the remote host. If either the username or password are empty, then the related command
will not be sent. (The ``authinfo'' command is a common extension to RFC 977.)
For example:
## UUNET needs a password, MIT doesn't.
mit.edu:bbn::authinfo
uunet.uu.net:bbn:yoyoma:authinfo
This file should not be world-readable.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.14, dated 1996/09/06.
SEE ALSO innd(8), libinn(3).
PASSWD.NNTP(5)