Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-28-2003, 02:30 PM   #1
Registered: Jun 2002
Posts: 50

Rep: Reputation: 15
samba & autofs (automount)

Hi all,

I have finally gotten the NT authentication working and I would like to mount users' home drives via samba. We currently have auto.master pointing to the location of the home folders, but they are mounted via NFS, and we don't want this.

I have been looking around for info on this, but can't seem to find a specific answer. Is there some sort of setting that can be enabled to let this happen?

Old 07-28-2003, 04:25 PM   #2
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
Well unless you want to set up smbount entries for every user in the autofs mount maps, (how many users are there?), then you should follow the instructions in the htmldocs/smb.conf.5.html under /usr/share/doc for the samba package installed on your system which you have not specified.

But somehow I fear you may not like the method of achieving what you want to do.


nis homedir (G)

Get the home share server from a NIS map. For UNIX systems that use an
automounter, the user's home directory will often be mounted on a
workstation on demand from a remote server.
When the Samba logon server is not the actual home directory server, but
is mounting the home directories via NFS then two network hops would be
required to access the users home directory if the logon server told the
client to use itself as the SMB server for home directories (one over SMB
and one over NFS). This can be very slow.
This option allows Samba to return the home share as being on a different
server to the logon server and as long as a Samba daemon is running on
the home directory server, it will be mounted on the Samba client
directly from the directory server. When Samba is returning the home
share to the client, it will consult the NIS map specified in homedir map
and return the server listed there.
Note that for this option to work there must be a working NIS system and
the Samba server with this option must also be a logon server.
Default: nis homedir = no


Last edited by Corin; 07-28-2003 at 04:26 PM.
Old 07-28-2003, 05:12 PM   #3
Registered: Jun 2002
Posts: 50

Original Poster
Rep: Reputation: 15
We do not use NIS. Ideally, I would like to implement something that could be used for a large number of users. Currently, I am running Samba3. The current infrastructure that we have for Linux is a separate LDAP server with users stored there with corresponding home folders. The home drive info is not stored in the LDAP server...the auto.home takes care of this upon login via NFS. The problem is that NFS has some major security issues and we cannot use it. So the plan is to samba mount the drives instead of NFS. Does that sound possible?

I just got NT authentication to work on the boxes, so we would ideally like to be able to get our home folders using the same credentials that we used for login. We don't want to have to keep retyping passwords or anything like that. We want single-sign on. Am I living in a dreamland? Is this possible??
Old 06-08-2004, 12:47 AM   #4
LQ Newbie
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
I've started on a similar project here. Did you ever come across a solution?
Old 06-10-2004, 10:57 AM   #5
Registered: Jun 2002
Posts: 50

Original Poster
Rep: Reputation: 15
Not completely. We have gotten AD authentication working on all machines, and we have a separate LDAP that contains the automount information. Therefore using Kerberos and pam, the user is able to login, and through ldap they get their home folder. I havent been able to find a way to totally integrate everything yet. Any ideas?


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
automount dvd/cd & ipod not working santaliqueur Linux - General 3 10-01-2005 11:25 AM
Autofs and automount socks Linux - Software 0 07-20-2004 12:28 PM
Mounting samba windoze shares using autofs Rounan Linux - Software 2 12-05-2003 05:08 PM
Setting up automount with autofs smattbac Slackware 0 10-12-2003 08:51 AM
how to make a desktop link & automount xprometeus Linux - Newbie 6 07-19-2003 06:19 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:52 AM.

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
Open Source Consulting | Domain Registration