Using Networked Home Directories with Mac OS X? 74
trouser asks: "I work in a small office using Macs running Mac OS X and PCs running Linux (Debian). There's no problem sharing files between the machines using Samba, Netatalk, and FTP. However, we want to set the Macs up so that at login they mount home directories from one of the Linux boxes so that we get the same home directory no matter which machine we login on. I've read a little about doing this using NetInfo but I gather with LDAP being included with Jaguar that there might be other options now. Any clues?"
I think a more useful question would be like this (Score:1)
LDAP Infos/MacOS X (Score:5, Informative)
http://a320.g.akamai.net/7/320/51/1739d12419ef7
LDAP = Lightweight Directory Access Protocol
NFS? (Score:1)
Re:NFS? (Score:1)
Re:NFS? (Score:2, Informative)
Re:NFS? (Score:2)
/ -> mounts -> name: server:/export
dir:
opts: bg
this is from an OpenStep machine, but it ought to work on Mac OS X with minimal tweaking.
Re:NFS? (Score:2)
Server (Score:4, Informative)
While you don't need Mac OS X Server to do this, the same resources will apply. I would recommend the OS X Server mailing list [apple.com], or the X Server Admin Guide [akamai.net]. Both are good sources of info for doing just this kind of thing.
Also take a look at some non-Apple resources: AFP548.com [afp548.com] is consistently the most current, and has a question and answer bulletin board; there's also StepWise [stepwise.com], an oldie but goodie.
Hope that helps, and good luck.
amd automounter of NFS filesystems (Score:2, Informative)
-Rusty
recommendation against doing this (Score:2, Insightful)
However, from my experience, I have to recommend against network-mounting the *entire* home directory. There is a bit much in your typical OS X home directory which you don't need cluttering up your Linux desktop environment ( Library folders and such ) and probably vice versa. Having a separate shared directory, or mounting your Linux home dir as a sub-directory of you OS X home dir is probably a better option.
When we tried automount-ing home dirs we had problems with the mount not happening before OS X wanted the files and you'd find yourself with no home dir ( of course, it'd be there if you logged out and logged back in, but what a pain. )... it could be that we were just a bit clueless, but if you are also just a bit clueless...
Nah. Go ahead and do it. (Score:2, Insightful)
My whole home directory is automounted from a NetApp Filer. My user info is in NIS, which actually proved to be a bigger problem.
Mac OS X works fine with NFS mounted home directories in general. Jaguar broke loginwindow getting username/password info from NIS, but I just made a local copy in netinfo for myself. No one else logs into my machine at the console. A few applications don't like the HFS+ emulation done on single-fork filesystems. In my experience only Adobe Acrobat reader bitched, and there all I needed to do was force the Finder to create a resource fork. Then all was well.
My suggestion. Pick a brave volunteer and try it.
That's the only way to know if the applications you use will function OK.
Apple Training (Score:5, Informative)
Apple provides for-fee technical training that covers this and other very useful topics. The courses are generally a week long and involve instructor-led, hands-on training in setting up a network with Mac OS X and Mac OS X Server. IMNSH (and quite biased 'cause I helped write it!
We're working on the revisions for Jaguar right now, and expect to go live with the first course deliveries in a month or so. Go to the Apple Training website [apple.com] for more information.
--Paul
Paul Suh
Curriculum Developer
Apple Technical Training
(Help me keep my job! Buy training from Apple!
Re:Apple Training (Score:2, Funny)
I will then in turn, send a mail to your boss telling himhow good you are and not to sack you. That's us having the answer, and you not losing your job.
Win-win-mac situation here!
Re:Apple Training (Score:3, Insightful)
Someone who has passed 3 of the 5 Oracle exams and is having trouble with the last 2 will drop a few grand for a weeks training easy. Someone who hasn't passed any isn't nearly as likely to. Further without all this detail its hard to know if the training is worth anything.
Just my $.02
An important key (Score:2)
I realize that Apple is moving along at the pace of a speeding bullet right now with OS X, and especially OS X Server, but the OS X Server 10.2 manual was only made available this past couple of weeks, and the 10.2 Server courses just went up this week.
So until the week before last when I printed out the 10.2 Server manual, I had no real technical idea of what stuff like Open Directory in real technical terms. Sure, there was marketing info, but that didn't tell me much about implementation.
Additionally, there's a real lack of technical info that system administrators need. It would've been helpful for Apple to say something like "Open Directory is based on OpenLDAP vx.x" and other such details. We need to PLAN ahead, and with the overabundance of marketing info at the expense of good technical info, that's pretty hard.
That said, I just got the 10.2 Server upgrade CDs in the mail yesterday, and installed it on one of our Xserves this morning and so far it looks great. The LDAP stuff might actually be the first solid implementation of OpenLDAP I've seen.
PLEASE! More technical information & training materials for sysadmins. PLEASE! Public betas or evaluations of server OS software, or at least good in-depth technical info ahead of time.
Re:Apple Training (Score:1)
The problem with Apple's training is you can't often get to it unless you either live nearby or you fly out there.
Also, could people please caption training videos?
Thank you
-Beth
Re:Apple Training [Opinions from a UK perspective] (Score:1)
Would be nice, yes (Score:2, Informative)
macosxlabs.org [macosxlabs.org] is a good site to visit. Several universities are trying this, including the one I work at.
We've got a lab with both XP Pro and OS X computers who have their home directories mounting of a network attached storage device. Account info is pulled from a Samba server for the PCs and an NIS server for the Macs. Marcel Bresink has a nice utility for placing the NFS mount info into Netinfo's database with the right syntax. He also has thorough documentation [bresink.de] on getting Mac OS X to speak to an NIS server.
One thing I'd like to see is better documentation for OS X Server 10.2. OS X Server 10.2 is supposed to be do "NFS resharing over AFP" making it easier to have home directories stored on an NAS device. That gets NFS mounted to the OS X Server which looks at that as the home directory location for all the users. That mountpoint then gets shared to users over AFP. It has not been successful and the nice thick server admin guide isn't very clear on the resharing feature except to say that it is there.
Not NetInfo, NFS (Score:1)
Re:Not NetInfo, NFS (Score:1)
Lots of stuff depends on HFS+ (Score:4, Interesting)
Re:Lots of stuff depends on HFS+ (Score:1)
Re:Lots of stuff depends on HFS+ (Score:2)
Roaming profiles like Windows? (Score:2)
This would be nice on a laptop for example that might just be away from the home network at any time.
Re:Roaming profiles like Windows? (Score:2)
Re:Roaming profiles like Windows? (Score:1)
Under OS 9 you could use OS X Server with Macintosh Manager and check out the laptop for use away from the network. Unfortunately that looks like it is gone from OS X and Workgroup Manager under OS X Server 10.2.
I'm waiting for my copy of 10.2 server to arrive to check out my options with our school's iBooks.
Re:Roaming profiles like Windows? (Score:1)
Tim
Re:Roaming profiles like Windows? (Score:1)
Or Clients who are within network reach of the server. This would be useless for a Powerbook or iBook user.
Slightly OT for those having automount issues (Score:4, Interesting)
You may have noticed that automount refuses to mount partitions on your
LABEL=(partition name as mounted under
Instead of spaces between the items use tabs -- I haven't verified if spaces work yet.
I'm not a mac user myself but my roommate struggled with this issue for quite a few hours before hitting on the solution. I figured I'd pass it along in case anyone else was struggling with it.
Excellent resource (Score:2)
Of note, using NIS at the LoginWindow has been broken in 10.2 (it worked in 10.1), but a fix is in the works and expected soon.
Also, he notes that Apple is bring BSD's AMD to OS X (finally!) so that NFS mounting won't be quite as quaint as it has been till now.
(I've been using NFS/NIS on iMacs in our previously Solaris-only lab - worked almost like a champ).
LDAP/NFS/Samba? Let's get simple. (Score:1)
Re:LDAP/NFS/Samba? Let's get simple. (Score:1)
You should be able to connect to the NT4 shares using the built-in smb protocol on your Powerbook.
Access the NT4 share using the finder menu item "connect to server" and then put in the share path in the following format:
smb://domain;server/share
I use this everyday to connect to a share on my main workstation, w2k pro on an AD domain.
Re:LDAP/NFS/Samba? Let's get simple. (Score:2, Informative)
Re:LDAP/NFS/Samba? Let's get simple. (Score:1)
Re:LDAP/NFS/Samba? Let's get simple. (Score:2)
Re:LDAP/NFS/Samba? Let's get simple. (Score:1)
Tunneling Samba over SSH from OS X (Score:2, Interesting)
smb://username@localhost:tunnelport/share?WORKG
smb://username@localhost/share?WORKGROUP=wkgrp;
and many variants, but not seems to work. Any suggestions? Has anyone figured out how to override the SMB port?
Re:Tunneling Samba over SSH from OS X (Score:1)
Re:Tunneling Samba over SSH from OS X (Score:1)
That app probably won't do what I need, anyway. Setting up ssh to redirect a port through the ssh connection (i.e. an SSH tunnel) is a simple matter of using the -L option. The hard part here is that there is no obvious way to instruct OS X to use a non-standard port for samba. Even the commandline version (mount_smbfs) provides no port override (at least, none documented in the man page).
The nearest thing to a solution I can find is to run ssh as root so I can tunnel local port 139 to remote port 139. This solution works as long as I never plan on running an smb server and as long as I can and am willing to setup the tunnel as root.
Re:Tunneling Samba over SSH from OS X (Score:1)
From your friend in CRB251C.
Re:Tunneling Samba over SSH from OS X (Score:2)
Re:Tunneling Samba over SSH from OS X (Score:1)
smbmount
-o port=tunnelport,username=myusername, \
workgroup=mywrkgrp
(lines wrapped for clarity)
In OS X, you have two options: connect to the samba share through the Finder's cmd-k dialog, or use mount_smbfs. In neither case have I found a way to override the default SMB port (139) to use my tunneled port (9139 in my case).
See this comment [slashdot.org] for more info.
Re:Tunneling Samba over SSH from OS X (Score:2)
Re:Tunneling Samba over SSH from OS X (Score:1)
No. It's the reverse. What I do is map 9139 on the local machine to 139 on the remote machine. The difficulty arises in just how to tell OS X's samba to use port 9139 (my tunneled port) instead of port 139 (the standard port).
Re:Tunneling Samba over SSH from OS X (Score:2)
If it doesn't you could always cheat and just port map to yourself, ssh forwarding your own 139 to 9139.
Re:Tunneling Samba over SSH from OS X (Score:1)
NFS (Score:1)
It is possible and has been done (Score:2, Informative)
It's always nice to talk to people who have done it before..
OpenLDAP and 10.2 (Score:3, Informative)
Re:OpenLDAP and 10.2 (Score:1)
Our main problem is that we cannot get that SSL part to work. I have been a regular nuisance on the mailingslists, trying to find someone with an answer. SSL seems to be something nobody gets to work, or something noone cares about.
Mounting NFS directories... (Score:1)
Now I did have to modify some of the start up scripts, but nothing any Unix sysadmin would be uncomfortable with.
-Scott
I love this... (Score:1)
Actually its pretty easy. (Score:1)
From NetinfoManager
Click the padlock to authenticate
Choose
from the directory menu select add directory. change the name of the new directory to homehost:/home/buba
This entry will need the following properties and values:
vfstype nfs
opts nfs
name homehost:/home/buba
dir
This cause homehost:/home/buba to be automounted at
Happy mounting
Re:Actually its pretty easy. (Score:1)
OS X automount (Score:2, Informative)
enter this in the
[kaninen:~] morth% nidump -r
{
"name" = ( "mounts" );
CHILDREN = (
{
"vfstype" = ( "nfs" );
"name" = ( "moroten:/" );
"opts" = ( "net", "resvport", "rw" );
},
{
"vfstype" = ( "nfs" );
"name" = ( "moroten:/home" );
"opts" = ( "rw", "resvport", "net" );
},
(etc)
}
You might want to add the hosts in
These mounts will appear as
and
The "net" entry in opts is very important. automount ignores any entry without it.
Re:OS X automount (Score:1)
Re:OS X automount (Score:1)
Integrating Mac OS X in an NIS environment (Score:1)
http://www.bresink.de/osx/nis.html [bresink.de]
i have used this document before to integrate a 20 seat maya lab into an existing IRIX maya envoroment. its really well documented. this is from the guy who writes Tinker Tool, among other things.
A Possible way (Score:1)
To do this:
- In the go menu, add the server to your favorites folder. There is a button at the lower left to do this
- If you want, add the username and password to keychain.
-Go to
Viola! everytime you login to the computer it will mount the home directory. I agree this not very clean but it is easy to do.
Re:A Possible way (Score:1)
How about Laptops? (Score:2)
Re:How about Laptops? (Score:1)
The solution... (Score:1)
BE WARNED: THIS INVOLVES MESSING AROUND IN NETINFO AND COULD FORCE A RE-FORMAT AND RE-INSTALL. Don't blame me if it hoses your system.
Login with that username and it should automatically mount your home directory.
(Since I use this from my Windows box too, I made a symlink from My Documents to Documents in my home directory.
I got most of this info from http://aldebaran.armory.com/~zenomt/macosx/network _homedir.html [armory.com]
Also with this solution you have to do something else to keep your passwords the same for both systems. Since I'm doing this at home I haven't looked into this that much.