Odd permissions on some files (Linux) any ideas?

Odd permissions on some files (Linux) any ideas?

Author
Discussion

TonyRPH

Original Poster:

12,972 posts

168 months

Friday 30th September 2016
quotequote all
I seem to remember I have encountered this before, but don't remember what it was.

Some file permissions contain an 11th column with a "+" symbol.

Like this:



-rw-rw-r-- 1 squeezeboxserver users 5741694 Jun 5 11:13 14_-_Something_So_Strong.mp3
-rw-rw-r--+ 1 squeezeboxserver users 8013283 Jun 5 11:12 15_-_Into_Temptation.mp3



I checked attributes with lsattr and it's not that.

Executing "chmod 664" (or any other perms) just changes the permissions as expected, but doesn't remove the "+".

O/S is Debian 7.11, fs is ext4 on RAID, nothing special. App armor not enabled (neither selinux)

Any ideas?


new_bloke

452 posts

284 months

Friday 30th September 2016
quotequote all
I think it's something to do with ACLs Try running getfacl <file> to see the full permissions.

TheExcession

11,669 posts

250 months

Friday 30th September 2016
quotequote all
IIRC correctly it means the file has an Access Control List (ACL) attached.

try


getfacl <filename>


and see what that tells you.

TonyRPH

Original Poster:

12,972 posts

168 months

Friday 30th September 2016
quotequote all
I ran getfacl on a file with the x and another without - there's definitely a difference in resulting output, but I can't see why there is a difference.



File with "+"

getfacl 06_-_Love_This_Life.mp3
# file: 06_-_Love_This_Life.mp3
# owner: squeezeboxserver
# group: users
user::rw-
user:squeezeboxserver:rw-
group::rw-
mask::rw-
other::r--

File without "+"

getfacl 12_-_Walking_On_The_Spot.mp3
# file: 12_-_Walking_On_The_Spot.mp3
# owner: squeezeboxserver
# group: users
user::rw-
group::rw-
other::r--



I guess I can now run setfacl to change it, however I'm curious to know how this changed (these were files download from Amazon's music store).

ETA: setfacl -b *.mp3 removed the acls

Thanks for pointing me in the right direction, I should have been aware of get/setfacl having worked with Linux as long as I have.



Edited by TonyRPH on Friday 30th September 17:59