[Samba] domain member login

Rowland Penny rpenny at samba.org
Tue Jun 3 19:46:19 UTC 2025


On Tue, 3 Jun 2025 14:11:40 -0400
Sonic via samba <samba at lists.samba.org> wrote:

> On Tue, Jun 3, 2025 at 1:24 PM Rowland Penny via samba
> <samba at lists.samba.org> wrote:
> > I think you need to describe your set up in a bit more detail,
> > starting with your smb.conf
> 
> I did need a local user to install the OS 

That I can accept

> and for various reasons I
> may want others.

Then put them in AD, unless they are 'system' users (users with an ID
less than 999).

> When I create a local user via the GUI (KDE Plasma) the home dir gets
> 700 perms, when I log in the first time with a domain user their home
> dir gets 755 perms (/home/DOMAIN/username).

That is easy to fix, open /etc/pam.d/common-session in your favourite
editor, find this line:

session optional                        pam_mkhomedir.so

Change it to:

session optional                        pam_mkhomedir.so umask=0077

Rowland



More information about the samba mailing list