This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / stupid 问题:unix机器A和B,试图从A rcmd B。非superuser(root) 可以rcmd, root不行,Error message:permission denied。没在B上设/etc/hosts.equiv, 设了/.rhosts Any idea? @@
-sammy(动力);
2004-6-14
(#1763621@0)
-
can your root login directly remotely, without using su? if not, u can't do rcmd as root. usually root is denied remote login by allowing only /dev/console as valid console.
-speed(如风);
2004-6-14
(#1763650@0)
-
Yes I can telnet and log on as root directly.
-sammy(动力);
2004-6-14
(#1763659@0)
-
Yes. Change to permit root in the configuration file. The exact name would be in the man page. I've not used r cmd for many years. Most customers use ssh to run remote commands.It's very common not to allow root by default for obvious security reasons.
-mocha(Heart closed-关心);
2004-6-14
{76}
(#1763666@0)
-
I still don't get the point. There is no file mentioned in the man page I haven't touched, and I can telnet as root.
-sammy(动力);
2004-6-14
(#1763696@0)
-
In addition to check .rhosts and hosts.equiv, check also /etc/hosts..
-mocha(Heart closed-关心);
2004-6-14
(#1763675@0)
-
I have, it is ok. @@
-sammy(动力);
2004-6-14
(#1763698@0)
-
我觉得:如果你说的RCMD 是说REMOTE CMD(远程命令)的话,我想也许是因为UNIX机器的一些无副作用,可能就是TELENT.我知道一般来说, UNIX机器的一些服务, 象TELNET, 是不对ROOT开放的, 你必须专门打开ROOT的访问权,但是普通用户是可以的,之所以这样设计的原因是因为ROOT的权限是最高的,如果系统默认ROOT可以远程登陆,那么非常不安全.系统要求你专门再打开的原因是因为这样至少你知道你打开了,你需要承担责任.否则系统默认打开, 很多人自己都不知道,更危险
-amanda1977(让自己忙碌起来吧!);
2004-6-14
{410}
(#1763699@0)
-
谢谢。“系统要求你专门再打开”...打开什么?
-sammy(动力);
2004-6-14
(#1763709@0)
-
what unix? u sure the content of /.rhosts is correct?
-pasu(InTheSky);
2004-6-14
(#1763815@0)
-
Sco. I believe it is correct, for its format is not different from what's in $HOME/.rhosts for the non-superuser.
-sammy(动力);
2004-6-14
(#1764316@0)
-
Would this help? expecially, 2, 7, 9
-pasu(InTheSky);
2004-6-14
(#1764355@0)
-
Thank you, I'll try to figure it out tonight.
-sammy(动力);
2004-6-14
(#1764365@0)
-
sco几年没有碰了,呵呵
-pasu(InTheSky);
2004-6-14
(#1764367@0)
-
two cents....1, some unix system has restrict to root account, try to find sth such as "/etc/security" or other similiar conf file to disable this protection.
2, the root home dir may not be "/", make sure the .rhosts is under the home dir of root account, sometimes you have to verify it by typing in "cd ~" while u log in as root.
-leafwind(leafinwind);
2004-6-14
{329}
(#1764408@0)
-
Thank you buddy.
-sammy(动力);
2004-6-15
(#1764805@0)
-
Solution: #chmod 0600 /.rhosts (It was 0644) @@$!@~%&*$ Thanks everybody!
-sammy(动力);
2004-6-17
(#1768102@0)
-
add a .rhost to the user's home ( the id u use to rcmd, for example, /user/uid/.rhost)
-hellen03(joy);
2004-6-18
(#1770708@0)
-
Thx, but "非superuser(root) 可以rcmd", the file $HOME/.rhost IS there.
-sammy(动力);
2004-6-19
(#1771444@0)