-   Red Hat (
-   -   linux network ethernet cat 5 connection. (

xviddivxoggmp3 05-14-2004 09:44 PM

linux network ethernet cat 5 connection.
I have hooked up a network between 3 boxes.
I have successfully pulled juice off the net.
My issue is that I have to reboot my machine for it to recognize the cable.
In a situation where I'm already powered up and the cable was not pluged in during boot, is there a way to have redhat 9 run a network check to find the atached cable w/o rebooting?

TheOther1 05-14-2004 09:50 PM


service network restart

xviddivxoggmp3 05-15-2004 03:07 AM

it didn't work.
i even searched for that combination on the net and couldn't find anything
any other suggestion would be appreciated.

xviddivxoggmp3 05-15-2004 01:42 PM

Please someone help with some ideas.
During boot the location that confirms the dhcp request goes red due to no cable connected.I'm looking for a way to repair that connection on my machine by calling syntax that would auto detect the connection.
is this possible?

TheOther1 05-15-2004 02:31 PM

Did it actually restart your netowrk services? Should have looked like this:
-(~:#)-> service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]

xviddivxoggmp3 05-17-2004 08:22 PM

it didn't do anything.
i typed the exact quoted syntax in a terminal in the current user directory.


service network restart

do i need to change the permissions on the service command, or run it as root?

TheOther1 05-17-2004 09:43 PM

Has to be root. Sorry, should have mentioned that...

xviddivxoggmp3 05-17-2004 10:09 PM

how would i allow my primary user account the access.
can I grant root prevelages to a user?

jacky 05-18-2004 02:03 AM

For allowing the root access to a user edit /etc/sudoers file

add folowing entry . Replace username with user

username ALL=(ALL) ALL

This will grant full permission to the said user
for getting to root he has to type
sudo su -

then give the users password for accesing the root

for detailed info of sudo refer man page

xviddivxoggmp3 07-16-2004 04:01 PM

I still can not get my user access to the command service?
I edited the sudoers file to match the above, but nothing worked.
I also thought that it may be that the path is not in my .bash_profile file.
I added entry...

but it didn't work.
is the service command in another directory?
does anyone know how to get the service command accessable for a user other than root. i granted root previlages, and that didn't do anything.
another follow up question is, can you run this command from xwindow?

xviddivxoggmp3 07-16-2004 10:23 PM

any ideas?

shouldn't placing the path in my .bash_profile give me access to any commands in that directory.

TheOther1 07-17-2004 11:57 AM

Does it work if called like this:

/sbin/service network restart

As root, type:

which service

to see where it's located. More than likely it is in /sbin, not /usr/sbin.

xviddivxoggmp3 07-17-2004 02:03 PM

is their a way to get implied root access to an individual user?
w/o having to log on as root every time i want to make a root change?
btw theother, you pointed me in the correct direction. i'm one more step closer.

TheOther1 07-17-2004 02:15 PM

As jacky pointed out, you can add the desired users/commands to the sudoers file. Instead of ALL, just give rights to the desired commands, like /sbin/service. See 'man 8 sudo' and 'man 5 sudoers' for more info. If you give them ALL rights, you might as well just let them log in as root. Or go ahead and format your system now and avoid the wait for a user to do this:

rm -fr /


You could make them members of the root group but I would STRONGLY recommend you do not do this. I think your best bet is adding the desired commands to the sudoers file.

All times are GMT -5. The time now is 03:01 AM.