Page 1 of 2

DirectAdmin + CSF: Permission denied [User: admin UID: 501]

Posted: 03 Jun 2014, 10:29
by vverloop
After updating CSF to v7.0.3, i get error in DirectAdmin Control Panel/CSF: Permission denied [User: admin UID: 501].

Reinstall of CSF is the simple solution, but not the best.
Is there a good solution? Changing file or folder permissions for example?

Reinstall firewall gives opportunity for hacking..because:
1. No firewall is not good at all.
2. There is a few minutes time to hack your server. (FAST_START solves this normally)
2. clean install is default in Testing Mode for example.

Re: DirectAdmin + CSF: Permission denied [User: admin UID: 5

Posted: 03 Jun 2014, 10:38
by ForumAdmin
The C wrapper that cxs uses checks for the existence of the logged in user (admin) in /usr/local/directadmin/data/admin/admin.list which should be chmod 600 and have an owner of the directadmin main user account (i.e. diradmin:diradmin). You should also ensure that /usr/local/directadmin/data/admin/admin.list has Linux line endings, not Windows or Mac ones.

Re: DirectAdmin + CSF: Permission denied [User: admin UID: 5

Posted: 03 Jun 2014, 10:49
by vverloop
Is this a bug? Because it is not the first time that i get this error after a CSF update.

Re: DirectAdmin + CSF: Permission denied [User: admin UID: 5

Posted: 03 Jun 2014, 15:14
by ForumAdmin
Is what a bug? I provided a description of what the C wrapper is trying to do and failing on your server - you need to investigate that. We've not seen any issues with the wrapper on DA servers, and not been able to recreate any problems.

Re: DirectAdmin + CSF: Permission denied [User: admin UID: 5

Posted: 03 Jun 2014, 15:27
by vverloop
I think it is a problem on my webserver, but i can't check it anymore because of the clean install.

Now the file admin.list have chmod 600, ownership diradmin:diradmin. And admin in the file.

I go check the next time, thanks for support!

Re: DirectAdmin + CSF: Permission denied [User: admin UID: 5

Posted: 28 Jul 2014, 16:38
by vverloop
I have the same issue today. I have checked and chmod is 600 and ownership is diradmin:diradmin. In the file is the word: admin.

Yesterday i have upgraded PHP 5.4 to 5.5 by using DirectAdmin Custombuild script. And after that rebuild all.

Re: DirectAdmin + CSF: Permission denied [User: admin UID: 5

Posted: 28 Jul 2014, 16:43
by vverloop
I have tried this: http://syslint.com/syslint/csf-directad ... 01-solved/

But now i get a blank page, no Permission Denied error.

Re: DirectAdmin + CSF: Permission denied [User: admin UID: 5

Posted: 18 Sep 2014, 07:51
by Wasi
These commands will solve issue, I know this is old topic but as google is showing this page first for solution so sharing it

Code: Select all

chown root /usr/local/directadmin/plugins/csf/exec/csf
chmod 4755 /usr/local/directadmin/plugins/csf/exec/csf

Re: DirectAdmin + CSF: Permission denied [User: admin UID: 5

Posted: 18 Sep 2014, 09:01
by vverloop
After an upgrade of CSF, the permissions are also fixed.

Re: DirectAdmin + CSF: Permission denied [User: admin UID: 5

Posted: 18 Sep 2014, 13:59
by Wasi
There was no update available for me and yup update can solve problem and you can do force update but these commands can save your time :-)