Operating System - HP-UX
1836460 Members
2432 Online
110101 Solutions
New Discussion

Re: No admin command in remsh

 
Aristotle
Advisor

No admin command in remsh

I've been setting up remsh in my HPUX server. All i can do is bdf,uname,uptime etc.

But i can not execute ifconfig,useradd etc.
# remsh scipl3 uname -a
HP-UX scipl3 B.11.11 U 9000/800 scipl3 unlimited-user license
# remsh scipl3 ifconfig -a
sh: ifconfig: not found.
# remsh scipl3 useradd test
sh: useradd: not found.
# remsh scipl3 uptime
3:47pm up 26 days, 1:34, 1 user, load average: 0.01, 0.01, 0.02
#

6 REPLIES 6
Sajjad Sahir
Honored Contributor

Re: No admin command in remsh

Dear
what is the content of the following file

/etc/hosts.equiv
.rhosts file

sajjad
Rasheed Tamton
Honored Contributor

Re: No admin command in remsh

remsh scipl3 -n /usr/sbin/lanscan

remsh scipl3 -l root -n /usr/sbin/ifconfig lan0 or lan1 or lan2 (whatever it is)

remote account name must be equivalent to the originating account

remsh scipl3 -n ifconfig /usr/sbin/ifconfig lan2

By default, remsh uses the following path when executing the specified command:
/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/contrib/bin:/usr/local/bin

There is no ifconfig -a avble in HP-UX
You have to give full path of the command, if it is not in the above path or in the /usr/sbin.

Rgds.


Rasheed Tamton
Honored Contributor

Re: No admin command in remsh

> remsh scipl3 -n ifconfig /usr/sbin/ifconfig lan2

remsh scipl3 -n /usr/sbin/ifconfig lan2
Aristotle
Advisor

Re: No admin command in remsh

Already configure that .rhosts, hosts.equiv. I guess you can not execute remsh if have not configrued those files. Yeah i know there's no ifconfig -a, in hp -ux. But the point is, the system do not know the command ifconfig.

# remsh scipl3 ifconfig lan0
sh: ifconfig: not found.
# remsh scipl3 ifconfig lan1
sh: ifconfig: not found.
# remsh scipl3 ifconfig vgscan
sh: ifconfig: not found.
# remsh scipl3 vgscan
Rasheed Tamton
Honored Contributor

Re: No admin command in remsh

Please read my above post.
Aristotle
Advisor

Re: No admin command in remsh

owwwww~ i got it men,hehehe thanks a lot :). This is for Disaster Recovery.