Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 386  / 1 Year ago, fri, december 23, 2022, 5:31:28

I tried deleting files on my dekstop (highlight files, press delete) in /usr/share/nginx/www but I'm getting permission denied issues.



What I did was, add www-data and barsoom(current user) to a group:



sudo addgroup web
usermod -a -G web barsoom
usermod -a -G web www-data
chgrp -R web /usr/share/nginx/www


But why can't I still delete the files in /usr/share/nginx/www. I'm still getting Permission denied?


More From » permissions

 Answers
6

  1. You need to logout and log back in after changing group membership in order to obtain the new set of privileges. (Alternatively you can run sg (like su, switch user, but instead switch group) You can see what privileges you current have by running id.


  2. What are the permissions on those files? Even with the group set to web, the group may not have the necessary write permissions.



[#36383] Saturday, December 24, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sigtestim

Total Points: 298
Total Questions: 108
Total Answers: 106

Location: Bermuda
Member since Thu, Apr 20, 2023
1 Year ago
;