Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can anyone please explain why I get this permission denied error? I try starting the script and it fails with a permission denied message. So I create a copy of it and run that instead and that works.

[root@node2 ~]# /etc/init.d/gfs2 stop
Unmounting GFS2 filesystem (/drbd):                        [  OK  ]
[root@node2 ~]# /etc/init.d/gfs2 start
Mounting GFS2 filesystem (/drbd): gfs_controld join connect error: Permission denied
error mounting lockproto lock_dlm
[root@node2 ~]# cp /etc/init.d/gfs2 /etc/init.d/gfs2_test
[root@node2 ~]# /etc/init.d/gfs2_test start
Mounting GFS2 filesystem (/drbd):                          [  OK  ]
[root@node2 ~]#

[root@node2 ~]# ls -l /etc/init.d/gfs2*
-rwxr-xr-x. 1 root root 3365 Jan 15 12:11 /etc/init.d/gfs2
-rwxr-xr-x. 1 root root 3365 Jan 15 12:19 /etc/init.d/gfs2_test
[root@node2 ~]#
share|improve this question
up vote 1 down vote accepted

Suspecting SELinux problem here. Please tail the output of /var/log/audit/audit.log and post any 'denied' messages that pop up when starting gfs2 in your topic start.

share|improve this answer
Yeah you're right - it's an selinux thing. setenforce 0 and then running the script worked. – sashang Jan 14 '11 at 3:29
Which, of source, is not a solution. Please do not turn off SELinux if you care for a secure system. Try running restorecon on the init script that failed. – wzzrd Jan 16 '11 at 4:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.