Not getting the windows authentication prompt for a FreeNAS share directory

Status
Not open for further replies.

Arka Banerjee

Dabbler
Joined
Jan 12, 2017
Messages
12
I have set up a FreeNAS box (FreeNAS 9.10.2). Created two windows share test1 and test2.

There is two different users (also test1 & test2) and and groups (test1 & test2) for individual access to the share.i.e. test1 user of test1 group will only access test1 share and vice versa.

Now the problem is if I set the permission (Read & Execute) for "other" user in the dataset then after logging in one share another share is getting opened in read only mode (no authentication prompt).

And if I don't set any permission for "other" in the dataset then I am getting an error "windows cannot access the share".

I want to get another authentication prompt when I try to login into the other share.
 
Last edited by a moderator:

Arka Banerjee

Dabbler
Joined
Jan 12, 2017
Messages
12
I have already went through your videos in Youtube. But my problem is slightly different.

I have a samba share hosted in rhel5. Where if I log into in one share directory with correct user name and password and then if I try to logging in another one it always prompt me with an authentication window.
But when I try to do this in FreeNAS that is not happening. If there is no connection established to the share then I am getting the authentication prompt. But if there is a connection to a share directory then other directories are opening in read only mode. So I am not able to established multiple authenticated connection to multiple share directory.
 
Last edited by a moderator:

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
This is assuming you're connecting from a Windows client.

When you connect to a FreeNAS Samba share, the credentials are cached. When you browse to another share, the cached credentials are used. You must logoff from the Samba server in order to connect using a different user name.

If the shares are in read-only when it should be writeable, this is a permissions issue you need to resolve. Permissions are covered by the video.
 

Arka Banerjee

Dabbler
Joined
Jan 12, 2017
Messages
12
Yes from windows client.
But My existing samba share which is hosted in rhel5, it does give me authentication prompt though I have already logged in in another share directory.

I am sharing the existing configuration and new configuration

First where I am getting the authentication prompt

Code:

[XXX]
   comment = XXX Share
   security = user
   path = /software/data/public/xxx
   writable = yes
   valid users = +smbxxxx
   public = yes
   keepalive = 6000
[YYY]
   comment = YYY Share
   security = user
   path = /software/data/public/yyy
   writable = yes
   valid users = +smbxxxx
   public = yes


Second where the directory opening in read only mode without authentication

Code:
time server = yes  
  acl allow execute always = true  
  dos filemode = yes  
  multicast dns register = yes  
  domain logons = no  
  local master = yes  
  idmap config *: backend = tdb  
  idmap config *: range = 90000001-100000000  
  server role = standalone  
  netbios name = FREENAS  
  workgroup = WORKGROUP  
  security = user  
  pid directory = /var/run/samba  
  create mask = 0666  
  directory mask = 0777  
  client ntlmv2 auth = yes  
  dos charset = CP437  
  unix charset = UTF-8  
  log level = 1  
  
  
[XX]  
  path = /mnt/TestShare/XX  
  printable = no  
  veto files = /.snapshot/.windows/.mac/.zfs/  
  writeable = yes  
  browseable = yes  
  vfs objects = zfs_space zfsacl aio_pthread streams_xattr  
  hide dot files = yes  
  guest ok = no  
  nfs4:mode = special  
  nfs4:acedup = merge  
  nfs4:chown = true  
  zfsacl:acesort = dontcare  
  
  
[ShareTest]  
  path = /mnt/TestShare/HR  
  printable = no  
  veto files = /.snapshot/.windows/.mac/.zfs/  
  writeable = yes  
  browseable = yes  
  vfs objects = zfs_space zfsacl aio_pthread streams_xattr  
  hide dot files = yes  
  guest ok = no  
  nfs4:mode = special  
  nfs4:acedup = merge  
  nfs4:chown = true  
  zfsacl:acesort = dontcare


Also the error message I am getting for two share is different. The images are attached herewith.
 

Attachments

  • credential.pdf
    168.3 KB · Views: 404
Status
Not open for further replies.
Top