1

I'd like to ADD myself (already in the webapps group) with drwxrwxrwx permission to the whole folder recursively:

$ ls -l /var/lib/tomcat8/webapps
total 67904
drwxrwxrwx 3 root    webapps     4096 Oct  1 21:39 ROOT
drwxrwxrwx 8 tomcat8 tomcat8     4096 Oct 11 18:01 AppWeb
-rwxrwxrwx 1 tomcat8 tomcat8 69522664 Oct 11 18:01 AppWeb.war

I don't want to remove permissions from users that already have it.

Other posts either come close to helping me or I don't understand, because I'm new.

It may help to know:

$ getent group webapps
webapps:x:1002:tony,root,tomcat8
  • See askubuntu.com/a/809562/158442 – muru Oct 27 '16 at 15:46
  • now running the command shows this total 0 d????????? ? ? ? ? ? ROOT d????????? ? ? ? ? ? AppWeb -????????? ? ? ? ? ? AppWeb.war – Mr. Butterworth Oct 27 '16 at 15:52
  • Now, I have to run SUDO ls -l /var/lib/tomcat8/webapps just to see the original permissions because "Permission denied" for me – Mr. Butterworth Oct 27 '16 at 15:55
  • I typed setfacl -m u:tony:rw /var/lib/tomcat8/webapps Didn't I do it right? Anybody? Bueller? Thanks. – Mr. Butterworth Oct 27 '16 at 16:17
  • Ouch. That should have been setfacl -m u:tony:rwx /var/lib/tomcat8/webapps. I'll correct that answer now. – muru Oct 27 '16 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.