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? |
Try:
Code:
service network restart |
it didn't work.
i even searched for that combination on the net and couldn't find anything any other suggestion would be appreciated. |
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? |
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 ] -(~:#)-> |
it didn't do anything.
i typed the exact quoted syntax in a terminal in the current user directory. Quote:
|
Has to be root. Sorry, should have mentioned that...
|
how would i allow my primary user account the access.
can I grant root prevelages to a user? |
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 |
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... Code:
PATH=$PATH:/usr/sbin 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? |
any ideas?
anybody? help? shouldn't placing the path in my .bash_profile give me access to any commands in that directory. |
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. |
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. |
X,
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 05:13 AM. |