I just did this when adding a user recently using the bulk script. Wasn't -m a default option before. It makes sense for it to be.<br><br>The trouble I had was that I deleted the user using smldap-userdel -r and when I added the user again using the bulk script with -m the user was created with a different uid and confused the system when the user tried to log in there were permissions problems opening desktop config files.
<br>I think I have fixed it. Using nautilus as root I when into the users /home directory and changed ownership to the username I wanted. Somehow when I tried to do this from CLI it got confused about which uid the name  was refering too.
<br><br>Krsnendu dasa<br><br><div><span class="gmail_quote">On 26/08/07, <b class="gmail_sendername">David Trask</b> <<a href="mailto:dtrask@vcsvikings.org">dtrask@vcsvikings.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
"Support list for open source software in schools." <<a href="mailto:k12osn@redhat.com">k12osn@redhat.com</a>><br>writes:<br>>Unfortunately, I do not understand your commands. I also have to have a<br>>way to do this that will work as this is a production server. I would just
<br>>blow this away and start over but the users passwords have already been<br>>put into there schedule. I am also unsure if I create the users again<br>>using the bulk user script (from matt oquists smbldap-installer) that it
<br>>will still not create the home directories. Is there something wrong with<br>>this script? I need help!<br><br><br>The passwords don't have to change....you should still have the master<br>output file with all the passwords in it right?  Sounds like you forgot
<br>the "-m" switch in smbldap-useradd-bulk.  Believe it or not...I did that<br>just the other day....so I ran smbldap-userdel-bulk.....removed the users<br>again....and then "re-added them" making sure I used the -m switch.
<br>So...let's assume the input file you used was  students.input.....and the<br>output file was students.output.   You should have originally run:<br><br>./smbldap-useradd-bulk -m -f students.input -o students.output
<br><br>To remove them....simply run<br><br>./smbldap-userdel-bulk -f students.output<br><br>Then to re-add....passwords and all...  (making sure this time the -m<br>switch is in place)<br><br>./smbldap-useradd-bulk -m -f 
students.ouput -o students.newoutput<br><br>The output file is actually in the format needed and contains all the<br>default information you need including the passwords.  The script works in<br>such a way that if the password is there in the text file....it will use
<br>it....otherwise it will generate one.  The output file has the password in<br>place...so that's the one that will be used.  No worries!  :-)<br><br>David N. Trask<br>Technology Teacher/Director<br>Vassalboro Community School
<br><a href="mailto:dtrask@vcsvikings.org">dtrask@vcsvikings.org</a><br>(207)923-3100<br><br><br>_______________________________________________<br>K12OSN mailing list<br><a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com
</a><br><a href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a><br>For more info see <<a href="http://www.k12os.org">http://www.k12os.org</a>><br></blockquote></div>
<br>