senior_hombre
Explorer
- Joined
- Feb 11, 2012
- Messages
- 51
Hi,
i am currently trying to achieve the following:
- have two CIFS shares: one that belongs to a user called "user1" and needs a login and another one that needs no login and is accessable by everyone in the network
At first i created two datasets: one called user1 (located at 192.168.0.17:/mnt/volume1/user1) and another called public (located at 192.168.0.17:/mnt/volume1/public)
The first one is owned by a user called "user1" it has the default restrictions (not directly related but noteworthy: i am using the UNIX share type [thats the default when creating a new dataset])
the other one is owned by a user called "public". I needed to create the user "public" (and later choosing this user as the guest user in the CIFS service settings, because you cannot give a user a home directory [in my case the dataset] when it has a different name than the user, if you try you get a new subdirectory created with the name of the user, but thats definetly not what i want!).
Then i created a normal share for the user1-dataset and a special one (with guest login allowed and restricted to, as described here: http://doc.freenas.org/index.php/CIFS_Shares#Configuring_Anonymous_Access)
The results are the following:
- both shares are listed on all Windows 7 clients in the network - thats good
- the user1-share wants a login when trying to access it, and it only allows access when the correct username and password is given, when using "user1" and his password full access is granted (including creation of files): thats good too
- when trying to access the public directory access is granted too: looks good at first sight
- but when trying to created or change a file on the public directory i get "access denied": thats not what i want
What is happening here? I though using the tutorial posted above would results in everyone accessing as the owner of the directory (which of couse has full rights), because it is set as the CIFS guest account.
It not it true?
i am currently trying to achieve the following:
- have two CIFS shares: one that belongs to a user called "user1" and needs a login and another one that needs no login and is accessable by everyone in the network
At first i created two datasets: one called user1 (located at 192.168.0.17:/mnt/volume1/user1) and another called public (located at 192.168.0.17:/mnt/volume1/public)
The first one is owned by a user called "user1" it has the default restrictions (not directly related but noteworthy: i am using the UNIX share type [thats the default when creating a new dataset])
the other one is owned by a user called "public". I needed to create the user "public" (and later choosing this user as the guest user in the CIFS service settings, because you cannot give a user a home directory [in my case the dataset] when it has a different name than the user, if you try you get a new subdirectory created with the name of the user, but thats definetly not what i want!).
Then i created a normal share for the user1-dataset and a special one (with guest login allowed and restricted to, as described here: http://doc.freenas.org/index.php/CIFS_Shares#Configuring_Anonymous_Access)
The results are the following:
- both shares are listed on all Windows 7 clients in the network - thats good
- the user1-share wants a login when trying to access it, and it only allows access when the correct username and password is given, when using "user1" and his password full access is granted (including creation of files): thats good too
- when trying to access the public directory access is granted too: looks good at first sight
- but when trying to created or change a file on the public directory i get "access denied": thats not what i want
What is happening here? I though using the tutorial posted above would results in everyone accessing as the owner of the directory (which of couse has full rights), because it is set as the CIFS guest account.
It not it true?