Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

failed reason given by server permission denied – RedHat

Leer en espanol
failed reason given by server permission denied – RedHat

Table of contents

Searching the Internet I found this solution: We access the directory /e ===

The other day, while installing an NFS server under Redhat, I encountered this permissions error when mounting the File System.

Searching the Internet I found this solution:

We access the directory  /etc/sysconfig/nfs and we uncomment the following lines

Bash
rokitoh@red-orbita: # vi /etc/sysconfig/nfs

STATD_PORT=10002

STATD_OUTGOING_PORT=10003

MOUNTD_PORT=10004

RQUOTAD_PORT=10005

LOCKD_UDPPORT=30001

LOCKD_TCPPORT=30001

We add the rules to iptables. To do this we are going to edit the file  /etc/sysconfig/iptables

Bash
rokitoh@red-orbita: # vi  /etc/sysconfig/iptables

-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state –state NEW -p udp –dport 111 -j ACCEPT

-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state –state NEW -p tcp –dport 111 -j ACCEPT

-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state –state NEW -p tcp –dport 2049 -j ACCEPT

-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state –state NEW -p tcp –dport 32803 -j ACCEPT

-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state –state NEW -p udp –dport 32769 -j ACCEPT

-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state –state NEW -p tcp –dport 892 -j ACCEPT

-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state –state NEW -p udp –dport 892 -j ACCEPT

-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state –state NEW -p tcp –dport 875 -j ACCEPT

-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state –state NEW -p udp –dport 875 -j ACCEPT

-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state –state NEW -p tcp –dport 662 -j ACCEPT

-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state –state NEW -p udp –dport 662 -j ACCEP

we restart the services

Bash
rokitoh@red-orbita: # service iptables restart
rokitoh@red-orbita: # service nfs restart

Regards, rokitoh

:wq!

Comments