LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to automatically add home user after issuing smbpasswd -a (https://www.linuxquestions.org/questions/linux-software-2/how-to-automatically-add-home-user-after-issuing-smbpasswd-a-483437/)

depam 09-14-2006 09:19 AM

How to automatically add home user after issuing smbpasswd -a
 
Hi again friends. I do have a project. I want to setup a file server using SMB and LDAP. Basically, all smb users will be saved in a LDAP server. I use phpldapadmin to simplify the administration such as adding, editing and deleting users. Usually if you issue the command "smbpasswd -a user", the system will tell you that you need to have an existing username in /etc/passwd before adding it up into Samba. With the help of smbldap, I can add up the samba users that I want using the phpldapadmin as the backend. The approach is very neat. However, I want to automatically provide the home directories for the users in /home/user directory if possible. This will then be shared so that when a user will access the "\\fileserver1" for instance, they will be redirected to their home directory and they can drag and drop files to it. My question is this, how can I automatically add home directories when I encoded a certain user in phpldapadmin. What annoys me is that in RH when I issue the command "useradd user", a home directory for that user is automatically created. In Mepis (the OS I'm using) does not automatically do that for you which makes it even harder. Hope someone got a script or something to enable me to automatically add home directories after I encode the users in phpldapadmin. If possible, please provide me the things that I need to adjust on my smb.conf. Thanks.


All times are GMT -5. The time now is 07:02 AM.