Raspberry Pi 3 Set File Permissions

View previous topic View next topic Go down

Raspberry Pi 3 Set File Permissions

Post by jamied_uk on 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
avatar
jamied_uk
Admin

Posts : 2268
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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