[ale] chmod

Alex Carver agcarver+ale at acarver.net
Wed Dec 28 10:27:53 EST 2016


Ok, a Mac.  Then it's an underlying ACL.

Check the ACL using ls -le <file>

After that, sudo chmod -N <file> to strip the ACL off the file.

The ACLs are stored separately from the file so FAT, HFS and other file
systems are able to be controlled by an ACL.

On 2016-12-28 07:22, Sean wrote:
> Thanks for all the hints.  Most of this stuff I already knew.
> 
> On changing perms, I couldn't make the changes -- even as root.
> 
> I think the ultimate point of friction is the MAC OS.  It is somehow locking 
> these files with some sort of attribute I do not understand or know how to 
> disclose -- but one that the FAT file system on the thumb drive passes on.
> 
> I try to avoid recursive mode (with rare and careful exception) because of the 
> risk of unintended consequences.  It's sorta like moving from a .22 rifle to a 
> 10 gauge shotgun. There are consequences! And they can disrupt your day.
> 
> Sean
> 
> -----------------------------------------------------------------------------------------
> On Tuesday, December 27, 2016 7:28:04 PM EST Alex Carver wrote:
>> He shouldn't need recursive mode if he's inside the same directory as
>> the files.
>>
>> However, which user owns the file?  If you're not the explicit owner
>> then it's not going to change permissions.  Sometimes it doesn't change
>> permissions if you're a member of the group, either.
>>
>> On 2016-12-27 16:43, Jim Kinney wrote:
>>> -r
>>>
>>> Recursive
>>>
>>> It may be -R
>>>
>>> Damn gnu not setting a standard on rR for recursive.
>>>
>>> On Dec 27, 2016 7:08 PM, "Sean" <kilpatms at comcast.net
>>>
>>> <mailto:kilpatms at comcast.net>> wrote:
>>>     I am confused -- which is nothing new.
>>>     Running Fedora 24 on this laptop w/kernel 4.8.14, and CentOS  7.2 on
>>>     my big
>>>     box.
>>>     In the past the following command has changed the perms within a
>>>     directory of .JPG files so that all of those files have the same
>>>     perms:
>>>     
>>>     chmod 660 *.JPG
>>>     
>>>     Now it doesn't. On CentOS.  Works just fine on this laptop w/Fedora 24
>>>     -- ON SOME DIRECTORIES!!! just not on the directories I need to have
>>>     this work on.
>>>     
>>>     Specifically, I have some pix taken with an i-phone. They were
>>>     transferred to a thumb drive and then to this laptop. The perms read:
>>>     -rw-r--r-- and I want them to read: -rw-rw-r--   I would like to
>>>     change the perms on both the thumb drive AND on the laptop.s hard
>>>     drive.
>>>     
>>>     I've looked through the man page and, as is often the case, been
>>>     unable to
>>>     glean a clue.
>>>     
>>>     A clue would be appreciated.
>>>     
>>>     How do I change the perms from -rw-r--r-- on a set of jpg files within
>>>     a
>>>     single directory to -rw-rw-r--  ?  And have it stick?
>>>     
>>>     
>>>     
>>>     sean
>>>     
>>>     
> 
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
> 



More information about the Ale mailing list