2

When I SSH into TrueNAS with userx, $HOME is not the one I configured for this user:

echo $HOME

/mnt/data0

  • Within /etc/passwd, the folder is different:
    userx:x:3000:3000:UserX:/mnt/data0/userx:/usr/bin/zsh
    
  • Within the TrueNAS configuration panel, it's set to:
    /mnt/data0/userx
    

The following didn't work - maybe it's some kind of variable overwritten on SSH?

sudo usermod -d /mnt/data0/userx userx

usermod: no changes

ls -l /mnt/data0/userx

  total 62
  drwxrwx---+ 2 userx userx   6 Nov  1 13:07 RG531MP/
  drwxrwx---+ 2 userx userx   2 Sep 19 00:44 bin/
  drwxrwx---+ 4 userx userx   4 Nov 12 19:02 cosas/
  drwxrwx---+ 2 userx userx   7 Nov  1 13:04 isos/
  -rwxrwx---  1 userx userx 760 Sep 23 12:32 compose.yaml*
percival% ls -l /mnt/data0

  total 276
  drwxr-xr-x   2 root      root           2 Mar 11  2024 VM/
  drwxr-xr-x   2 root      root           2 Sep 24 12:57 data/
  drwxrwxr-x+ 16 root      root          20 Jan 14 12:53 docker/
  drwxrwx---   9 userx     userx         16 Jan 18 13:51 userx/
  drwxrwxr-x+  2 root      root           3 Apr 23  2024 iso-files/
  drwxr-xr-x   5 root      root           7 Sep 29 12:40 jailmaker/
  drwxrwx---  12 root      root          13 Dec 26 16:34 media/

mount | grep /mnt/data0

  ...
  data0/userx on /mnt/data0/userx type zfs (rw,noatime,xattr,posixacl,casesensitive)
  ...

You can see a screenshot of the TrueNAS WebUI with the userx example here:

userx example

userx example 2

1 Answers1

0

The problem was inside my .zshrc

I put the next line:

export HOME=/mnt/data0

Instead of

export HOME=/mnt/data0/userx

Right now it's working fine.