2 FreeNAS Servers, same build, permission denied on one

iankearns

Dabbler
Joined
Jul 23, 2019
Messages
18
FreeNAS-9.2.1.7-RELEASE-x86 (fdbe9a0)

I know its an older build but the existing platform worked for me. Built a second server with a couple of drives and copied the config manually (CIFS config etc) but cannot connect to the second server from the same laptop. Just getting permission denied.

Why would I be able to connect to one FreeNAS server but not the other?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Possibly not same users and groups or they have been assigned different ID numbers. Review output of "pdbedit -L", "net groupmap list", getent passwd, and getent group on both systems and look for inconsistencies.
 

iankearns

Dabbler
Joined
Jul 23, 2019
Messages
18
Possibly not same users and groups or they have been assigned different ID numbers. Review output of "pdbedit -L", "net groupmap list", getent passwd, and getent group on both systems and look for inconsistencies.
We are talking about guest access here as it is only being used on my network by a PLEX server. Would this negate the inconsistencies that you refer to?

Appreciate the time you took to look at my post.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
We are talking about guest access here as it is only being used on my network by a PLEX server. Would this negate the inconsistencies that you refer to?

Appreciate the time you took to look at my post.
Guest access gets mapped to a local account on the FreeNAS server. The accounts need to line up / IDs be the same.
 

iankearns

Dabbler
Joined
Jul 23, 2019
Messages
18
Have run those four commands on the two servers within shell and as far as I can see the 'nobody' parameters/settings match exactly which accounts for the guest user.
[root@freenas5 ~]# pdbedit -L
root:0:root
[root@freenas5 ~]# net groupmap list
Environment LOGNAME is not defined. Trying anonymous access.
[root@freenas5 ~]# getent group
wheel:*:0
daemon:*:1
kmem:*:2
sys:*:3
tty:*:4
operator:*:5:uucp
mail:*:6
bin:*:7
news:*:8
man:*:9
games:*:13
ftp:*:14
staff:*:20
sshd:*:22
smmsp:*:25
mailnull:*:26
guest:*:31
bind:*:53
proxy:*:62
authpf:*:63
_pflogd:*:64
_dhcp:*:65
uucp:*:66
dialer:*:68
network:*:69
audit:*:77
www:*:80
nogroup:*:65533
nobody:*:65534
avahi:*:200
messagebus:*:201
hast:*:845

I can post the passwd command if you think it will help however they match on both servers
 
Top