PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Raspberry Pi 3 Set File Permissions

Go down

Raspberry Pi 3 Set File Permissions Empty Raspberry Pi 3 Set File Permissions

Post by jamied_uk 20th December 2016, 19:14

take ownership
Code:
sudo chown arnan /var/www



add user to group
Code:
sudo usermod -a -G {group} {username}

Code:
sudo usermod -a -G www-data pi
sudo service vsftpd restart

Another way

Code:
sudo a2enmod userdir


Another method

Code:
sudo adduser LOGIN_ID www-data
sudo chmod g+rwX -R /var/www
Code:
sudo chown -R www-data:www-data /var/www
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum