Mac System home Directory permissions modified "reprint"

Source: Internet
Author: User

Reprinted from: http://ju.outofmemory.cn/entry/283070

Recently, want to install a program under the Home/home directory under the Mac, found that no permissions, even the use of the sudo command can not create the program directory, on the internet for half a day to find the following ways to improve the Mac/home directory permissions.

Compile the/etc/auto_master file, comment out or remove the line that begins with/home and save.

sudo vim /etc/auto_master

Comment out the/home line as follows:

## automounter master Map# +auto_master # use directory Service/net -hosts -nobrowse,hidefromfinder ,nosuid#/home Auto_home-nobrowse,hidefromfinder /network/servers< Span class= "PLN" > -fstab/--static             

Save, in order to make it effective, you need to execute the following command (restart the computer if it fails)

sudo automount -vc

The following information appears, indicating that the Modify/home directory permission succeeded

automount: /net updatedautomount: /home unmounted

Now go to the/home directory and execute:

sudo mkdir test 

The test directory is the directory you want to create under/home.

Mac System home Directory permissions modified "reprint"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.