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
SAMBA file server with AD authentication automatic share folder creation
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: SAMBA file server with AD authentication automatic share folder creation
Is the directory being created upon ssh login to the CentOS machine?
Re: SAMBA file server with AD authentication automatic share folder creation
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
So i would like to avoid this step is possible
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: SAMBA file server with AD authentication automatic share folder creation
I was thinking about a script that will create the homes for you with the right permissions .