Problems to unzip files in RAR on Linux UBUNTU

Asked

Viewed 176 times

1

good afternoon!

I have a server that runs on a Cloud Web server LINUX UBUNTU SERVER, 7 years ago, I migrated to another local server also with LINUX UBUNTU SERVER.

In Cloud Linux APACHE with PHP AND Mysql ran on /var/www, the files created by the UPLOAD routines were owned by the WWW-DATA user. SHELL_EXEC, command I use in PHP to execute S.O. command lines and to unzip files through the UNRAR function, worked perfectly.

However, on this new server, the ROOT user in thesis "Does not exist" the default user is "usuario@life" who was the user informed on the server installation, whenever I need something as administrator run the SUDO command previously, and put the password of this user that in thesis is ROOT. But there is no way to give SUDO and pass a password through SHELL_EXEC, at least I don’t know how to do this.

The problem is that the uploaded files are owned by a user named DAEMON, the files are within /opt/lampp/htdocs/ we were able to exchange forever UPLOAD as WWW-DATA, but the property of the uploaded file is "user@life" with permission to create folder and write, the folder is created but the file cannot be unzipped inside it, we have already run the command on the command line and works normally.

Do you have any idea what it might be? The DAEMON user is already in the administrator group, www-data too, as well as the root I created and the user@life, even so it doesn’t work.

  • At first to unzip a file the user needs permission to read it and write to the destination. You have tried unpacking elsewhere, for example /tmp: unrar e arquivo.rar /tmp/? This helps to identify the missing permission. You said that all these users are in the same group, but what is the GID of the files. rar and the directory where they will be unpacked? If it is all from the same group of users, the group has the appropriate read and write permissions?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.