[Samba] [SAMBA] smb.conf root preexec ?
spindles7 at gmail.com
Wed Aug 1 17:06:13 UTC 2018
On Wed, 1 Aug 2018 16:44:24 +0100
Rowland Penny via samba <samba at lists.samba.org> wrote:
> >On Wed, 1 Aug 2018 16:39:14 +0100
> >niya via samba <samba at lists.samba.org> wrote:
> >i sat back and had a think for a while and decided not to complicate
> >my dc with this auto user creation idea,
> >what i will do is use rsat to create the user then ssh to the
> >fileserver and run a home directory creation script there.
> >thank for the help.
>If you set PAM correctly, this will create user home directories for
Yes, indeed, but that requires the AD user to log onto the linux box. If the
users' share permission are set up correctly and you specify connecting
the User's Home directory to the share in ADUC (on the Profile tab), eg as
"Connect H: to \\server\sharename\%USERNAME%", this should create the home
directory automatically under \\server\share when you add the user.
Similarly if you have any GPOs with Folder Redirection set, the folders get
created when the user logs on the 2nd time (don't know why it doesn't create
them the first time, but not a big issue).
folders-for-home-roaming-profile-and-redirected-folders/ for the steps (ignore
creating the share) but use Computer Management MMC from a Windows (7 or 10)
machine to set the share permissions and NTFS permissions on the users' share on
the linux box. Note the permissions shown in this article are different to
that shown on the samba WiKI, but I have got this to work correctly by following
the above procedure (@Rowland you may wish to review the WikI?).
More information about the samba