0

An employee accidental recursively changed permissions from the root directory to apache. I reran it to root, we fixed MySQL, but SSH still doesn't work. What is the correct way to restore the ownership for sshd?

Dave M
  • 4,494
nicoX
  • 611

1 Answers1

1

If you just want to restore the permissions for sshd the command would be:

rpm --setugids openssh-server 

From the manual:

rpm --setugids PACKAGE_NAME sets user/group ownership of files in the given package..

HBruijn
  • 84,206
  • 24
  • 145
  • 224