[ale] Samba setup

Mark Wright mpwright at speedfactory.net
Thu Aug 4 01:28:49 EDT 2005


I added a root passwd to the smbpasswd file and then made sure I  
added myself.  I did put a UID for myself on the system.  After I did  
this I have changed the failure message (which I forgot to mention in  
the original post)  Now I am getting a message that says a "machine  
account does not exist."

That helps.  There is a script that is supposed to create this.  Here  
is the log data from this failure.

[2005/08/03 20:30:08, 0] rpc_server/srv_samr_nt.c:_samr_create_user 
(2324)
   _samr_create_user: Running the command `/usr/sbin/useradd -s /bin/ 
false \-d /dev/null l200772$' gave 1
useradd: unable to lock password file

"unable to lock password file?"  What is that for?  More reading.....

On Aug 4, 2005, at 12:24 AM, Mark Wright wrote:

>
> Hi all,
>
> I am setting up a Domain controller with roaming profiles for a non-
> profit organization that I am donating the server to.  I have messed
> with Samba in the past just out or curiosity and didn't think it
> would be too hard.  I have, and have read the Official Samba 3  Howto
> and ref and I have been printing chapters from an excellent O'Rielly
> book that my Googling turned up.  All this because the Domain I am
> trying to create is not letting me log on with an NT 4 box I have
> kept around.
>
> I want to do all the config work so I can deliver it (to Alabama)
> Friday and sort of just plug and play with their network.  I have set
> up all the users and when I connect it to their current peer to peer
> network I want to be able to join each PC to the domain then set
> permissions so they can share files like they want.
>
> Anyone have some knowledge of this and can take a minute to look?
> Heres the testparm output.   Thanks.....  Mark
>
> # Global parameters
> [global]
>          workgroup = TCCGIRLS
>          server string = %h server (Samba, Ubuntu)
>          obey pam restrictions = Yes
>          passdb backend = tdbsam, guest
>          passwd program = /usr/bin/passwd %u
>          passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew
> \sUNIX\spassword:* %n\n .
>          username map = /etc/samba/smbusers
>          syslog = 0
>          log file = /var/log/samba/log.%m
>          max log size = 1000
>          printcap name = cups
>          add user script = /usr/sbin/useradd -m %u
>          delete user script = /usr/sbin/userdel -r %u
>          add group script = /usr/sbin/groupadd %g
>          delete group script = /usr/sbin/groupdel %g
>          add user to group script = /usr/sbin/suermod -G %g %u
>          add machine script = /usr/sbin/useradd -s /bin/false \-d /
> dev/null %u
>          logon script = scripts\logon.bat
>          logon path = \\%L\Profiles\%U
>          logon drive = H:
>          logon home = \\%L\%U
>          domain logons = Yes
>          os level = 65
>          preferred master = Yes
>          domain master = Yes
>          dns proxy = No
>          panic action = /usr/share/samba/panic-action %d
>          idmap uid = 15000-20000
>          idmap gid = 15000-20000
>          invalid users = root
>          printing = cups
>          print command =
>          lpq command = %p
>          lprm command =
>
> [homes]
>          comment = Home Directories
>          valid users = %S
>          read only = No
>          create mask = 0700
>          directory mask = 0700
>          browseable = No
>
> [netlogon]
>          comment = Network Logon Service
>          path = /var/lib/samba/netlogon
>          admin users = root, casey
>          read only = No
>          browseable = No
>          share modes = No
>
> [Profiles]
>          comment = Roaming Profile Share
>          path = /var/lib/samba/profiles
>          read only = No
>          profile acls = Yes
>          browseable = No
>
> [printers]
>          comment = All Printers
>          path = /var/spool/samba
>          printer admin = root
>          create mask = 0600
>          guest ok = Yes
>          printable = Yes
>          browseable = No
>
> [print$]
>          comment = Printer Drivers
>          path = /var/lib/samba/printers
>          write list = root, casey, mark
>
> [Home]
>          comment = Home folders
>          path = /root
>          read only = No
>          guest ok = Yes
>
> [beckyh]
>          path = /home/beckyh
>          read only = No
>          guest ok = Yes
>          browseable = No
>
> [junem]
>          path = /home/junem
>          read only = No
>          guest ok = Yes
>          browseable = No
>
> [sarahm]
>          path = /home/sarahm
>          read only = No
>          guest ok = Yes
>          browseable = No
>
> [casey]
>          path = /home/casey
>          read only = No
>          guest ok = Yes
>          browseable = No
>
> [mark]
>          path = /home/mark
>          read only = No
>          guest ok = Yes
>          browseable = No
>
> [shirley]
>          path = /home/shirleyk
>          read only = No
>          guest ok = Yes
>          browseable = No
>
> [elainel]
>          path = /home/elainel
>          read only = No
>          guest ok = Yes
>          browseable = No
>
> [peggym]
>          path = /home/peggym
>          read only = No
>          guest ok = Yes
>          browseable = No
>
> [yuchidirector]
>          path = /home/yuchidirector
>          read only = No
>          guest ok = Yes
>          browseable = No
>
> [intakedirector]
>          path = /home/intakedirector
>          read only = No
>          guest ok = Yes
>          browseable = No
>
> [rebeccam]
>          path = /home/rebeccam
>          read only = No
>          guest ok = Yes
>          browseable = No
>
> [yuchihrdept]
>          path = /home/yuchihrdept
>          read only = No
>          guest ok = Yes
>          browseable = No
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>

Mark Wright
NASA Maintenance Specialist
Mark_Wright at NASAsupport.com
www.nasasupport.com

1.800.724.9692

"Whatever It Takes"

-------------- next part --------------
An HTML attachment was scrubbed...




More information about the Ale mailing list