Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-14-2006, 09:19 AM   #1
Registered: Sep 2005
Posts: 850

Rep: Reputation: 30
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
adding users using smbpasswd, or synchronise passwd/smbpasswd gyodai Linux - Networking 2 03-11-2009 02:47 PM
user home dir doesn't create when new user add dev_mohamed Linux - Software 3 01-12-2007 01:08 AM
Unable to change existing smbpasswd on user; pam problem?? Geronimo Debian 1 10-13-2004 05:35 PM
smbpasswd -a ... smbpasswd: Command not found Lleb_KCir Linux - Software 7 08-11-2004 11:27 AM
I get this error when trying to add users('smbpasswd -a XXX'). lostboy Linux - General 7 05-02-2003 06:34 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration