having a bit of a difficult time trying to create a folder under another user's /home/devuser1/pubic_html
folder. I'm trying to avoid using sudo
and looking for an alternative. The permissions on the said folder reads as:
drwxr-s--- 2 devuser1 www-data 4096 Apr 28 19:40 public_html
Alternatively, assuming I use the sudo
prefix, what would be the implications be? I've read that it's bad practice to use sudo
to make a folder. After the new folder is created, I'm still changing the ownership of it to the user in question. Example:
chown -vR devuser1:www-data /home/devuser1/public_html/$vhost