08-10-2001
1. <your local unix machines host name/Ip Address > <ur user name>
for Ex:- 12.12.23.43 nicholas
This is ur local system's IP address & local user name...
2. Please place this file into users home direcotry on the remote systems in to which u want to try remote activities.
Ex: If u want to login on the remote system as root, then place this file in the root directory itself i.e. under '/'
If u want to login on the remote system as xxxx, then place this file in the /usr/users/xxxx (this is the home directory of the users xxxxx on the remote system).
3. I'm not shure about this....
Do let us know....
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
Does anyone have any idea on how I can create a loop when running a remote shell. e.g.
If I want to execute the following command remotely and log the output locally
for x in `lsvg`
do
lsvg $x
done > /tmp/myfile
I have tried
rsh myhost -l root for x in `lsvg`^Jdo^Jlsvg $x^Jdone... (1 Reply)
Discussion started by: jhansrod
1 Replies
2. UNIX for Dummies Questions & Answers
Please I need your help.
I want to run remotely a unix shell that run a java process, from a Visual Basic Client.
Thanks
mac33
:) (4 Replies)
Discussion started by: mac33
4 Replies
3. Programming
Hello,
Where can I find some Remote shell program in UNIX Environment?
thx (5 Replies)
Discussion started by: kennethchow
5 Replies
4. Shell Programming and Scripting
Hi,
root@air01a>SS7Manager -status
This command gives correct output. But when I write this in script and run it on SUNMC (which can connect to air01 and by default login as root). It gives the error "SS7manager not found" or "can not open". Here is the scripts.
#!/bin/sh
rsh air01a... (4 Replies)
Discussion started by: lastkey
4 Replies
5. HP-UX
hi how can i make remote shell to hp-ux from linux? (1 Reply)
Discussion started by: dereckfun
1 Replies
6. Shell Programming and Scripting
Hi All,
i have two machines like x and y . my requirement is i should connect to machine Y from x through ssh connection . and do some operation such as copy and move and delete files in Y machine .
i tried with this code but it is doing in machine x only . and i need to exit from Y when... (1 Reply)
Discussion started by: rateeshkumar
1 Replies
7. Shell Programming and Scripting
I m trying to run a batch script in remote desktop which executes unix commands on the unix server...the problem is i wnt the output in HTML format.so in my batch script i m giving the cmd like
ssh hostname path ksh HC_Report.ksh>out.html
...but it generates the HTML file in
remote desktop .i... (2 Replies)
Discussion started by: navsan
2 Replies
8. Shell Programming and Scripting
I solved my issue by using the following code
#!/bin/bash
function GET_STATUS {
#values Active Passive Failed
ssh -a localhost '/home/user/fakecommand.sh'
}
STATE="unknown"
until ]
do
echo $STATE
sleep 5
STATUS=`GET_STATUS`
echo $STATUS | grep Active &&... (1 Reply)
Discussion started by: $scipt_Kid
1 Replies
9. Shell Programming and Scripting
Geeks,
Could you please help me out in my script and identify the missing piece. I need to check/get the exit status of a remote command executed on remote host through script and send out an email when process/processes is/are not running on any/all server(s).
Here's the complete... (5 Replies)
Discussion started by: lovesaikrishna
5 Replies
10. Shell Programming and Scripting
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
ruserok(3) Library Functions Manual ruserok(3)
NAME
ruserok - Allows servers to authenticate clients
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <unistd.h>
int ruserok ( char *host, int root_user, char *remote_user, char *local_user );
PARAMETERS
Specifies the name of a remote host. Specifies a value to indicate whether the effective user ID of the calling process is that of a root
user. A value of 0 (zero) indicates the process does not have a root user ID. A value of 1 indicates that the process has local root user
privileges, and the /etc/host.equiv file is not checked. Points to a username that is valid at the remote host. Any valid username can be
specified. Points to a username that is valid at the local host. Any valid username can be specified.
DESCRIPTION
The ruserok() (remote command user OK) function allows servers to authenticate clients requesting services.
The hostname must be specified. If the local domain and remote domain are the same, specifying the domain parts is optional. To determine
the domain of the host, use the gethostname() function. The ruserok() function checks for this host in the /etc/host.equiv file. Then, if
necessary, the subroutine checks a file in the user's home directory at the server called $HOME/.rhosts for a host and remote user ID.
RETURN VALUES
The ruserok() function returns 0 (zero) if the subroutine successfully locates the name specified by the host parameter in the
/etc/hosts.equiv file or if the IDs specified by the host and remote_user parameters are found in the $HOME/.rhosts file.
If the name specified by the host parameter was not found, the ruserok() function returns a value of -1.
FILES
Contains service names. Specifies foreign hostnames. Specifies the remote users of a local user account.
RELATED INFORMATION
Functions: gethostname(2), rcmd(3), rresvport(3), sethostname(2)
Commands: rlogind(8), rshd(8) delim off
ruserok(3)