How can I remove that '@' character from the file permissions?
'@' in file permissions for Mac/OSX machines, is used to show that an extended attribute is set with this file.
chmod 755 galaxy-ansible.yml
but that didn't help. echo | chmod -E galaxy-ansible.yml
, didn't help (even with using sudo
).xattr -d galaxy-ansible.yml
, that didn't help either (even with using sudo
).I even did the above operations as root user, still '@' character is not going away from file's permissions.
[arun@MacBook-Pro-2 ~/aks/anisble] $ ls -l@ galaxy-ansible.yml
-rwxr-xr-x@ 1 arun staff 270 Dec 22 12:31 galaxy-ansible.yml
com.apple.quarantine 67
My ~/aks folder is mapped to a CentOS vagrant box and if I'm on the vagrant box, doing ls -l
doesn't give me '@' (as it's not a Max/OSX machine):
-rwxr-xr-x. 1 vagrant vagrant 270 Dec 22 00:12 galaxy-ansible.yml
On my Mac/OSX machine, there are other .yml files but those don't have '@' in the file permissions so I'm trying to remove '@' from galaxy-ansible.yml file (on Mac machine).
Right now the whole roles/.. folder has '@' character for any folder/files.
-rwxr-xr-x@ 1 arun staff 1132 Dec 21 17:12 README.md
drwxr-xr-x@ 3 arun staff 102 Dec 21 17:12 defaults
drwxr-xr-x@ 3 arun staff 102 Dec 21 17:12 handlers
drwxr-xr-x@ 4 arun staff 136 Dec 21 17:12 meta
drwxr-xr-x@ 5 arun staff 170 Dec 21 17:12 tasks
drwxr-xr-x@ 7 arun staff 238 Dec 21 17:12 templates
In the Sharing & Permissions section, do any of the following: Add a user or group: Click the Add button below the list, select a user or group, then click Select. Remove a user or group: Select the user or group, then click the Remove button below the list.
To Remove All Extended Attributes On Many Files app and start typing xattr -rc , include a trailing space, and then then drag the file or folder to the Terminal. app window and it will automatically add the full path with proper escaping.
To change application permissions on a mac, click the Apple icon → Click "System Preferences" → Click "Security & Privacy" → Click "Privacy" → Click on a service → Click the check box to add or remove an app's permission to the selected service.
The following commands helped in clearing the extended attribute at file / folder(recursive) level.
xattr -c <yourfilename>
or
xattr -cr <yourfoldername>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With