Search Results

Search: Posts Made By: varunksharma87
1,230
Posted By cfajohnson
for server in server01 server02 ... server50 do...
for server in server01 server02 ... server50
do
ssh "$server" "df -k"
done > "$textfile"

Or, if the server names are one to a line in a file:

while IFS= read -r server
do
ssh "$server"...
Forum: Solaris 01-03-2012
15,163
Posted By Peasant
userdel should not delete home directory unless...
userdel should not delete home directory unless specifed with -r option.

bash-3.2# uname -a
SunOS kerber 5.10 Generic_147441-01 i86pc i386 i86pc
bash-3.2# useradd -d /export/home/john -m john...
Forum: Solaris 01-03-2012
15,163
Posted By methyl
I would take option 2 of post #6. Create a new...
I would take option 2 of post #6. Create a new home directory with the correct permissions for the owners uid. Copy passwd and shadow files just in case. Then use "vipw" (not just "vi") to edit the...
Forum: Solaris 01-02-2012
15,163
Posted By Just Ice
2 options i can think of ... 1. rename the...
2 options i can think of ...

1. rename the home directory temporarily, run userdel on the user, and rename the home directory back to the original name

2. make new home directory and then edit...
Forum: Solaris 01-02-2012
15,163
Posted By christr
The userdel command won't delete the home...
The userdel command won't delete the home directory unless you use the -r option. However, if the data is that critical and you could always tar it somewhere before you delete the account just to...
2,641
Posted By Chirel
Hi, i never use expect so i can't help you...
Hi,

i never use expect so i can't help you on this, but there another way to solve that.

Use the call
ssh -o StrictHostKeyChecking=no $user@$ip

This way it will never ask you and auto add...
14,347
Posted By purdym
I don't know solaris....but, why don't you just...
I don't know solaris....but, why don't you just copy /etc/passwd (or the shadow file) from 10.2.135.1 to the rest of the servers?

And have all the users change their passwords on 10.2.135.1.
Forum: Solaris 02-13-2011
6,227
Posted By jim mcnamara
pfiles [pid] shows the files a process has open;...
pfiles [pid] shows the files a process has open; it is like fuser and lsof. You can use it on processes you own, or all processes if you are root.
2,224
Posted By pludi
Only the administrators can create new forums....
Only the administrators can create new forums. This isn't 4chan...
Showing results 1 to 9 of 9

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