Tag Info

Hot answers tagged

3

Answer to Question #1: Recursive chown A recursive chown will let you set ownership and group to what you want for /var/www/.... This is the command you should use: sudo chown -R www-data:www-data /var/www/ With that, every file and folder will be set as such inside there with those ownership permissions. Answer to Question #2: setuid and setgid bits ...


2

Change ownership to www-data:www-data of all files AND directories below /var/www and /var/www/html cd /var/www/ chown -R www-data:www-data /var/www/ ./html is implied here (as being part of /var/www/) -R makes it recursive (so it will traverse all directories in /var/www/). Make sure any file or folder I will create with any of the users of my ...


1

You have two options: The quicker option: (not recommended) You can run your program as root using sudo (or gksudo, if it is a GUI application). This grants the program the right to modify whatever file it desires, but may also allow it to edit unintended files. This might be a security risk, especially if it contains a bug that might damage your system. ...


1

I solved it ! I still think it was an Apache envvars problem, but unsure if that is the particular thing that solved the problem... Anyway here is what I did: Changed envvars to export APACHE_RUN_USER=boris export APACHE_RUN_GROUP=www-data Ran sudo chown -R boris:www-data /var/www/ Now it's working so far. Will test further...


1

Running applications as the root user presents several serious security risks. This is why the root account is not enabled for log in by default, and all actions which need escalated privileges are performed via usage of sudo. You should not log in and run applications as root. Doing so gives total access to your machine, to the application you are running, ...


1

The issue is that the redirection portion of your commands are executed as you and not root. So, if you want to keep your destination directory as it is, then you need to get that part to run as root also. Alternatively, you could make your destination directory one that you have write access for. Example showing why it is not working (notice the permissions ...



Only top voted, non community-wiki answers of a minimum length are eligible