Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-107949

ZSH not working with SMB/CIFS file share

    XMLWordPrintable

    Details

    • Impact:
      Low

      Description

      Hello

       

      Summary:

      We are using Active Directory and pam_mount

       

      pam_mount.conf.xml:


      <?xml version="1.0" encoding="utf-8" ?>
      <pam_mount>
      <debug enable="1" />
      <volume
       fstype="cifs"
            sgrp="domain users"
            server="10.150.102.35"
            path="WSOEDC/%(USER)"
            mountpoint="/home/WSOEDC/%(USER)"
            options="sec=ntlmsspi,nounix,workgroup=WSOEDC,file_mode=0700,dir_mode=0700,vers=2.1,noserverino"
            ssh="0"
      />
      <mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" />
      <mntoptions require="nosuid,nodev,noserverino" />
      <logout wait="0" hup="no" term="no" kill="no" />
      <mkmountpoint enable="1" remove="true" />
      </pam_mount>
       

       

      When a user attempts to access zsh:

      ismith@cs-spock2:~$ zsh
      ismith@cs-spock2 ~ % test
      ismith@cs-spock2 ~ % history
          1  test
      ismith@cs-spock2 ~ % ls
       hello.txt  'nvme_nas write speed.txt'   old_dot   snap   ssl_setup   ubuntu-16.04.5-desktop-amd64.iso
      ismith@cs-spock2 ~ % exit
      zsh: locking failed for /home/WSOEDC/ismith/.zsh_history: operation not supported
       

      The home folder is mounted at /home/WSOEDC/<user> and the permissions are:

      ismith@cs-spock2:~$ ls -lhart
      -rwx------ 1 ismith domain users   14 Oct 12 15:40  hello.txt
      drwx------ 2 ismith domain users    0 Oct 12 15:48  .local
      drwxr-xr-x 5 root   root         4.0K Oct 12 16:02  ..
      -rwx------ 1 ismith domain users  704 Oct 12 16:05  .viminfo
      -rwx------ 1 ismith domain users    0 Oct 14 15:42  .zsh_history
      -rwx------ 1 ismith domain users 5.6K Oct 14 16:22  .bash_history
      -rwx------ 1 ismith domain users 1.4K Oct 15 10:10  .zshrc
      -rwx------ 1 ismith domain users  160 Oct 15 10:42  .Xauthority
      drwx------ 2 ismith domain users    0 Oct 15 11:11  .
      -rwx------ 1 ismith domain users  49K Oct 15 11:11  .zcompdump
       

      This also happens when using 'file_mode=0755,dir_mode=0755' as well for the mount.

       

      Unsure where else to go from here, I also know NFS permissions are not working properly on TrueNAS Scale yet so only other thing I can think of.

       

       

       

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                awalker Andrew Walker
                Reporter:
                ismith.hpu Ian Smith
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated: