On Fri, 2005-12-02 at 20:42 -0700, David Allred wrote:
> >>
> >> If you know the IP address and you are on the same subnet, then  
> >> you can
> >> ping it and then run the command `arp`
> >
> > Or, on the local machine, just ifconfig
> 
> 
> Command not found
> 
> -bash: ifconfig: command not found

When you are logged in as a non-root user, many system commands like
ifconfig are not in the search path.  I always try to remember to use
full paths when posting commands to the list.  Try this:

/sbin/ifconfig

/sbin and /usr/sbin are not in your path normally, unless you log in as
root.  I always like to get in the habit of typing the full path to
these commands anyway, even when they are in my path.  Especially
because if you write a script to run by cron, you'll need to include the
paths because cron doesn't inherent the root environment, so it doesn't
have /sbin or /usr/sbin in the path either.

Unfortunately I don't have any answer to your original question (about
writing a script to do the authentication).  I don't think this
particular avenue (setting the mac address to something arbitrary) is
really what you want.  Mainly because if you set two machines to the
same mac address, they both can't talk to the switch at the same time
anymore.  So I'd leave this whole thing be.  It's pretty advanced stuff
anyway.  

I'd try the ruby script that Erin posted.  Ruby should be easily
installable via the yast utility (you're running SuSE right?).

Michael


> 
> dave
> 
> >
> > --------------------
> > BYU Unix Users Group http://uug.byu.edu/
> > The opinions expressed in this message are the responsibility of their
> > author.  They are not endorsed by BYU, the BYU CS Department or BYU- 
> > UUG.  
> > ___________________________________________________________________
> > List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
> 
> 
> --------------------
> BYU Unix Users Group 
> http://uug.byu.edu/ 
> 
> The opinions expressed in this message are the responsibility of their
> author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
> ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
-- 
Michael Torrie <[EMAIL PROTECTED]>


--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to