• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

“Authorization not available. Check if polkit service is running or see debug message for more information” – CentOS/RHEL 7 ssh service error

by admin

The Problem

Starting ssh services errors out and spool messages regarding polkit service.

# service sshd restart
Redirecting to /bin/systemctl restart sshd.service
Authorization not available. Check if polkit service is running or see debug message for more information.

Same issue is encountered when starting the polkit service.

# service polkit restart
Redirecting to /bin/systemctl restart polkit.service
Authorization not available. Check if polkit service is running or see debug message for more information.

The Solution

The symbolic link between /run, /run/lock to /var/run, /var/lock respectively was removed which causes the service not to properly run.

Restore the symbolic link between /run and /run/lock to /var/run and /var/lock using the following steps:

1. Backup the /var/run:

# mv /var/run /var/run.old
# mv /var/lock /var/lock.old

2. Recreate the symbolic link:

# ln -s /run /var/
# ln -s /run/lock /var/

4. Verify if the link has been created:

# ls -l /var/run
# ls -l /var/lock

Expected output:

$ ls -l /var/run
lrwxrwxrwx. 1 root root 6 May 11 2016 /var/run -> ../run
$ ls -l /var/lock
lrwxrwxrwx. 1 root root 11 May 11 2016 /var/lock -> ../run/lock

5. Sync the changes:

# sync; sync

6. Restart the server:

# reboot

Filed Under: CentOS/RHEL, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. trace-cmd: command not found
  2. auditd Command Examples in Linux
  3. hlint Command Examples in Linux
  4. protonvpn-cli connect Command Examples
  5. ulimit: command not found
  6. slop: command not found
  7. dpkg-query Command Examples in Linux
  8. grub-script-check: command not found
  9. Shopt: Not Found [No Such File Or Directory]
  10. Command ‘df -i’ Shows ‘Inode=0’ on BTRFS File System

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright