PDA

View Full Version : Quick question about Bash (and rsh)


Tuork
11-07-08, 11:15 AM
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, 01:39 PM
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, 01:52 PM
Hmm... just says:

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

and "rsh" is highlighted in red.

wnd
11-08-08, 03:23 AM
What you are talking about is configuration dependent. What does "stat /usr/bin/rsh" tell?

whig
11-08-08, 04:03 PM
It's setuid (http://en.wikipedia.org/wiki/Setuid) - in this case executed as root.

Tuork
11-08-08, 06:45 PM
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, 05:27 AM
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 (http://en.wikipedia.org/wiki/File_system_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, 01:48 PM
There you go. Like Whig said, the file has setuid flag on (emphasis added). See Wikipedia for more about file permissions (http://en.wikipedia.org/wiki/File_system_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-10-08, 12:12 AM
@Whig:
setuid, huh? Sneaky.
You wouldn't happen to know how to get rsh to work, would you? ;)
sorry, not a rsh user.