• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux cant paste in /var/www

ziggy46802

Active Member
Joined
Aug 19, 2012
Messages
418
Reaction score
27
I can't paste files into the /var/www/ folder, how do I make it so that I can?

I had a friend do teamviewer with me and he fixed it somehow so I know it can be done quite easily.
 
your ordinary user lacks the permissions to do so probably, try doing this as root? Generally files in /var/www are owned by 'www-data' or 'httpd'
 
If your username is 'user', try this:
Code:
sudo chown user /var/www

OR:

Code:
sudo chgrp user /var/www
sudo chmod 775 /var/www

Now you can copy a file with: cp file /var/www/

If you just want to copy 1 file without messing with permissions, use:

Code:
sudo cp file /var/www/
 
Back
Top