LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-14-2004, 10:44 PM   #1
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Rep: Reputation: 30
Question 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?
 
Old 05-14-2004, 10:50 PM   #2
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
Try:
Code:
service network restart
 
Old 05-15-2004, 04:07 AM   #3
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Original Poster
Rep: Reputation: 30
it didn't work.
i even searched for that combination on the net and couldn't find anything
any other suggestion would be appreciated.
 
Old 05-15-2004, 02:42 PM   #4
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Original Poster
Rep: Reputation: 30
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?
 
Old 05-15-2004, 03:31 PM   #5
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
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 ]
-(~:#)->
 
Old 05-17-2004, 09:22 PM   #6
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Original Poster
Rep: Reputation: 30
it didn't do anything.
i typed the exact quoted syntax in a terminal in the current user directory.
Quote:
Code:
service network restart
do i need to change the permissions on the service command, or run it as root?
 
Old 05-17-2004, 10:43 PM   #7
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
Has to be root. Sorry, should have mentioned that...
 
Old 05-17-2004, 11:09 PM   #8
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Original Poster
Rep: Reputation: 30
how would i allow my primary user account the access.
can I grant root prevelages to a user?
 
Old 05-18-2004, 03:03 AM   #9
jacky
LQ Newbie
 
Registered: May 2004
Posts: 21

Rep: Reputation: 15
Arrow

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
 
Old 07-16-2004, 05:01 PM   #10
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Original Poster
Rep: Reputation: 30
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
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?

Last edited by xviddivxoggmp3; 07-16-2004 at 05:04 PM.
 
Old 07-16-2004, 11:23 PM   #11
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Original Poster
Rep: Reputation: 30
any ideas?
anybody?
help?

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

Last edited by xviddivxoggmp3; 07-17-2004 at 12:00 AM.
 
Old 07-17-2004, 12:57 PM   #12
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
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.
 
Old 07-17-2004, 03:03 PM   #13
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Original Poster
Rep: Reputation: 30
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.
 
Old 07-17-2004, 03:15 PM   #14
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ethernet Card Connection with Redhat Linux 7.3 Blake Linux - Networking 2 11-18-2005 06:42 AM
No Ethernet connection for Linux dabauer Linux - Networking 3 02-17-2005 06:11 PM
Install of woody fails at apt - no network connection - driver for ethernet card? wolfpeach Debian 1 06-24-2004 10:23 AM
No packetloss over Ethernet in Linux network? bluefiord02 Linux - Networking 7 11-11-2003 04:33 AM
Netbooting from an onboard ethernet connection: "Network INT18 Device" SparceMatrix Linux - Networking 7 07-07-2003 04:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration