Other configurations
1. Samba Server Common preset variables
Common preset variables are shown in table 6-1.
Table 6-1 Samba Preset variables
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/49/99/wKiom1QWZbmjEoapAACLAY5zgnQ836.png "title=" Sam33. PNG "alt=" Wkiom1qwzbmjeoapaaclay5zgnq836.png "/>
Samba server preset variables are very much used, except in the 6.3.1 section. Here is another example, the same shared resource name, when different users access, the corresponding Samba server local directory will be different.
[Smbtest] Comment = This is SMB Test path =/share/%u
2. Customizing the Windows client display file system
If a Windows client maps a Samba server to a network drive that appears as NTFS when viewing its file system, the Fstype parameter allows you to modify what is displayed, which is defined in the [Global] tab. After the following modifications, the Windows client appears as shown in Samba filesystem,6-33.
[Global] Fstype = Samba FileSystem
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/49/99/wKiom1QWZc3DHfYzAARu9KSXtlc400.png "title=" sam34. PNG "alt=" Wkiom1qwzc3dhfyzaaru9ksxtlc400.png "/>
3. Shared resource Availability
Defines whether a shared resource is available through the available parameter. In the following example, the Smbtest client is working, but the SMBTEST1 client will not be able to use it.
[Smbtest] Comment = This is the SMB test path =/test available = yes [Smbtest1] comment = this is SM b test1 Path =/test1 available = no
4. Shared resource Administrator
The admin users parameter is used to set the shared resource administrator to ignore the system's own permissions when connecting to the Samba server shared resource operation through the user or group specified by the admin users parameter. When the parameter is placed on the [Global] tab, it is a global configuration that is valid for all shared resources of the Samba server and is valid only for this shared resource if it is within the identity that defines a shared resource. If the global setting conflicts with a shared resource in this parameter, the parameter value within the shared resource takes precedence. In the following example, when a client connects to Smbtest using a Tomyang user, even if the/test system's own permissions do not allow writing, modifications and deletions can still be made, and when the client connects to Smbtest1 by using the Sales group user, even if the/TEST1 system itself permission does not allow writing , you can still modify and delete the operation.
[Global] Admin users = Tomyang [Smbtest] comment = This is SMB test path =/test writable = yes [Smbtest1] Comment = This is smb test1 path =/test1 writable = yes admin users = @sales
5. File and directory default permissions
The Create mask, directory mask, respectively, is used to set the default file-system-based permissions of the client when accessing the Samba server. The file or directory that the client establishes when it accesses the Samba server over the network to share a resource the default file system-based permissions must be lower than the default file-system-based permissions for files or directories that are established through native access. In the following two examples, the default file system-based permissions that are created when non-root users access/test and/test1 through the native computer are 664, then the Create mask set in Smbtest is valid, and the directory set in Smbtest1 Mask is not valid.
[Smbtest] Comment = This is SMB test path =/test writable = yes Create mask = 444 [Smbtest1] Comment = This is smb test1 path =/test1 writable = yes Create mask = 777
Reference: http://book.51cto.com/art/201108/282447.htm
This article is from the "--" blog, please be sure to keep this source http://57388.blog.51cto.com/47388/1552805
Linux--Other Samba configurations