01-14-2002
I will leave ssh up to the Systems Administrators, to see if they can provide some type of solution to synchronize our passwords. Some Admins but not all, use NIS+ which works well.
I don't care if I pass a clear text password. How would I create the script anyway?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to write a script which will automatically take password
sequentially from a file after every 10 days.
i.e the passwd command should be executed automatically every 10 days and it should take the input from the password file sequentially.
Has any1 got a solution?????????????? (1 Reply)
Discussion started by: rahulrathod
1 Replies
2. UNIX for Dummies Questions & Answers
All,
I am unable to change a password for the user called : poller
I am logged in as root When I do the following command
passwd poller
New Password:
Permission denied
Whe i enter the new password, it gives the above error.
When i log in as poller and then execute the command, then... (2 Replies)
Discussion started by: rahulrathod
2 Replies
3. Shell Programming and Scripting
I need to change root password automatically in some servers all three months. I want to run this process in one of the servers and reply it to the others. The password must be known by the administrator. (3 Replies)
Discussion started by: Alrica
3 Replies
4. Shell Programming and Scripting
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)
Discussion started by: indrajit_renu
3 Replies
5. Shell Programming and Scripting
I need to retrieve thousands of lines of information from hundreds of nodes. Each node requires a passowrd in order to retrieve the information. Fortunately, the password is the same for each one of them. So I am trying to come up with a script that would allow me to include the password so I can... (0 Replies)
Discussion started by: Ernst
0 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I was writing one script which includes to switch to the another telnet automatically from the present telnet server. I was using rlogin but firstly it takes the same user name of the present telnet and secondly it is prompting for the password.
But i want to switch to the another telnet... (2 Replies)
Discussion started by: Prateek
2 Replies
7. Linux
Dear Forum,
In our organization 100 user is existing. Now i want to change password for 100 user in linux server. Pls help to write script for changing password.
Regads//
Taifur (3 Replies)
Discussion started by: taifurakhand
3 Replies
8. Solaris
Hello Experts,
There is a log file which has date stamp, I just wanted to change the date automatically on daily basis when it runs.
Tried the below, but no luck.
grep -i error /var/bv1to1_var/logs/bv03.bectondickinson.com/bvlog.out.`date +\%Y\%m\%d` | tee error_bv03.doc
I would highly... (10 Replies)
Discussion started by: seenuvasan1985
10 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a script called user.sh that parses the name and password of given in a file (user.txt) and creates the user... (1 Reply)
Discussion started by: Nygenesis
1 Replies
10. Shell Programming and Scripting
Hi
I'm working with AIX 6.1
I would like to ssh to a server without entering password ( to monitor something) but there's no way to do that by authentication keys, so I need to write a script which can ssh to that server without entering password ( no need to hide passsword in the script, just an... (9 Replies)
Discussion started by: bobochacha29
9 Replies
LEARN ABOUT SUNOS
yppasswd
yppasswd(1) User Commands yppasswd(1)
NAME
yppasswd - change your network password in the NIS database
SYNOPSIS
yppasswd [username]
DESCRIPTION
The yppasswd utility changes the network password associated with the user username in the Network Information Service (NIS) database. If
the user has done a keylogin(1), and a publickey/secretkey pair exists for the user in the NIS publickey.byname map, yppasswd also re-
encrypts the secretkey with the new password. The NIS password may be different from the local one on your own machine.
yppasswd prompts for the old NIS password, and then for the new one. You must type in the old password correctly for the change to take
effect. The new password must be typed twice, to forestall mistakes.
New passwords must be at least four characters long, if they use a sufficiently rich alphabet, and at least six characters long if mono-
case. These rules are relaxed if you are insistent enough. Only the owner of the name or the super-user may change a password; superuser on
the root master will not be prompted for the old password, and does not need to follow password construction requirements.
The NIS password daemon, rpc.yppasswdd must be running on your NIS server in order for the new password to take effect.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO
keylogin(1), login(1), nis+(1), nispasswd(1), passwd(1), getpwnam(3C), getspnam(3C), secure_rpc(3NSL), nsswitch.conf(4), attributes(5)
WARNINGS
Even after the user has successfully changed his or her password using this command, the subsequent login(1) using the new password will be
successful only if the user's password and shadow information is obtained from NIS. See getpwnam(3C), getspnam(3C), and nsswitch.conf(4).
NOTES
The use of yppasswd is discouraged, as it is now only a wrapper around the passwd(1) command, which should be used instead. Using passwd(1)
with the -r nis option (see nis+(1)) will achieve the same results, and will be consistent across all the different name services avail-
able.
BUGS
The update protocol passes all the information to the server in one RPC call, without ever looking at it. Thus, if you type your old pass-
word incorrectly, you will not be notified until after you have entered your new password.
SunOS 5.10 28 Nov 2001 yppasswd(1)