public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* opening a port without root permission
@ 2004-06-30  1:20 Anshuman Singh Rawat
  2004-06-30  2:34 ` Eric
  2004-06-30 16:39 ` getting MAC addresses (was: Re: opening a port without root permission) Ray Olszewski
  0 siblings, 2 replies; 4+ messages in thread
From: Anshuman Singh Rawat @ 2004-06-30  1:20 UTC (permalink / raw)
  To: linux-newbie@vger.kernel.org

Hi,
Is there any way one can open a port, in my specific case - the ARP port, so that I could do an Arping without a root access ? 

Or is there any way the root could give permission to a user to open a port ?

Or does anyone know a way by which I can extract the MAC address of a remote machine in a different subnet, where I do not have to be a super-user?

Any pointers would be greatly appreciated.
Thanks.

-Anshuman

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: opening a port without root permission
  2004-06-30  1:20 opening a port without root permission Anshuman Singh Rawat
@ 2004-06-30  2:34 ` Eric
  2004-06-30 16:39 ` getting MAC addresses (was: Re: opening a port without root permission) Ray Olszewski
  1 sibling, 0 replies; 4+ messages in thread
From: Eric @ 2004-06-30  2:34 UTC (permalink / raw)
  To: Anshuman Singh Rawat; +Cc: linux-newbie@vger.kernel.org

On Tuesday 29 June 2004 08:20 pm, Anshuman Singh Rawat wrote:
> Hi,
> Is there any way one can open a port, in my specific case - the ARP port,
> so that I could do an Arping without a root access ?
>
> Or is there any way the root could give permission to a user to open a port
> ?
>
> Or does anyone know a way by which I can extract the MAC address of a
> remote machine in a different subnet, where I do not have to be a
> super-user?
>
> Any pointers would be greatly appreciated.
> Thanks.

sudo

This program will allow root to give normal users "root" access to specified 
programs with or without a password.

To see if its already installed do 

"man sudo"
or
"visudo" 


> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* getting MAC addresses (was: Re: opening a port without root permission)
  2004-06-30  1:20 opening a port without root permission Anshuman Singh Rawat
  2004-06-30  2:34 ` Eric
@ 2004-06-30 16:39 ` Ray Olszewski
  2004-06-30 21:17   ` Eric
  1 sibling, 1 reply; 4+ messages in thread
From: Ray Olszewski @ 2004-06-30 16:39 UTC (permalink / raw)
  To: linux-newbie

At 09:20 PM 6/29/2004 -0400, Anshuman Singh Rawat wrote:
>Hi,
>Is there any way one can open a port, in my specific case - the ARP port, 
>so that I could do an Arping without a root access ?
>
>Or is there any way the root could give permission to a user to open a port ?
>
>Or does anyone know a way by which I can extract the MAC address of a 
>remote machine in a different subnet, where I do not have to be a super-user?
>
>Any pointers would be greatly appreciated.
>Thanks.

Others already suggested "sudo" as the way to deal with the arping problem. 
But... are you really able to use arping to get MAC addresses of hosts not 
on the Ethernet local to the host you arping from? (I assume that is what 
you mean by "in a different subnet".)

I was curious about this, so I tested it here. With the current Debian-Sid 
version of arping, arping'ing the IP address of a host on my DMZ from my 
LAN returns the MAC address of my router (since it does proxy arp), NOT the 
MAC address of the target host's own interface. If I arping the actual MAC 
address of the DMZ host (as shown in the arp table of my router), I get no 
response.

Am I missing something? I ask because this problem -- how to get the MAC 
address of a non-local host -- comes up again and again, and I always 
believed there was no solution to it (excluding ones that involve running 
some application on the target host). Am I mistaken?



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getting MAC addresses (was: Re: opening a port without root permission)
  2004-06-30 16:39 ` getting MAC addresses (was: Re: opening a port without root permission) Ray Olszewski
@ 2004-06-30 21:17   ` Eric
  0 siblings, 0 replies; 4+ messages in thread
From: Eric @ 2004-06-30 21:17 UTC (permalink / raw)
  To: Ray Olszewski, Anshuman Singh Rawat; +Cc: linux-newbie

On Wednesday 30 June 2004 11:39 am, Ray Olszewski wrote:
> At 09:20 PM 6/29/2004 -0400, Anshuman Singh Rawat wrote:
> >Hi,
> >Is there any way one can open a port, in my specific case - the ARP port,
> >so that I could do an Arping without a root access ?
> >
> >Or is there any way the root could give permission to a user to open a
> > port ?
> >
> >Or does anyone know a way by which I can extract the MAC address of a
> >remote machine in a different subnet, where I do not have to be a
> > super-user?
> >
> >Any pointers would be greatly appreciated.
> >Thanks.
>
> Others already suggested "sudo" as the way to deal with the arping problem.
> But... are you really able to use arping to get MAC addresses of hosts not
> on the Ethernet local to the host you arping from? (I assume that is what
> you mean by "in a different subnet".)
>
> I was curious about this, so I tested it here. With the current Debian-Sid
> version of arping, arping'ing the IP address of a host on my DMZ from my
> LAN returns the MAC address of my router (since it does proxy arp), NOT the
> MAC address of the target host's own interface. If I arping the actual MAC
> address of the DMZ host (as shown in the arp table of my router), I get no
> response.
>
> Am I missing something? I ask because this problem -- how to get the MAC
> address of a non-local host -- comes up again and again, and I always
> believed there was no solution to it (excluding ones that involve running
> some application on the target host). Am I mistaken?
>

As far as I know there is no way to get the MAC address across subnets. I 
believe the problem is the source MAC gets stripped off when it hits the 
router and the MAC of the router is used. This would be possible if you are 
on a *briged* network I believe, but there is little to no hope on a routed 
network.

Try telnet/ssh tot he remote and then ifconfig ;)
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-06-30 21:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-30  1:20 opening a port without root permission Anshuman Singh Rawat
2004-06-30  2:34 ` Eric
2004-06-30 16:39 ` getting MAC addresses (was: Re: opening a port without root permission) Ray Olszewski
2004-06-30 21:17   ` Eric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox