This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cid_closed_directory [2024/09/28 10:46] team |
cid_closed_directory [2024/09/28 10:51] (current) team |
||
---|---|---|---|
Line 148: | Line 148: | ||
Other important aspects about permissions are: | Other important aspects about permissions are: | ||
- | You can specify more than one permission at the same time, separating them with a semicolon (;). | + | * You can specify more than one permission at the same time, separating them with a semicolon (;). |
- | Use a plus sign (+) at the beginning of the expression to append a new permission to the pre-existing permissions of the shared directory. | + | * Use a plus sign (+) at the beginning of the expression to append a new permission to the pre-existing permissions of the shared directory. |
- | Use a minus sign (-) at the beginning of the expression to remove pre-existing permissions on the shared directory. In this case, the expression must contain only the type and name of the account (eg -u:username). | + | * Use a minus sign (-) at the beginning of the expression to remove pre-existing permissions on the shared directory. In this case, the expression must contain only the type and name of the account (eg -u:username). |
- | The everyone term can be used in the Account field to represent all users. | + | * The everyone term can be used in the Account field to represent all users. |
- | If no permissions are specified when creating a share, all users will be given read-only permission. | + | * If no permissions are specified when creating a share, all users will be given read-only permission. |
Some examples: | Some examples: | ||
+ | |||
+ | **Allowing full access to the Domain Users group** | ||
+ | |||
+ | g:domain users:f | ||
+ | |||
+ | **Adding read-only permission to the Guest user account** | ||
+ | |||
+ | +u:guest:r | ||
+ | |||
+ | **Removing permissions for the Guest user account** | ||
+ | |||
+ | -u:guest | ||
+ | |||
+ | **Allowing full access to all users and denying access to the Guests group** | ||
+ | |||
+ | u:everyone:f;g:guests:d | ||
+ | |||
+ | **Userfolder mode** | ||
+ | |||
+ | This mode enables the homes section of Samba, which is a special type of file sharing that automatically provides a share with the same name as the user who accesses it. In this mode, the Path argument must contain the path of the parent directory where the diretories for each user are to be created. If this argument is omitted, the /home directory will be assumed by default. CID automatically creates user directories with appropriate permissions as users first access their respective shares. If disk quota is used, it will be automatically applied to each user directory. | ||