If I right-click an application and click Get Info, a window like in the following image pops up:    Then, after unlocking the Sharing &amp; Permissions section, let's say I wish to change the permissions for everyone to No Access.  This is fairly simple to do through the GUI, but I was wondering if it was possible to do this through Terminal.  I know I could simply use chmod and change the permissions recursively for the application directory like that, but I would prefer a solution that simply changes the permissions in the same way the GUI does such that it is updated accordingly in the Info window for the app.  Edit:  I do not believe this is a duplicate of  because the answer to it only shows how to add access control entries, not how to modify them.
123105
The macOS gui, as shown in the attached image, provides a way to add users and user groups to the permissions of a file system directory.  There are also lots of examples of how to create groups from the command line, etc (dscl, and so forth).  But I don't see anything on how - from the command line - to add user groups to the permissions of a file system directory.    PS: The answers in  covers network shares, but don't show how to do what the Finder does (on an unshared folder).
91005
I am having an access problem to some files and directories that I have tracked down to the group assigned to access them.    When I manually change the name of the group in the properties/permissions menu for a directory from the default setting (MyGroup) to www-data used by my Drupal Website, the directory error messages I get are gone.    There are a large number of files and directories that require this change.  If believe using chmod will change the owner which is set correctly and being new to Ubuntu, I am reluctant to experiment without a better understanding of how owner and groups work in the permissions settings.   What command changes the Group setting for a directory?
2210
I accidently ran  sudo chmod 755 -R /   instead of  sudo chmod 755 -R ./   I stopped it after few seconds, but now there is some problems such as  sudo: must be setuid root   How can I revert permissions back?
68697
I would like to grant accessibility permission to some apps on Mac using Terminal as per this intruction   which is the accessibility tab in System Preferences  Or this    I would like to do that using Terminal so I can setup to install apps (i.e: BetterSnapTool) for many Mac at the same time, given I have admin privilege and this should be applied only on Mavericks and Yosemite  Does anyone know how to do this?  Thanks
14705
I've never seen this before. Our global and site level settings are 'don't allow sharing outside your organization' but today I noticed in the Site Permissions page an entry for Anonymous Users. It is not clickable and each time I check the box, it checks all other boxes. Does it impact our global settings? Or, how do I remove this permission?
116885
I'm new at Linux and I just download Ubuntu 12.04 LTS.  I found a spot that showed me how join my Windows Active Directory.  It has me add couple lines into the 'hosts' but I'm not able to edit the file because I do not have the permission.  I'm not the owner.  I use chmod with it rwx and still it will not let edit the file.  How do you change the permission?  Thanks
4651
There's a folder on my desktop called like 'example' and when I try to delete it it says "You require permission from the computer's admistrator to make changes to this folder" when checking the properties; the Current owner says "Unable to display current owner."  I have tried many solutions found online, including enabling &amp; signing into the adminstrator account, but haven't been able to fix it. My situation is extremely similar .  I can't even open the folder. I am running Windows 7 x64 Home Premium. I can't do anything to the folder because I need permission from my 'computer administrator' It's extremely weird, and I can't fix it. Thanks in advance!  UPDATE: Yes, I'm adminsitrator on my computer.
9122
Can you explain briefly the main concepts and command line tools used to manage file permissions?
34304
I recently reinstalled iTunes and I noticed something peculiar. The "original" version of iTunes has a user in the permissions known as "wheel" that is set to "Read Only". I dragged this version of iTunes to the trash and installed a new copy, and when I look at the properties for iTunes it no longer says wheel, but rather just admin.  Here is a screenshot with the new version (left) and the old version (right):    What is the "wheel" user"? How is it set (I can't seem to set it in the GUI)? Why would the permissions be different now? It's not a problem, I'm just terribly curious.
48463
I'm using the Arduino IDE in Ubuntu, and am having issues with the serial port. It has worked in the past, but for reasons that may be unnecesary, I felt the need to change the ownership of some of the files from root ownership to my users ownership.  This made the IDE work correctly, but I lost the ability to use the correct serial port.  In the dev folder, the port I need is listed as permission 166. Someone (who is no longer in the area to help me) swapped the permissions to 666, which made it all work gloriously.  However, it reverted back as soon as I restarted my computer, and if I now try to use the command:  sudo chmod 666 ttyACM0   nothing happens. No error messages, but no permission change either.    How can I change it, and how can I get it to change permanently.  I apologize if this question is overly simplistic or unclear, I'm an ubuntu noob, and I wouldn't begrudge feedback!
40008
Whenever I run an application in terminal as root (such as sudo gedit  /etc/default/varnish) , subsequently when I open another terminal I get "ls: cannot access .gvfs: Permission denied" error at top line of terminal.   I found a solution on the net     umount /path/to/.gvfs   rm -rf .gvfs   but it only fixes problem temporarily.  It appears that I have two mounted instances of gvfs in my system    $ sudo mount |grep gvfs     gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=33)     gvfsd-fuse on /home/****/.gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)   I don't know if it's related to, a few months ago I had to change permission in my home folder like     sudo chown -R $USER:www-data   Would you please help me fix it?  EDIT: After I unmount /run/user/1000/gvfs I don't get that error.
90949
There is a chmod command to set file permissions, but can I get file permissions in octal mode (such as 755) from the command line?
25959
For example, I'm trying to run Archive Manager from Ubuntu Desktop (10.04) under sudo otherwise it won't let me extract a Software Development Kit into /usr/local  Update: I don't want sudo to be a permanent change to launching the application; only to run it under sudo when I choose, until it's quit.
31947
I recently typed the command  sudo chmod 777 -R /   after that some things like  sudo -i   are not working normally. So I am wondering if there is any way I could reset the folder permissions to their original state?
117235
I have created directories in root. I am looking for the chmod command to allow all users read and write permissions to a specific directory. I have done chmod 775 for a file but I need this for a directory. This includes permissions on all files and sub directories.
114939
I want to grant a single user write permissions to a directory owned by root over command line. With chmod, it seems that I can only change the permissions for owner, group and other, not for a specific user.
5015
I changed permissions of a file (chmod g+w testfile) and running ls -l testfile gives:  -rwxrwxr-x 1 user1 user1 0 2011-01-24 20:36 testfile   I then added a user to that group ("/etc/group" has user1:x:1000:user2 line), but am failing to edit that file as user2. Why is this so?