LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sysctl 'Permission Denied' issues (https://www.linuxquestions.org/questions/linux-software-2/sysctl-permission-denied-issues-4175445926/)

pshankland 01-16-2013 04:10 PM

sysctl 'Permission Denied' issues
 
Hi, I am using a CentOS 6 VPS and trying to install Domino 8.5. Following various instructions I am trying to fix the following errors by manually editing the sysctl.conf file:

Code:

Error - can't open /proc/sys/fs/file-max.
        errno: 13
        Permission denied
/proc/sys/kernel/shmmax has been set to "268435456".
/proc/sys/kernel/sem has been set to "250      256000  32      1024".
Error - can't open /proc/sys/net/ipv4/tcp_fin_timeout.
        errno: 13
        Permission denied
Error - can't open /proc/sys/net/ipv4/tcp_max_syn_backlog.
        errno: 13
        Permission denied
Error - can't open /proc/sys/net/ipv4/tcp_tw_reuse.
        errno: 13
        Permission denied
Error - can't open /proc/sys/net/ipv4/ip_local_port_range.
        errno: 13
        Permission denied

I have modified the /etc/sysctl.conf file to include the following:

Code:

# Settings for Domino
net.ipv4.ip_local_port_range = 1024 65535
fs.file-max = 131072
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_max_syn_backlog = 16384
net.ipv4.tcp_tw_reuse = 1

However, when I run the command 'sysctl net.ipv4.ip_local_port_range' I get the following instead:

Code:

net.ipv4.ip_local_port_range = 32768    61000
I have tried the following but keep getting permission denied errors:

Code:

echo 1024 65535 > /proc/sys/net/ipv4/ip_local_port_range
-bash: /proc/sys/net/ipv4/ip_local_port_range: Permission denied

Everything, apart from the running of the Domino server, is being run as the root user so don't understand why I should get permission denied errors.

Anyone seen this before and can help?

Thanks.
Pete.

pshankland 01-16-2013 05:11 PM

Just completed a yum update - just in case, then a reboot and then ran '/sbin/sysctl -p' which produced the following errors:

Code:

net.ipv4.ip_forward = 0
net.ipv4.tcp_syncookies = 1
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
error: permission denied on key 'net.ipv4.ip_local_port_range'
error: permission denied on key 'fs.file-max'
error: permission denied on key 'net.ipv4.tcp_fin_timeout'
error: permission denied on key 'net.ipv4.tcp_max_syn_backlog'
error: permission denied on key 'net.ipv4.tcp_tw_reuse'

Anyone?

Thanks.


All times are GMT -5. The time now is 10:43 PM.