In my Amazon Lynux Debian. By default you get
admin user and the recomendation is dont use
root user instead use
sudo command and you have to follow a serie of steps to get it.
Of course when try to copy files to
/var/www I get a denied permission message because the owner is
So after some research found need to change permision to 777
sudo chmod -R 777 www drwxr-xr-x 4 root root 4096 Jun 7 2015 spool drwxrwxrwt 2 root root 4096 Jun 7 2015 tmp drwxrwxrwx 3 root root 4096 Sep 18 16:53 www
Even when solve my problem I know what 777 mean ... Read Write Execute for Owner Groop and Others. Im not really familiar with Lynux because more than a Windows user. But know give permission to everyone isnt the usual way to solve permisions issues.
I read another option is change the ownership of the folder to
admin (have to research how) but then Im wondering why the system start with root as owner of www folder.
If help, right now Im the only user of the machine.
So what is the best practice for this scenario?