How to remove the file manager

Rookie

Verified User
Joined
Aug 11, 2004
Messages
72
Location
Gold Coast, Australia
Hi,
I have looked around the forum threads to try and find this answer. I did find one thead and the people in there said it was easy, however, they sent you to a complicated page about redesigning skins :( I don't want to learn how to redesign skins, all I need to do is remove "file manager" from a DA user area. :confused:

Here's the problem I have with not being able to remove it:
I have set up an "Email Only Package" so that users can just have email. However, some of the smarter users have now found that they can create a site by using the "file manager".

How can I "SIMPLY" remove the remove file manager?

If there isn't a way to do it, would you guys consider it in a future version of DA? Pleeeeease ;)

Thanks heaps
Rookie
 
Thanks for the reply but I really want to get the enhanced skin :(

Can enyone tell me where to find the "Enhanced Skin" that has the "file manager link" removed?

I know I'm pushing the friendship here, but can anyone make me one?

(I can't be the only one that wants it) I bet it would be downloaded by heaps of people... ;)
 
here you go:

/usr/local/directadmin/data/skins/enhanced/user/show_domain.html

/usr/local/directadmin/data/skins/enhanced/header_bar.html

/usr/local/directadmin/data/skins/enhanced/user/filemanager/*.html
 
Don't just remove the LINK to the File manager, though they can access it thru the Address line using the right CMD_*

Try to disable it by "killing" the page using PHP in the SKIN file manager

though one of the developers of DA can give some idea's

Good luck
 
1. Delete these lines in files_ user.conf (in the root dir of your skin):

CMD_FILE_MANAGER=user/filemanager/main.html
CMD_FILE_MANAGER_EDIT=user/filemanager/edit.html
CMD_FILE_MANAGER_RENAME=user/filemanager/rename.html
CMD_FILE_MANAGER_COPY=user/filemanager/copy.html
CMD_FILE_MANAGER_PROTECT=user/filemanager/protect.html
CMD_FILE_MANAGER_EXTRACT=user/filemanager/extract.html

2. Delete this line in show_domain.html (in user dir of your skin):

<a href="/CMD_FILE_MANAGER?domain=|domain|">|LANG_FILE_MANAGER|</a><br>

4. Paste this line in content_main.html (in admin dir of your skin):

<a href="/CMD_FILE_MANAGER">|LANG_FILE_MANAGER|</a>

This way you can still get into the filemaneger as admin.
 
To delete the File Manager button from the Enhanced Skin, delete line 13 in /usr/local/directadmin/data/skins/enhanced/header_bar.html to completely remove it. (Currently using DA v1.30.1)

Regards, Jeroen.
 
Last edited:
Thanks for this info guys, I think it will do the trick. I wish/feel this should be a simple toggle in the CP however:

[X] disable file manager access

Thanks again
Alex
 
Back
Top