Article 6HX6V [SOLVED] Unable to write into /var/www/html with my user account

[SOLVED] Unable to write into /var/www/html with my user account

by
wh33t
from LinuxQuestions.org on (#6HX6V)
I believe this confirms I have added my user account to the www-data group

Code:wh33t@box:/var/www$ groups
wh33t adm dialout cdrom sudo dip plugdev lpadmin sambashare
wh33t@box:/var/www$ groups wh33t
wh33t : wh33t adm dialout cdrom sudo dip www-data plugdev lpadmin sambashare
wh33t@box:/var/www$ id wh33t
uid=1000(wh33t) gid=1000(wh33t) groups=1000(wh33t),4(adm),20(dialout),24(cdrom),27(sudo),30(dip),33(www-data),46(plugdev),115(lpadmin),136(sambashare)And yet I cannot seem to edit or create files in the /var/www/html directory

Code:wh33t@box:/var/www$ pwd
/var/www
wh33t@box:/var/www$ ls -l
total 4
drwxrwxr-x 2 www-data www-data 4096 Sep 20 15:47 html
wh33t@box:/var/www$ touch html/test.txt
touch: cannot touch 'html/test.txt': Permission denied
wh33t@box:/var/www$ ls -l html/
total 16
-rwxrwxr-x 1 www-data www-data 10671 Sep 20 15:44 index.html
-rwxrwxr-x 1 www-data www-data 5 Sep 20 15:47 test.htmlWhat am I doing wrong?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments