warning: cannot open /etc/hosts.allow: Permission denied
warning: cannot open /etc/hosts.allow: Permission denied
While running systemctl status
I m getting the message
warning: cannot open /etc/hosts.allow: Permission denied
warning: cannot open /etc/hosts.deny: Permission denied
How can I fix this ?
I m getting the message
warning: cannot open /etc/hosts.allow: Permission denied
warning: cannot open /etc/hosts.deny: Permission denied
How can I fix this ?
Re: warning: cannot open /etc/hosts.allow: Permission denied
What is the output from the commands:
uname -a
rpm -V setup
uname -a
rpm -V setup
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: warning: cannot open /etc/hosts.allow: Permission denied
the warning shows when checking systemctl status rpcbind and is also in var/log/messages
and the services cant restart
/etc/hosts.allow and /etc/hosts.deny permission is 644
Any idea??
and the services cant restart
/etc/hosts.allow and /etc/hosts.deny permission is 644
Any idea??
Re: warning: cannot open /etc/hosts.allow: Permission denied
Only when you answer the questions I asked...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: warning: cannot open /etc/hosts.allow: Permission denied
Linux 3.10.0-1062.18.1.el7.x86_64 #1 SMP Tue Mar 17 23:49:17 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
.M....... c /etc/aliases
.M....... c /etc/bashrc
.M....... c /etc/csh.cshrc
.M....... c /etc/csh.login
.M....... c /etc/environment
.M....... c /etc/exports
.M....... c /etc/filesystems
.M....... c /etc/fstab
.M....... c /etc/group
.M....... c /etc/gshadow
.M....... c /etc/host.conf
.M....... c /etc/inputrc
.M....... c /etc/motd
.M....... c /etc/passwd
.M....... c /etc/printcap
.M....... c /etc/profile
.M....... /etc/profile.d
.M....... c /etc/profile.d/csh.local
.M....... c /etc/profile.d/sh.local
.M....... c /etc/protocols
.M....... c /etc/services
.M....... c /etc/shadow
.M....... c /etc/shells
.M....... c /etc/subgid
.M....... c /etc/subuid
.M....... d /usr/share/doc/setup-2.8.71/COPYING
.M....... d /usr/share/doc/setup-2.8.71/uidgid
.M....... c /etc/aliases
.M....... c /etc/bashrc
.M....... c /etc/csh.cshrc
.M....... c /etc/csh.login
.M....... c /etc/environment
.M....... c /etc/exports
.M....... c /etc/filesystems
.M....... c /etc/fstab
.M....... c /etc/group
.M....... c /etc/gshadow
.M....... c /etc/host.conf
.M....... c /etc/inputrc
.M....... c /etc/motd
.M....... c /etc/passwd
.M....... c /etc/printcap
.M....... c /etc/profile
.M....... /etc/profile.d
.M....... c /etc/profile.d/csh.local
.M....... c /etc/profile.d/sh.local
.M....... c /etc/protocols
.M....... c /etc/services
.M....... c /etc/shadow
.M....... c /etc/shells
.M....... c /etc/subgid
.M....... c /etc/subuid
.M....... d /usr/share/doc/setup-2.8.71/COPYING
.M....... d /usr/share/doc/setup-2.8.71/uidgid
Re: warning: cannot open /etc/hosts.allow: Permission denied
polkit service also failed shows authorization failed
Can you respond soon? Thanks
Can you respond soon? Thanks
Re: warning: cannot open /etc/hosts.allow: Permission denied
Did you run rpm -V setup as root?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: warning: cannot open /etc/hosts.allow: Permission denied
Also, from man rpm the M flag means
M Mode differs (includes permissions and file type)
So you have changed the permissions of all of those files listed there away from the defaults. I would suggest not doing that. Perhaps yum reinstall setup or rpm --setperms setup && rpm --setugids setup will restore them to what they should be.
M Mode differs (includes permissions and file type)
So you have changed the permissions of all of those files listed there away from the defaults. I would suggest not doing that. Perhaps yum reinstall setup or rpm --setperms setup && rpm --setugids setup will restore them to what they should be.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: warning: cannot open /etc/hosts.allow: Permission denied
Thanks for the response.You are right there was some mess with permissions.
I tried the rpm --setperm .....option now rpm -V setup shows nothing but
the problem is still there
rpcbind[2349]: connect from 10.0.91.2 to getport/addr(1...st
rpcbind[1078]: warning: cannot open /etc/hosts.allow: P...ed
rpcbind[1078]: warning: cannot open /etc/hosts.deny: Pe...ed
and
● polkit.service loaded failed failed Authorization Manager
● rpc-statd.service loaded failed failed NFS status monitor for NFSv2/3 locking.
● systemd-hostnamed.service loaded failed failed Hostname Service
i didnt restart after the rpm --setperm setup
I tried the rpm --setperm .....option now rpm -V setup shows nothing but
the problem is still there
rpcbind[2349]: connect from 10.0.91.2 to getport/addr(1...st
rpcbind[1078]: warning: cannot open /etc/hosts.allow: P...ed
rpcbind[1078]: warning: cannot open /etc/hosts.deny: Pe...ed
and
● polkit.service loaded failed failed Authorization Manager
● rpc-statd.service loaded failed failed NFS status monitor for NFSv2/3 locking.
● systemd-hostnamed.service loaded failed failed Hostname Service
i didnt restart after the rpm --setperm setup
Re: warning: cannot open /etc/hosts.allow: Permission denied
I restarted and problem still persists
nfs-server status is active exited
and after restart or when logging in to a new kernel rpc bind starts ok at first then when nfs starts all the problem shows up again
can you respond soon please
nfs-server status is active exited
and after restart or when logging in to a new kernel rpc bind starts ok at first then when nfs starts all the problem shows up again
can you respond soon please