Master File Explorer

dmacleo

Verified User
Joined
Jun 21, 2012
Messages
631
this is something many will probably argue against due to privacy issues, to them I say you don't need to use it.
there are times it would be so easy to manipulate files from the gui that allows access to ALL folders.
an example for cpanel is ConfigServer Explorer which, when needed, is extremely useful.
of course this would be ONLY for the admin and not reseller/users.
 
which is why I said its an example for cpanel in the same sentence the link was in....
but it shows what I was talking about.
 
Plugins now have the ability to run as a different user, as specified in the plugin.conf:
http://www.directadmin.com/features.php?id=1594

but, cannot be run as root, directly anyway.

For that, we'd recommend setting the plugin to run as it's own new user account, eg: plug_user, and create a suid binary, which can only be called by plug_user (for security reasons).

And then the suid wrapper gets root, then calls whatever script it needs from there.

Related code for wrapper:
http://help.directadmin.com/item.php?id=510
but the setgid/setuid back down to the RUN_AS_USER wouldn't be needed if you wanted root.
The wrapper.c also does a check for Admins calling it, in which case you wouldn't need to use the admin_run_as in the plugin.conf (use one or the other)

John
 
Plugins now have the ability to run as a different user, as specified in the plugin.conf:
http://www.directadmin.com/features.php?id=1594

but, cannot be run as root, directly anyway.

For that, we'd recommend setting the plugin to run as it's own new user account, eg: plug_user, and create a suid binary, which can only be called by plug_user (for security reasons).

And then the suid wrapper gets root, then calls whatever script it needs from there.

Related code for wrapper:
http://help.directadmin.com/item.php?id=510
but the setgid/setuid back down to the RUN_AS_USER wouldn't be needed if you wanted root.
The wrapper.c also does a check for Admins calling it, in which case you wouldn't need to use the admin_run_as in the plugin.conf (use one or the other)

John
not sure I understand this John,
there isn't, as far as I know, a plugin that does this which is what I desired.
or maybe the admin file editor thats there could be made to do it using different UID?
the csf one for cpanel is useful when you need to move files from one acct to another, can set owner and chmod from the gui too. I dislike having to ssh in to move a file when, IMO, the admin file explorer should be able to access all files.
 
John's idea is to use a plugin to achieve the desired. That might be a 3rd party software integrated as a plugin.
 
ah I see.
wish I had the programming knowledge to make such an app :(
 
ah I see.
wish I had the programming knowledge to make such an app :(
Now that we know it can be done there are several possibilities:

zEitEr or someone else can write one, either for you, or for sale as a commercial product, or for the community.

or ConfigServer could write a version of ConfigServer Explorer for DirectAdmin.

Jeff
 
Back
Top