Results 1 to 7 of 7

Thread: Enterprise Samba ... sort of

  1. #1

    Enterprise Samba ... sort of

    Here at work I have RedHat 9 with default samba packages installed.

    We have a PDC running Win NT4. What I am doing is using Samba, PAM, and Winbind to synchronize the the PDC users to the Linux box. Now this works (and I verified with getent) and I see the local users PLUS the users on the PDC all supposedly able to be authenticated on the Linux box.

    I want all the users on the PDC to have home folders on the Linux box to store their files so "My Documents" in Win XP/98 (the clients) can point to the Samba server (ie: \\SMBSERV\trieder) and store their documents/preferences there. Supposedly you can autocreate these folders when the user logs in (I think, maybe I misunderstand?) with `Template homedir = /home/%D/%U` but it doesn't seem to work.

    So inreview:

    1. User logs in
    2. If they haven't before create them a home dir (/home/%D/%U aka \\SMBSERV\%U)
    3. Set their "My Documents" to point at \\SMBSERV\%U

    Would I use an NT Login script on Samba or what? I'm lost.

    (Note - whole purpose of this is to keep my boss from buying win 2k3 server when we can use OpenExchange and Samba)

  2. #2
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,758

    Re:Enterprise Samba ... sort of

    You can feel free to come to Milwaukee and bitch slap me for being wrong, but I want to say you would need to run an adduser for each user that is in the pdc. I heard that newer versions of SAMBA are to incorporate this, but have no idea about newer revisions than what Red Hat is currently offering. I can check it out for ya. Perhaps SambaNG is what you need...

  3. #3
    Mentor Stuart's Avatar
    Join Date
    May 2002
    Location
    nb.ca
    Posts
    1,087

    Re:Enterprise Samba ... sort of

    I am going to be doing something similar, so make sure and post what you end up doing. What is SambaNG? I can't find any information on it.

  4. #4

    Re:Enterprise Samba ... sort of

    [quote author=Schotty link=board=4;threadid=7650;start=0#msg69908 date=1062261084]
    You can feel free to come to Milwaukee and bitch slap me for being wrong, but I want to say you would need to run an adduser for each user that is in the pdc. I heard that newer versions of SAMBA are to incorporate this, but have no idea about newer revisions than what Red Hat is currently offering. I can check it out for ya. Perhaps SambaNG is what you need...
    [/quote]

    Uh, I'll pass on slapping you, but you're wrong. You don't need to run add user for each user that is in the PDC because I have run `getent passwd` and I got a list of all the users on the linux box PLUS a list of users on the PDC. I setup SSH partially (although PAM was being stupid - or maybe I just suck at stacking my modules ;D) to authenticate through the PDC and when I logged in with a user on the PDC it took the password but said "Access Denied" so it looks like it was authenticating but denying access based on the wrong PAM stacking order or other module.... And what is this SamnaNG you speak of?

    Stuart - I'll let you know what happens.

    Thanks for the reply guys.

  5. #5
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,758

    Re:Enterprise Samba ... sort of

    http://www.samba-tng.org/

    Addendum ::

    http://us2.samba.org/samba/docs/

    Actually, you would need to write a few scripts. Neither Samba or SambaTNG will add /home directories. All of their info comes from /etc/smbpasswd. All you are doing sofar is using Samba to talk to the server and authenticate there. I dont see an issue with making wrappers for the commands and if there are errors (like specific err #'s) do something like an adduser or a mkdir (for the home dir).

  6. #6
    Mentor Stuart's Avatar
    Join Date
    May 2002
    Location
    nb.ca
    Posts
    1,087

    Re:Enterprise Samba ... sort of

    It looks like I am going to be setting Mandrake to authenticate users from an LDAP server, and setup a login script (how do I make a script that will mount a windows share when a user logs in from (gdm or kdm?)?

  7. #7
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,758

    Re:Enterprise Samba ... sort of

    Well just make a shell script and put it in the PC's startup script, or use LinNeighborhood. That has the ability to automate it.

Similar Threads

  1. Problems with Samba
    By LeeU in forum Ubuntu / Debian
    Replies: 3
    Last Post: 10-20-2007, 03:40 AM
  2. Microsoft won't dance with Samba
    By genesis in forum Windows - General Topics
    Replies: 0
    Last Post: 01-30-2005, 08:33 PM
  3. samba over internet
    By wnowak1 in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 01-04-2005, 06:58 PM
  4. Samba Problem
    By turishi007 in forum Linux - General Topics
    Replies: 2
    Last Post: 10-17-2004, 03:32 AM
  5. Samba
    By Black666 in forum Linux - General Topics
    Replies: 6
    Last Post: 07-24-2002, 03:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •