FabrizioR8
Dabbler
- Joined
- Jul 13, 2022
- Messages
- 17
I just installed a dev environment with bluefin and specified the "admin" user during installation.
After getting into the UI, enabling SSH, and adding my authorized keys, I find that there is an error upon logout:
Upon further examination, the /home/admin directory is owned by root:root with 755 permissions! Only the .ssh directory is owned by admin:admin.
This seems like a rather obvious bug, yes?
My workaround is to just fix it manually and call it a day.
And just forget for a minute that they've set the default prompt with a hash (as if really root, but isn't..) SMH!
After getting into the UI, enabling SSH, and adding my authorized keys, I find that there is an error upon logout:
admin@truenas[~]# exit
zsh: locking failed for /home/admin/.zsh-histfile: permission denied
Upon further examination, the /home/admin directory is owned by root:root with 755 permissions! Only the .ssh directory is owned by admin:admin.
This seems like a rather obvious bug, yes?
admin@truenas[~]# ls -al
total 24
drwxr-xr-x 3 root root 7 Dec 13 05:46 .
drwxr-xr-x 3 root root 3 Dec 13 05:46 ..
-rwxr-xr-x 1 root root 167 Dec 13 04:32 .gdbinit
drwx------ 2 admin admin 3 Jan 6 13:42 .ssh
-rwxr-xr-x 1 root root 219 Dec 13 04:32 .warning
-rwxr-xr-x 1 root root 90 Dec 13 04:32 .zlogin
-rwxr-xr-x 1 root root 667 Dec 13 04:32 .zshrc
admin@truenas[~]# id
uid=950(admin) gid=950(admin) groups=950(admin),544(builtin_administrators)
My workaround is to just fix it manually and call it a day.
admin@truenas[~]# sudo chown -R admin /home/admin
admin@truenas[~]# sudo chgrp -R admin /home/admin
admin@truenas[~]# chmod -R o-rwx /home/admin
And just forget for a minute that they've set the default prompt with a hash (as if really root, but isn't..) SMH!