Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-31-2008, 10:47 AM   #1
LQ Newbie
Registered: May 2007
Posts: 3

Rep: Reputation: 0
Angry -bash: /etc/init.d/network restart: permission denied

Hi all,

I have a text only install of Fedora Core 6 and I get this message:

-bash: /etc/init.d/network restart: permission denied

when trying to restart the network.

I'm logged in as root and I can edit the file. I even inserted this line:

echo "Hello"

as a debug line at the top of the script to see if it even loads but it does'nt even get there.

I'm lost

Old 01-31-2008, 11:14 AM   #2
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 69
1) Don't insert "echo Hello" into init.d files You can change their format by doing so.
2) Check if the file has executable bits set
ls -l /etc/init.d/network
Mine returns this
-rwxr-xr-x 1 root root 5107 Oct 22 09:53 /etc/rc.d/network
(it's a different distro, not RedHat). Little 'x's in the permission string mean the file is executable.
If yours is not executable, run
chmod u+x /etc/init.d/network
Old 01-31-2008, 11:52 AM   #3
LQ Newbie
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0

Sorry, forgot to mention. Permissions are set correctly as on yours. This is a fresh installation but without x-windows.
Old 01-31-2008, 12:00 PM   #4
LQ Newbie
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Smile Solution !!!

Selinux Policy was set to strict. Setting setenforce to 0 didn't do it. I had to disable Selinux entirely. I could see my debug message during boot process and shut down but could'nt run it manually. It's now working correctly. And now "service network restart" works correctly.

It was Selinux AGAIN. But with no ACV messages displayed.

Thanks for replying.


bash, denied, permission, restart

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
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM
bash: Permission Denied Panagiotis_IOA Slackware 5 11-07-2006 10:25 PM
/bin/sh: /etc/init.d/xprint: Permission denied flyfastest Linux - Newbie 1 06-17-2005 04:24 AM
/etc/init.d/cyrus Shell Script 'Permission denied' ServerStorm Linux - Software 3 01-19-2005 11:04 PM
bash: /etc/profile: Permission denied madmax Linux - General 15 07-20-2003 06:56 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:57 PM.

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