Samba server permission settings-Linux Enterprise Application-Linux server application information. For details, refer to the following section. We use the example of a samba configuration file to illustrate this problem:
[Redhat]
Comment = redhat's files
Path =/var/redhat
Public = no
Valid = tom @ redhat/* valid user */
Write list = tom @ redhat/* users with write permissions */
Create mask = 0660
/* Permission for creating files, which is 660, that is, rw-rw ---- permission, that is
The owner and the same group have the readable and writable permissions */
Directory mask = 0660/* permission on the directory, which is also 660 permission */
[Add permission knowledge: r = read, 4 w = write in octal, 2 x = Execution in octal, and 1 in octal, in rw-rw ---- above, the nine characters are divided into three parts. The first three characters are the permissions of the file owner (rw-, readable and writable ), the three characters in the middle are the permissions of the same group (rw-, readable and writable), followed by the permissions of others (---, unreadable and unwritable), and changed to octal, r + w +-= 2 + 1 + 0 = 6, which forms a format such as mask = 0660. For permissions such as 770,775, you can think about it on your own.
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.