<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY 
style="WORD-WRAP: break-word; khtml-nbsp-mode: space; khtml-line-break: after-white-space">
<DIV>
<DIV><SPAN class=452083617-04082006><FONT face=Tahoma color=#0000ff size=4>The 
way I did this was to create a text file with:</FONT></SPAN></DIV>
<DIV><SPAN class=452083617-04082006><FONT face=Tahoma color=#0000ff 
size=4>useradd -g users -m -p -d direct4me xxxxx99 
mugwhump</FONT></SPAN></DIV>
<DIV><SPAN class=452083617-04082006><FONT face=Tahoma color=#0000ff 
size=4>useradd -g users -m -p -d directory2 xxxxx99 
otheruser</FONT></SPAN></DIV>
<DIV><SPAN class=452083617-04082006><FONT face=Tahoma color=#0000ff 
size=4>useradd -g users -m -p xxxxx99 another</FONT></SPAN></DIV>
<DIV><SPAN class=452083617-04082006><FONT face=Tahoma color=#0000ff 
size=4></FONT></SPAN> </DIV>
<DIV><SPAN class=452083617-04082006><FONT face=Tahoma color=#0000ff size=4>The 
first 2 with the -d option create the specific directory for the user, the 3rd 
one uses the default /home/another</FONT></SPAN></DIV>
<DIV><SPAN class=452083617-04082006></SPAN><SPAN class=452083617-04082006><FONT 
face=Tahoma color=#0000ff size=4></FONT></SPAN> </DIV>
<DIV><SPAN class=452083617-04082006><FONT face=Tahoma color=#0000ff size=4>Then 
from the root command line prompt:</FONT></SPAN></DIV>
<DIV><SPAN class=452083617-04082006><FONT face=Tahoma color=#0000ff size=4># sh 
./textfile-that-I-created</FONT></SPAN></DIV>
<DIV><SPAN class=452083617-04082006><FONT face=Tahoma color=#0000ff 
size=4></FONT></SPAN> </DIV>
<DIV><SPAN class=452083617-04082006><FONT face=Tahoma color=#0000ff size=4>Bill 
Watson</FONT></SPAN></DIV>
<DIV><SPAN class=452083617-04082006><FONT face=Tahoma color=#0000ff size=4><A 
href="mailto:bill@magicdigits.com">bill@magicdigits.com</A></FONT></SPAN></DIV></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  rhn-users-bounces@redhat.com [mailto:rhn-users-bounces@redhat.com] <B>On 
  Behalf Of </B>Vincent Matyi<BR><B>Sent:</B> Friday, August 04, 2006 10:27 
  AM<BR><B>To:</B> Red Hat Network Users List<BR><B>Subject:</B> [rhn-users] 
  Mass Usernames and Directories<BR><BR></FONT></DIV>
  <DIV><SPAN class=Apple-style-span 
  style="WORD-SPACING: 0px; FONT: 12px Gill Sans; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN 
  class=Apple-style-span 
  style="WORD-SPACING: 0px; FONT: 12px Gill Sans; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2">
  <DIV>Hi</DIV>
  <DIV><BR class=khtml-block-placeholder></DIV>
  <DIV>I have a massive directory of users that I've migrated to a new 
  install.</DIV>
  <DIV><BR class=khtml-block-placeholder></DIV>
  <DIV>I will have to create a new user, one by one, and point them back to 
  their directory. And, them ownership and passwords.</DIV>
  <DIV><BR class=khtml-block-placeholder></DIV>
  <DIV>My question to this list is their a way to speed this up? </DIV>
  <DIV><BR class=khtml-block-placeholder></DIV>
  <DIV>Potentially a command that will create usernames based on each name of 
  the containing directory, one generic password, and ownership to the 
  directory.</DIV>
  <DIV><BR class=khtml-block-placeholder></DIV>
  <DIV>Thanks for any feedback,</DIV>
  <DIV>Vincent</DIV><BR class=Apple-interchange-newline></SPAN></SPAN></DIV><BR>
  <DIV>
  <DIV>On Aug 4, 2006, at 1:10 PM, Ted Marshall wrote:</DIV><BR 
  class=Apple-interchange-newline>
  <DIV style="MARGIN: 0px">At least in FC3 and later, under Gnome, I use 
  "Desktop->Preferences->Removable Drives and Media".<SPAN 
  class=Apple-converted-space>  </SPAN>I assume that this works on RHEL 4 
  also.</DIV>
  <DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
  <BLOCKQUOTE type="cite">
    <DIV style="MARGIN: 0px">Date: Thu, 3 Aug 2006 15:53:20 -0700</DIV>
    <DIV style="MARGIN: 0px">From: "Brad SHARPE" <<A 
    href="mailto:bsharpe@mdacorporation.com">bsharpe@mdacorporation.com</A>></DIV>
    <DIV style="MARGIN: 0px">Subject: [rhn-users] Disabling USB drive 
    automounts</DIV>
    <DIV style="MARGIN: 0px">To: <<A 
    href="mailto:rhn-users@redhat.com">rhn-users@redhat.com</A>></DIV>
    <DIV style="MARGIN: 0px">Message-ID: <<A 
    href="mailto:57F67688A8D72449AC80164DA9820831730809@VMXYVR1.ds.mda.ca">57F67688A8D72449AC80164DA9820831730809@VMXYVR1.ds.mda.ca</A>></DIV>
    <DIV style="MARGIN: 0px">Content-Type: text/plain; charset="us-ascii"</DIV>
    <DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
    <DIV style="MARGIN: 0px">Hi,</DIV>
    <DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
    <DIV style="MARGIN: 0px">Has anyone had experience disabling the automount 
    system in RHEL 4. I</DIV>
    <DIV style="MARGIN: 0px">would like to turn off automounting of any 
    USB/FIREWIRE drives attached</DIV>
    <DIV style="MARGIN: 0px">to the machine. The key is that I can't turn the 
    USB ports off because</DIV>
    <DIV style="MARGIN: 0px">I'm using USB mice and keyboards.</DIV>
    <DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
    <DIV style="MARGIN: 0px">Thanks for the help.</DIV>
    <DIV style="MARGIN: 0px">Brad</DIV></BLOCKQUOTE>
  <DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
  <DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
  <DIV style="MARGIN: 0px">_______________________________________________</DIV>
  <DIV style="MARGIN: 0px">rhn-users mailing list</DIV>
  <DIV style="MARGIN: 0px"><A 
  href="mailto:rhn-users@redhat.com">rhn-users@redhat.com</A></DIV>
  <DIV style="MARGIN: 0px"><A 
  href="https://www.redhat.com/mailman/listinfo/rhn-users">https://www.redhat.com/mailman/listinfo/rhn-users</A></DIV></DIV><BR></BLOCKQUOTE></BODY></HTML>