nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   General Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=27)
-   -   Quick question about Bash (and rsh) (http://www.nvnews.net/vbulletin/showthread.php?t=122647)

Tuork 11-07-08 09:15 AM

Quick question about Bash (and rsh)
 
What the hell does it mean when a file is highlighted in red (and flashing)?

I'm guessing it can't be good.

Specifically, it's the /usr/bin/rsh file.

On that note, can someone give me a quick guide on how to set up rsh? Google hasn't been helpful yet...

Many thanks.

pross 11-07-08 11:39 AM

Re: Quick question about Bash (and rsh)
 
it usually means its an old symbolic link thats no longer there, for example...

/usr/bin/rsh was possibly linked to /usr/sbin/rsh

go into /usr/bin then try ls -l rsh it'll show you where it used to link to...

hope it helps

Tuork 11-07-08 11:52 AM

Re: Quick question about Bash (and rsh)
 
Hmm... just says:

<permits> root root <number> Nov 29 2007 rsh

and "rsh" is highlighted in red.

wnd 11-08-08 01:23 AM

Re: Quick question about Bash (and rsh)
 
What you are talking about is configuration dependent. What does "stat /usr/bin/rsh" tell?

whig 11-08-08 02:03 PM

Re: Quick question about Bash (and rsh)
 
It's setuid - in this case executed as root.

Tuork 11-08-08 04:45 PM

Re: Quick question about Bash (and rsh)
 
Quote:

Originally Posted by wnd (Post 1838541)
What you are talking about is configuration dependent. What does "stat /usr/bin/rsh" tell?

$ stat /usr/bin/rsh
File: `/usr/bin/rsh'
Size: 11328 Blocks: 24 IO Block: 4096 regular file
Device: 811h/2065d Inode: 92610659 Links: 1
Access: (4755/-rwsr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2008-11-04 12:00:06.000000000 -0500
Modify: 2007-11-29 20:13:12.000000000 -0500
Change: 2008-11-04 10:52:29.000000000 -0500

I have no idea what that means. :(


@Whig:
setuid, huh? Sneaky.
You wouldn't happen to know how to get rsh to work, would you? ;)

wnd 11-09-08 03:27 AM

Re: Quick question about Bash (and rsh)
 
Quote:

Originally Posted by Tuork (Post 1839016)
Access: (4755/-rwsr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)

There you go. Like Whig said, the file has setuid flag on (emphasis added). See Wikipedia for more about file permissions.

And as for setting up rsh, don't. Don't use rsh unless the environment is totally secure or you absolutely need to save all the CPU time possible. If you need to have password-less login, set up SSH with an RSA/DSA key.

Tuork 11-09-08 11:48 AM

Re: Quick question about Bash (and rsh)
 
Quote:

Originally Posted by wnd (Post 1839345)
There you go. Like Whig said, the file has setuid flag on (emphasis added). See Wikipedia for more about file permissions.

And as for setting up rsh, don't. Don't use rsh unless the environment is totally secure or you absolutely need to save all the CPU time possible. If you need to have password-less login, set up SSH with an RSA/DSA key.

Well, my setup is kind of secure. We have one machine connected to the internet (behind my Uni's firewall). Behind this machine is a cluster of 6 identical computer nodes.
I already have passwordless login using SSH/RSA, but I'm trying to get Chromium+DMX (google it, pretty much first links) to work, and I need rsh in order to use some python scripts that come built in.

My knowledge of python is pretty much null, so I don't know how to alter the script to use SSH (which actually be a much better solution to my problem).

whig 11-09-08 10:12 PM

Re: Quick question about Bash (and rsh)
 
Quote:

Originally Posted by Tuork (Post 1839016)
@Whig:
setuid, huh? Sneaky.
You wouldn't happen to know how to get rsh to work, would you? ;)

sorry, not a rsh user.


All times are GMT -5. The time now is 08:06 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.