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

vverloop
Junior Member
Posts: 8
Joined: 07 Feb 2013, 21:56

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

Post 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.
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

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

Post 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.
vverloop
Junior Member
Posts: 8
Joined: 07 Feb 2013, 21:56

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

Post by vverloop »

Is this a bug? Because it is not the first time that i get this error after a CSF update.
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

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

Post 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.
vverloop
Junior Member
Posts: 8
Joined: 07 Feb 2013, 21:56

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

Post 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!
vverloop
Junior Member
Posts: 8
Joined: 07 Feb 2013, 21:56

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

Post 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.
vverloop
Junior Member
Posts: 8
Joined: 07 Feb 2013, 21:56

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

Post 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.
Wasi
Junior Member
Posts: 2
Joined: 18 Sep 2014, 07:48

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

Post 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
vverloop
Junior Member
Posts: 8
Joined: 07 Feb 2013, 21:56

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

Post by vverloop »

After an upgrade of CSF, the permissions are also fixed.
Wasi
Junior Member
Posts: 2
Joined: 18 Sep 2014, 07:48

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

Post 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 :-)
Post Reply