LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-03-2006, 05:46 PM   #1
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Rep: Reputation: 33
Permission denied on boot up


I'm still configuring my system (installed last week) and have given myself a problem. Because I couldn't figure out all the sysV stuff and I was in a hurry to disable services, I used chmod -x in /etc/init.d as per Slackware. I later uninstalled some services e.g. nfs-common. However, I still get the "permission denied" message for these services on boot-up. I've tried running update-rc.d but the messages remain. Any tips would be appreciated as I've run out of manpages to read!
 
Old 04-03-2006, 09:28 PM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
You should be able to get rid of the "permission denied" messages if you run (as root) "update-rc.d -f service_name remove" for each service that prints the error message, replacing service_name with the name of the service you wish to remove. This should remove the symlinks that are checked during boot time.

The actual init scripts are all in /etc/init.d/.

Symlinks in /etc/rcS.d/ (that point to /etc/init.d/) are executed first during the system boot. After that the symlinks in /etc/rc#.d/ (where # is a runlevel number; runlevel 2 being the default in Debian) are executed.

Some people don't like this symlink system and they prefer to install the file-rc package (aptitude install file-rc) which removes all the symlink directories and creates one configuration file instead, /etc/runlevel.conf. Then you can configure services by simply editing this file with a text editor. Removing the file-rc package (aptitude remove file-rc) removes /etc/runlevel.conf and automatically rebuilds the symlink directories for all runlevels.

There is a GUI tool available for managing services (aptitude install bum) and also several ncurses based tools (like sysvconfig).
 
Old 04-06-2006, 03:02 PM   #3
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Original Poster
Rep: Reputation: 33
Nice one Dead Parrot. Not only did "update-rc.d -f service_name remove" do the job, but your explanation of symlinks has helped me to make some sense of the thing.

One more question if I may, I have read that if you remove all symlinks to a service they will be reinstated during a system upgrade. If this is so, does it mean I will have to repeat the above after an upgrade?

BTW, I'm not a big fan of GUI tools but I might be tempted try out file-rc.

Thanks again

Mikie
 
Old 04-06-2006, 04:25 PM   #4
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
I have read that if you remove all symlinks to a service they will be reinstated during a system upgrade. If this is so, does it mean I will have to repeat the above after an upgrade?
Instead of removing symlinks altogether, you can change the letter "S" in the beginning to "K". This tells init not to start the service and any program that might automatically re-create missing symlinks will see that the symlink already exists, so it won't touch it.
 
  


Reply



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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
Cannot boot FC5 after installing (permission denied) rjswilson Fedora 3 04-26-2006 01:48 AM
BOOT DISK PERMISSION DENIED? plz help fucxt Slackware 1 03-18-2006 03:26 PM
Permission denied tonyevansau Linux - General 3 10-28-2005 07:57 PM
Permission denied to drive when mounted at boot wr3ck3d Linux - General 2 12-30-2003 03:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:49 AM.

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