Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Hiroshi
1,465
Posted By Hiroshi
Can someone please show me a very simple "expect" script to change password in Solaris please?
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...
5,411
Posted By Hiroshi
This is just a test for me to see what's the...
This is just a test for me to see what's the difference between using code tags and not. Please ignore; thanks.

scp -r tstnglbz1:/export/home/mchavoshi/bin .

scp -r...
5,411
Posted By Hiroshi
Can someone please explain to me what are "code...
Can someone please explain to me what are "code tags"? How to use them? And why are they required?

Many thanks in advance.
5,411
Posted By Hiroshi
Apparently, Solaris & Linux are a lot different...
Apparently, Solaris & Linux are a lot different and NOT just a little. I couldn't get the simple scp command to work on Solaris and it worked perfectly on all flavors of Linux.

scp -r...
5,411
Posted By Hiroshi
OK guys, thanks so much @drysdalk for your...
OK guys, thanks so much @drysdalk for your excellent trouble shooting idea (running every command individually on the command line). The script works perfect, the way it is, it only hangs on stupid...
5,411
Posted By Hiroshi
@Rudic, as previously stated, there is nothing...
@Rudic, as previously stated, there is nothing wrong with the way it changes the password. There is something wrong with the loop. Everything the way it is, correctly changes one password for one...
5,411
Posted By Hiroshi
My shift ended an hour ago. I will test all 4...
My shift ended an hour ago. I will test all 4 servers tomorrow and will let you know. Thanks so much for your assistance. Have a good evening.
5,411
Posted By Hiroshi
that command by itself on the command line works...
that command by itself on the command line works perfect. Please see below:

root@tstnglbz1 # ssh -n munsbxlinux3 'echo -e "TestPW12345!\nTestPW12345!" | passwd mcha>
New password: Retype new...
5,411
Posted By Hiroshi
@vbe, thanks for the follow up. ssh -n hangs too....
@vbe, thanks for the follow up. ssh -n hangs too. but, here is something interesting though. When I comment out all the servers except one in the .dat file, this is what I get:

root@tstnglbz1 #...
5,411
Posted By Hiroshi
Yeah, I'm running it exactly like that, ...
Yeah, I'm running it exactly like that,

root@testserver1# ./pwchange.sh pwchange.dat

and my pwchange.dat is formatted as follows:

server1
server2
server3
server4
server5

With the...
5,411
Posted By Hiroshi
@drysdalk, I copied and pasted your version, it...
@drysdalk, I copied and pasted your version, it just hangs, I never get the prompt back.

@vbe, it does work just the way it is, but it only processes one server and not all in the list.

Thanks...
5,411
Posted By Hiroshi
A script to change password for all other servers
Hey Gurus,

I have this requirement to change the password for other servers remotely from one server. So, I installed public keys on all servers and wrote the following script to do the job....
2,251
Posted By Hiroshi
Come on folks, I need to wake up and so should...
Come on folks, I need to wake up and so should you. The only problem was that I forget to start with #!/bin/bash, it's all. As soon as I added that, it worked like a charm.

Thank you @RudiC for...
2,251
Posted By Hiroshi
Delete all log files older than 10 day and whose first string of the first line is "MSH" or "<?xml"
Dear Ladies & Gents,

I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put...
Forum: Solaris 02-08-2017
4,038
Posted By Hiroshi
Solaris 10 NFS client cannot mount a share from a Windows server
I have a Solaris 10 server, I'm trying to mount a share from a Windows nfs server. If I add this entry (tst-walnut:/test_sap_nfs - /majid nfs - yes rw,soft) to my...
Showing results 1 to 15 of 15

 

Featured Tech Videos

All times are GMT -4. The time now is 07:20 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy