P
P
partisan422019-09-08 08:38:40
Access rights
partisan42, 2019-09-08 08:38:40

Why is nothing loaded from /etc/init.d?

Good day.
Not so long ago, I accidentally did such a thing
setfacl -R -m u::rwx -m g::rwx -m o::rwx /etc
. I did it by accident, and immediately paid the price, the password from the root is not suitable, I reset it. In Grub, all boot options became ro, instead of rw, this was also corrected.
Now I encountered such a problem, /etc/fstab is not being worked out. That is, only the root directory is mounted, boot, etc. does not want to be automatically, only by hand. And also, by default, none of the applications from /etc/init.d is running, and the hostname has gone astray to (none)
Please tell me where to start digging?
PS. CentOS 6.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
partisan42, 2019-09-08
@partisan42

Figured it out myself.
the /etc/init.d/rc file had permissions 400
The problem was solved

chmod 755 /etc/init.d/rc && chmod +x /etc/init.d/rc

R
Ruslan Fedoseev, 2019-09-08
@martin74ua

rpm -a --setperms will
restore permissions on all files from packages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question