Mac OS X: detailed configuration of AFP and SMB sharing configurations

Source: Internet
Author: User

In the system preferences of Mac OS X, the file sharing configuration may not be flexible enough, or sometimes not obvious enough. For example, you cannot clearly identify from the GUI, which can be shared by AFP, which is SMB and which is both. You can use the following method to understand the specific configuration of a shared name. For example, if the shared name is DS, run the command line:

Dscl.-Read/sharepoints/DS

The following information is obtained, indicating that it is shared through AFP and SMB. The shared names are Ds, and the path is/users/shared/Ds.

Dsattrtypenative: afp_guestaccess: 1

Dsattrtypenative: afp_name: DS
Dsattrtypenative: afp_shared: 1
Dsattrtypenative: directory_path:/users/shared/DS
Dsattrtypenative: ftp_name: DS
Dsattrtypenative: sharepoint_group_id: 6394a3e4-2542-4cef-949f-fe35909db095
Dsattrtypenative: smb_createmask: 644
Dsattrtypenative: smb_directorymask: 755
Dsattrtypenative: smb_guestaccess: 1
Dsattrtypenative: smb_name: DS
Dsattrtypenative: smb_shared: 1
Applemetanodelocation:/local/Default
Recordname: DS
Recordtype: dsrectypestandard: Invalid points

 

Of course, you can modify the content to meet your requirements, such as changing the SMB Share Name:

Dscl.-Change/sharepoints/DS smb_name DS smb_ds

 

The above content is about the Mac OS X working-side platform, not the server version. The GUI configuration on the server is much more flexible.

If the test is passed on the 10.6 system, it should work on the 10.5 system, but it is not tested.

2011-05-28

Related Article

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.