unzip error

nimafire

Verified User
Joined
Aug 10, 2008
Messages
249
hello.
i have change my directadmin.conf :
zip=1

but when i want to extract any file an so click on extract it say that :

An error occured during extraction

i have centos
(my unzip command is not install and i have install it by yum install unzip and i can unzip file by ssh but in directadmin...)
 
Hello,

The file DA calls is:
/usr/bin/unzip

I recall a user having issues with that a few weeks back (perhaps it's you) because /bin/sh was chmod to 700.

All sytem calls made by DA are called via /bin/sh, so it needs to be 755.

John
 
John, for those of us who understand security by username/groupname it would be possible to assign /bin/sh to a group as well as a user, and then make the username DirectAdmin uses when calling /bin/sh a member of that group.

Am I correct in my presumption that DirectAdmin runs as it's own user when calling /bin/sh?

Thanks in advance for clarification.

Jeff
 
Hello,

DirectAdmin calls /bin/sh in all shapes and forms pending on what it's doing at that time.. that would make it difficult.

However, without making any changes to DA.. you could set the group to /bin/sh to say "users" .. and throw anyone you want to allow +x access into that users group, then chmod 750. Of course, be very careful in making such changes as you risk locking yourself out if not done correctly, or breaking the system if anything else needs it.

John
 
Back
Top