Hi all,
Thank you Jean-Philippe Pialasse.
No, new created user are not included in any group.
You means Windows group. But he is automatically a member of "shared".
# cat /etc/group | egrep toto
shared:x:500:...,toto,...
toto:x:5018:
So I conclude that the right to logon to a Domain station depends on the membership to the group "shared" and not to the membership to the group "Domain users". That is why the user "toto" is able to logon to a Domain station because I didn't include him in the group "Domain users".
Thank you janet.
I am considering shared folder because I can control the HTTP/HTTPS access the same way as with i-bays but I can also control the SMB/CIFS access (visible, masked, no access), the recycle bin, and the time to keep the file.
I will still use i-bays for other groups.
Thank you Daniel B.
hidden group named 'shared' on SME, which correspond to 'Domain Users'
If 'shared' correspond to 'Domains Users' toto would run the script "usager-windows.bat" which is not the case.
https://technet.microsoft.com/en-us/library/dd277404.aspx
Logon Right: A user right that is assigned to a user and that specifies the ways in which a user can log onto a system. An example of a logon right is the right to log on to a system remotely.
Explanation # 1:- toto is a member of "shared" and not a member of "Domain users".
-
***** the "Logon Right" is given to the group "shared" and that is why toto is able to logon to the station.
- toto is not able to run the logon script "usager-windows.bat" because he is not a member of the group "Domains users".
- the group "shared" has no relation to the group "Domain users"
http://serverfault.com/questions/391940/a-user-in-multiple-user-groups-not-receiving-correct-permissons
...
NTFS permissions
In regards to NTFS permissions: NTFS permissions are cumulative and use a least restrictive mechanism. A user who is a member of multiple groups will have the least restrictive permissions of the culmination of the NTFS permissions granted to each group.
Share permissions
In regards to Share permissions: When combined with NTFS permissions, the more restrictive permissions prevail. For example, if the user or group has NTFS Full Control permissions but the Share permissions are Everyone|Read then the effective permissions (the more restrictive permissions) for any user or group is Read. To determine the effective permissions for a user or group, determine the effective NTFS permissions then determine the effective Share permissions, then determine the more restrictive permissions of the "combined" NTFS and Share permissions and those are the effective permissions for the user or group.
...
On the a station, I opened a command windows and run:
net use K: \\SME-9\partage_sme
which is the same as the content of the logon script "usager-windows.bat" and success.
In Windows explorer, I see a new mapped drive K: but if I click on it, ACCESS DENIED
Explanation # 2:- toto is a member of "shared" and not a member of "Domain users".
-
***** because of NTFS permissions and that toto is a member of "shared" and since "shared" has the least restrictive permissions, toto is able to logon to the station.
- toto is not able to run the logon script "usager-windows.bat" because he is not a member of the group "Domains users".
- toto has no right to the shared folder but he is still able to map a drive to it even if he can't access its content.
- the group "shared" has no relation to the group "Domain users"
I would like to understand, any suggestion appreciated,
Michel-André