If you ever need to login as apache (www-data) user to test permissions on a file share, you can use the following command to impersonate yourself as the Apache user:
root@rp:~# su - www-data -s /bin/bash
www-data@rp:~$ cd /var/lib/phpfina
www-data@rp:/var/lib/phpfina$ vi test
No comments:
Post a Comment