SAMBA file server with AD authentication automatic share folder creation

Issues related to applications and software problems
Post Reply
mikeli23
Posts: 2
Joined: 2018/10/19 14:02:55

SAMBA file server with AD authentication automatic share folder creation

Post by mikeli23 » 2018/10/19 14:22:56

Hello Everyone

I am trying to establish Samba File Server in one organisation (around 100 users)

Users are authenticated with Windows AD with usernames: name.lastname and domain password. Shared folders for each user should also be called firstname.lastname

I joined Centos to AD, and authentication works well

I wonder is it possible to configure Samba so it automatically creates shared folder (example: /home/name.lastname ) for each AD user who tries to access that folder for the first time from windows (\\192.168.100.100\name.lastname) #Here we need 2 steps to be performed automatically: folder creation, and sharing of it

Is this possible to do at all?

I know about [homes] segment in smb.conf, which could automatically create shared folder, but i think this works only for Linux clients? Am I right?

Centos is version 7 , Samba is version 4

PS, there is also an option to automatically create home directorium for every user when he logs in for the first time, but that requires all of those 100 people to log in once via SSH, which I would like to avoid

Any suggestion would be much helpful, Thanks

hunter86_bg
Posts: 1422
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: SAMBA file server with AD authentication automatic share folder creation

Post by hunter86_bg » 2018/10/22 03:40:22

Is the directory being created upon ssh login to the CentOS machine?

mikeli23
Posts: 2
Joined: 2018/10/19 14:02:55

Re: SAMBA file server with AD authentication automatic share folder creation

Post by mikeli23 » 2018/10/23 13:23:28

That is the option, but I would like to avoid logging in of 100 people via SSH (i have to send group mail, than someone will not do it, someone is not techically skillful so he will not know how to do it even if I explain)

So i would like to avoid this step is possible

hunter86_bg
Posts: 1422
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: SAMBA file server with AD authentication automatic share folder creation

Post by hunter86_bg » 2018/10/23 17:44:20

I was thinking about a script that will create the homes for you with the right permissions .

Post Reply