Quoting Christopher Schultz <ch...@christopherschultz.net>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Mark,
On 2/13/15 1:02 PM, Mark H. Wood wrote:
On Fri, Feb 13, 2015 at 11:46:37AM -0500, Christopher Schultz
wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Alexander,
On 2/12/15 2:26 PM, Alexander Johnson wrote:
It looks like that's true. It turns out this wasn't a
permissions issue at all. For some reason copying the JAR
files out of the directory and back into it caused them to be
picked up (I read this in a suggestion somewhere). Reading the
'man' entry for cp I see that it doesn't preserve "Access
Control Lists (ACLs) and Extended Attributes (EAs), including
resource forks" unless the -p flag is set (this is on by
default when using mv). My guess is that removing this "access
control" information somehow made the files accessible to the
tomcat7-maven-plugin. It seems a little sketchy that I don't
really know the root cause of the problem, but I'm happy that
it's now fixed.
Aah, yes: the ACL. That's one of those super-fun *NIX-isms that
can ruin your day.
$ ls -l
- -rwxrwxrwx chris chris 100 a_file
$ cat a_file
cat: a_file: Permission denied
*grumble*
The best part is that 'ls' doesn't show you there is a problem,
at least not directly. Everyone always forgets about the other
commands.
The 'ls' that comes as part of Gnu Coreutils will, when built that
way, add a "+" to the mask to show that there is an ACL on the
object. (But that's all it does -- I still have to remember to
use 'getfacl' to see what the ACL actually *says*.)
Yep.
- From Alexander's previous message, it did not seem like 'ls' was
notifying him about the presence of the acl. I checked the
gnu-coreutils man pages and info pages, and neither mention ACLs. Can
you give me a reference for the "+" thing?
- -chris
Hi Chris:
On my Ubuntu 14.04 LTS box:
a@Ubuntu:~/Documents$ ls -l
total 4
-rwxrwxrwx+ 1 root root 21 Feb 14 15:18 test
a@Ubuntu:~/Documents$ cat test
cat: test: Permission denied
a@Ubuntu:~/Documents$ getfacl test
# file: test
# owner: root
# group: root
user::rwx
user:a:---
group::rwx
mask::rwx
other::rwx
For more information: man acl and man setfacl
Gustavo Avitabile
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org