خرید بک لینک
Problem, unable to upload or edit on sftp via filezilla and ssl key

I'm coecting via my second user since for security you should disable root login.

I have added the second user "supersecretuser" to the root / sudo group.
The var/www/html is owned by www-data

supersecretuser@supersecretserver:~$ ls -la /var/www
drwxr-xr-x 3 supersecretuser root 4096 Nov 12 20:12 .
drwxr-xr-x 13 root root 4096 Mar 5 14:55 ..
drwxr-xr-x 18 supersecretuser www-data 4096 Mar 6 00:10 html

I have added supersecretuser to www-data with

sudo chown supersecretuser /var/www/html/*

I also tried

sudo chmod 755 /var/www/html/*

Restarted server, still get the error

Command: put "my computersite_logo.png" "site_logo.png"
Error: /var/www/html/styles/prosilver/theme/images/site_logo.png: open for write: permission denied
Error: File transfer failed

I'm new to linux so if i forgot something please help.
I would prefer to not use something like this;

Quick-n-dirty solution would be to give 777 permissions - or rwx to all user/group/other. Not exactly *best practices*, but it'll help you test. Then you can dial back the permissions until you get them right.

Or is that what i should do?

- - , .

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 16 اسفند 1394 ساعت: 8:33

صفحه بندی