Go Back   nV News Forums > Linux Support Forums > General Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-07-08, 10:15 AM   #1
Tuork
Official pain in the ass
 
Tuork's Avatar
 
Join Date: May 2003
Location: 127.0.0.1
Posts: 1,197
Send a message via MSN to Tuork
Default 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.
__________________
My avatar: "An obscure and non sensical pattern made to get people to post what they think it is" - Vamp

Dimitri:
Dell XPS M1530
Core2Duo T5550 1.86Ghz | 3GB DDR2 | 8600M GT 256MB | 250GB Hdd | BenQ FP202W 20" LCD | MX1000 mouse | Inspire T5400 5.1
Tuork is offline   Reply With Quote
Old 11-07-08, 12:39 PM   #2
pross
 
pross's Avatar
 
Join Date: Mar 2007
Posts: 183
Default 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
__________________
CPU: i7 2600k @ 4.4Ghz GPU: GTX 560ti 2G SLI PPU: GTX260 RAM: 16G Corsair Vengeance MOBO: P8Z68-V PRO GEN3 BOX: Cosmos S Cooling: Corsair H100 SSD: Corsair 120G ForceGT
pross is offline   Reply With Quote
Old 11-07-08, 12:52 PM   #3
Tuork
Official pain in the ass
 
Tuork's Avatar
 
Join Date: May 2003
Location: 127.0.0.1
Posts: 1,197
Send a message via MSN to Tuork
Default Re: Quick question about Bash (and rsh)

Hmm... just says:

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

and "rsh" is highlighted in red.
__________________
My avatar: "An obscure and non sensical pattern made to get people to post what they think it is" - Vamp

Dimitri:
Dell XPS M1530
Core2Duo T5550 1.86Ghz | 3GB DDR2 | 8600M GT 256MB | 250GB Hdd | BenQ FP202W 20" LCD | MX1000 mouse | Inspire T5400 5.1
Tuork is offline   Reply With Quote
Old 11-08-08, 02:23 AM   #4
wnd
Nerd, Geek, Freak
 
wnd's Avatar
 
Join Date: Sep 2005
Location: Finland
Posts: 703
Default Re: Quick question about Bash (and rsh)

What you are talking about is configuration dependent. What does "stat /usr/bin/rsh" tell?
__________________
web | cat

Christianity, noun: The belief that a cosmic Jewish Zombie who was his own father can make you live forever if you symbolically eat his flesh and telepathically tell him you accept him as your master, so he can remove an evil force from your soul that is present in humanity because a rib-woman was convinced by a talking snake to eat from a magical tree. [mad.frog]
wnd is offline   Reply With Quote
Old 11-08-08, 03:03 PM   #5
whig
550Ti
 
Join Date: Jan 2004
Location: New Zealand
Posts: 854
Default Re: Quick question about Bash (and rsh)

It's setuid - in this case executed as root.
whig is offline   Reply With Quote
Old 11-08-08, 05:45 PM   #6
Tuork
Official pain in the ass
 
Tuork's Avatar
 
Join Date: May 2003
Location: 127.0.0.1
Posts: 1,197
Send a message via MSN to Tuork
Default Re: Quick question about Bash (and rsh)

Quote:
Originally Posted by wnd View Post
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?
__________________
My avatar: "An obscure and non sensical pattern made to get people to post what they think it is" - Vamp

Dimitri:
Dell XPS M1530
Core2Duo T5550 1.86Ghz | 3GB DDR2 | 8600M GT 256MB | 250GB Hdd | BenQ FP202W 20" LCD | MX1000 mouse | Inspire T5400 5.1
Tuork is offline   Reply With Quote
Old 11-09-08, 04:27 AM   #7
wnd
Nerd, Geek, Freak
 
wnd's Avatar
 
Join Date: Sep 2005
Location: Finland
Posts: 703
Default Re: Quick question about Bash (and rsh)

Quote:
Originally Posted by Tuork View Post
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.
__________________
web | cat

Christianity, noun: The belief that a cosmic Jewish Zombie who was his own father can make you live forever if you symbolically eat his flesh and telepathically tell him you accept him as your master, so he can remove an evil force from your soul that is present in humanity because a rib-woman was convinced by a talking snake to eat from a magical tree. [mad.frog]
wnd is offline   Reply With Quote
Old 11-09-08, 12:48 PM   #8
Tuork
Official pain in the ass
 
Tuork's Avatar
 
Join Date: May 2003
Location: 127.0.0.1
Posts: 1,197
Send a message via MSN to Tuork
Default Re: Quick question about Bash (and rsh)

Quote:
Originally Posted by wnd View Post
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).
__________________
My avatar: "An obscure and non sensical pattern made to get people to post what they think it is" - Vamp

Dimitri:
Dell XPS M1530
Core2Duo T5550 1.86Ghz | 3GB DDR2 | 8600M GT 256MB | 250GB Hdd | BenQ FP202W 20" LCD | MX1000 mouse | Inspire T5400 5.1
Tuork is offline   Reply With Quote

Old 11-09-08, 11:12 PM   #9
whig
550Ti
 
Join Date: Jan 2004
Location: New Zealand
Posts: 854
Default Re: Quick question about Bash (and rsh)

Quote:
Originally Posted by Tuork View Post
@Whig:
setuid, huh? Sneaky.
You wouldn't happen to know how to get rsh to work, would you?
sorry, not a rsh user.
whig is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:40 PM.


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