Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Using Networked Home Directories with Mac OS X?

Cliff posted more than 12 years ago | from the there's-no-place-like-$HOME dept.

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?"

Sorry! There are no comments related to the filter you selected.

LAPD? (-1, Offtopic)

Cliff (4114) | more than 12 years ago | (#4150477)

Please pardon this Mac-illiterate, but would someone please tell me (and any other confused souls) what "LAPD" means (asside from the obvious Los Angeles references, please).

Re:LAPD? (-1, Offtopic)

Cliff (4114) | more than 12 years ago | (#4150518)

Editor, heal thyself!

I'm guessing that the submittor made a typo and that it's "LDAP" not "LAPD". The text in the story has been changed, so this comment is unnecessary.

Nothing to see here, move along!

Re:LAPD? (-1, Redundant)

Anonymous Coward | more than 12 years ago | (#4152027)

LDAP = Lightweight Directory Access Protocol

note: It is a PROTOCOL. A bazillion products IMPLEMENT the PROTOCOL. (I am tired of people saying "store it in LDAP" or such). You actually store it in a DIRECTORY and access that directory using LDAP...

LDAP is a standardized set of functionality for directory servers, so that any LDAP client should be able to access any LDAP server...

More info?

Search google...

whatever you do.... (-1, Offtopic)

Anonymous Coward | more than 12 years ago | (#4151374)

do not attempt to execute Linux binary files on OSX or vice/versa.

the results ain't pretty [] .

I think a more useful question would be like this (1)

BibelBiber (557179) | more than 12 years ago | (#4151413)

Is there any good documentation on how to use all the network services Unix has? Like using nfs with other Unix/Linux boxes. Sharing stuff not only with Apple Talk. Using printers over the network. All the stuff you want to do when you have more than one computer at home but with different systems. It really is annoying when you try and try to figure out how something works. Not everybody is a nerd.

LDAP Infos/MacOS X (5, Informative)

Anonymous Coward | more than 12 years ago | (#4151454)

The MacOS X Server Guide from Apple answers some of you questions... /w

LDAP = Lightweight Directory Access Protocol

Re:LDAP Infos/MacOS X (0)

Anonymous Coward | more than 12 years ago | (#4157892)

Er, nice but making it a fucking hyperlink, dickweed.

NFS? (1)

Peartree (199737) | more than 12 years ago | (#4151459)

you could use NFS...

Re:NFS? (1)

BibelBiber (557179) | more than 12 years ago | (#4151491)

When I tried do connect to my Suse 8 box it almost hang... I wonder how Apple makes it without any documentation..... I really would love to know all the network secrets.

Re:NFS? (2, Informative)

ivan256 (17499) | more than 12 years ago | (#4151593)

I already have "mount magrathea:/huge/mp3 ~/Desktop/mp3" run when I log in to my 10.2 box. The server is Linux 2.4.17 based. What does Suse do to their kernel that is causing your problem? From what I can see the NFS client implementation in 10.2 works perfectly well.

Re:NFS? (2)

MaxVlast (103795) | more than 12 years ago | (#4155760)

The trick is to put the mount in NetInfo. Export the directory on the linux box and add the following to NetInfo:

/ -> mounts -> name: server:/export
dir: /path/to/mt/point
opts: bg

this is from an OpenStep machine, but it ought to work on Mac OS X with minimal tweaking.

Re:NFS? (2)

smack.addict (116174) | more than 12 years ago | (#4160018)

NFS sucks ass, especially if your clients are laptops. The minute the network goes away, your system starts hanging.

Server (4, Informative)

Johnny Mnemonic (176043) | more than 12 years ago | (#4151601)

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 [] , or the X Server Admin Guide [] . Both are good sources of info for doing just this kind of thing.

Also take a look at some non-Apple resources: [] is consistently the most current, and has a question and answer bulletin board; there's also StepWise [] , an oldie but goodie.

Hope that helps, and good luck.

amd automounter of NFS filesystems (2, Informative)

Ruzty (46204) | more than 12 years ago | (#4151668)

I believe you are looking for 'amd'. It's an automounter for NFS filesystems. It is included on my 10.2 install, not sure about 10.1.5. I would think if you set up /Users/* for automounting you'ls be all set.


It's all there... (0)

Anonymous Coward | more than 12 years ago | (#4151683)

I found Phil's Sysdox to Thin OS X Clients [] to be quite useful.

recommendation against doing this (2, Insightful)

Anonymous Coward | more than 12 years ago | (#4151750)

If you do this, automount and use NFS. OS X Server sharing AppleTalk to the Macs and NFS to Linux would be more ideal.

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. (2, Insightful)

Christov (88901) | more than 12 years ago | (#4152837)

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.

One thing I found that works (0)

Anonymous Coward | more than 12 years ago | (#4151759)

Is Active Directory. All the users are entered into the AD, then Samba grabs authentication information from Winbind, which grabs the user and password info from the AD box. With a bit of Pam configuration, it wasn't much work at all to authenticate any service. Coupled with a small bat script on the Windows boxes, and a bash script on the linux machines, we used SMB file transfers to sync a web directory, ftp directory, and all common file locations.

Plus, you get a nice to administer LDAP server running on the Win2k, which can sync with an OpenLDAP server on Linux.

The cost of Win2k server, even with a of client licenses, really has come down quite a bit.

Re:One thing I found that works (0)

Anonymous Coward | more than 12 years ago | (#4154212)

bat script?

Since when did batch files become interactive scripts?

You sir are on crack. Batch files vs scripts are what sets unix and dos apart. One being useless and non-useless, respectively.

Apple Training (5, Informative)

plsuh (129598) | more than 12 years ago | (#4151878)

Warning: Shameless Plug! :-)

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! :-) O, the training is good stuff, meaty and chock full of technical information. Almost everyone who goes through these courses says something like, "Wow, that's a lot of good, useful information."

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 [] for more information.


Paul Suh
Curriculum Developer
Apple Technical Training
(Help me keep my job! Buy training from Apple! :-)

Re:Apple Training (2, Funny)

Peer (137534) | more than 12 years ago | (#4152044)

Well show us how good the training is by answering the question here.

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 (3, Insightful)

jbolden (176878) | more than 12 years ago | (#4153558)

I've looked at the training. IMHO I think you guys should do what many of the vendors do and offer a range for the technical certification. You already have the tests in place. Have details on what's covered on the test. Sell textbooks at a reasonable costs. And then offer the training to people who would rather spend the money then work at home.

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 (2)

greygent (523713) | more than 12 years ago | (#4158315)

I think a really important key, is that Apple needs to be more proactive with training material and documentation.

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 (1)

lemkebeth (568887) | more than 12 years ago | (#4158710)

How about long distance training?

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


Re:Apple Training [Opinions from a UK perspective] (1)

allansan (605739) | more than 12 years ago | (#4185125)

I gotta say my part here, I am in the UK and really bored of Apple treating us like 2nd class citizens here. The SysAdmin course for Mac OS X Server is still not even released here for 10.1.x!!! How can this be acceptable??? The company Apple UK are using for their training were unable to tell me when this course was starting, as they had still not received the training materials for the 10.1.x course, and this is at a time when this course is now not even worth the paper it is printed on. I went to the Apple Server Essentials and Mac OS X Admin courses and they sucked!!! I knew more when I walked through the door on day 1 than the trainer, I learned nothing, and wasted loads of my time and my companies money. In fact I ended having to show the trainer how to create the parent and child domains and the nfs or afp exports, and setting the automounts for network home dirs for OS X clients as I had done this work already. I was hoping that the course might shed some light on some of the other areas of the server OS, but no... And so now I am faced with having to teach myself again now that Apple have decided to move to LDAP, which while it is a technology I have wanted to get to grips with, I am now forced into a situation where I HAVE to learn it as my boss wants us to be using this when we rollout 10.2 server, all this without any real support from Apple. Now I think Apple have the best products in the marketplace, and I work for a company that is using 99% Apple technology in both the backroom as well as on the desktops. Also we are in an area that Apple are directly targeting at the moment (especially my company as we are rather prominent in our particular marketplace and known for using Apple products), but there is still SO much for them to do... and they are failing, and all because we are not in the USA!!! I am not a professional Apple beater by any means, in fact I have spent most of my professional life promoting Apple and encouraging people to use their products, but when the question of training comes up my blood starts to boil. Apple have released a whole new OS in X and moved the goal posts on Mac IT depts, we are left having to learn a whole new OS, UNIX, and a whole raft of new issues, I am glad to have the stability that X brings, but the support from Apple has been pathetic to non existent. All the emphasis has been on developers, which I can see is needed but why nothing for sysadmin's and why nothing or so little outside the USA? I love the features that X and now Jag brings, it is so cool that I happily spend my time digging around finding ways to get all these new features to work, but some useful pointers from Apple is not asking too much. I am the lead sysadmin for a company that spends nearly a million pounds sterling per annum with Apple in hardware and software, and even the professional support from Apple is awful. They do seem to be trying just now, but even the people selling the support don't seem to be aware that what they are offering isn't in place yet (the sales team that came to see us told me that the OS X SysAdmin course was in place and that the 10.2 docs were being worked on and should be in place for the end of September but as you can see I called their training centre and was told that there was no course as yet even for 10.1.x), or if it is you have to be in the North American continent. It is just not good enough! Now if you want to know how to get this working then I have it working on my test system, I need to work some more on it to be sure that it is working properly, as it has been a little buggy and I want to be sure that I am not telling you something that screws your systems as it has a couple of times here!!! :) I'll post back on Wednesday with some useful info...sorry for the rant but like I said it does make my blood boil!

Would be nice, yes (2, Informative)

El Gato Loco (560338) | more than 12 years ago | (#4151881) [] 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 [] 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 (1)

FozzTexx (186554) | more than 12 years ago | (#4151885)

You're confusing terms. You want NFS. NFS is what you use to export the files from the server and have them automatically mounted on the client when the computer boots up.

Re:Not NetInfo, NFS (1)

trouser (149900) | more than 12 years ago | (#4153281)

No, I definitely meant Netinfo. Netinfo is a directory service which contains a lot of good stuff including all the user accounts, passwords and paths to home directories. Apparently it can also be used to setup automounts of remote file systems using nfs and hopefully also afp, smb, etc. By tweaking Netinfo is should be possible to mount a Users/* share on a Linux box and then change my local home dir from /Users/my_home_dir to /Volumes/linux_box/Users/my_home_dir. I'd prefer not to use NFS because I assume I'd lose my resource forks, but I've got my Linux box running Netatalk with AppleTalk switched off, AFP over TCP/IP, and I'm wondering if maybe that will solve the problem. Probably not because the resource forks are part of the underlying file system, not the form of network file share. Maybe I need to share the home directories from one of the Macs instead of a Linux box.

Lots of stuff depends on HFS+ (4, Interesting)

bill_mcgonigle (4333) | more than 12 years ago | (#4151909)

On 10.1, I hacked NetInfo to keep my home directory on a linux NFS share. Lots of stuff broke. Lots of stuff, even good stuff like Mozilla, doesn't work because the filesystem isn't transparent to Carbon on non-HFS+ volumes. Even local UFS doesn't work.

Re:Lots of stuff depends on HFS+ (1)

goodchef (213729) | more than 12 years ago | (#4158690)

So maybe a different (and possibly better) way of doing this would be to get the Linux machines to mount HFS+ home directories off the OSX box, instead of the other way around. I'm not sure how hard this would be, or if it's already been done. In any case, increased connectivity between OSX and Linux (and between other *nixes and HFS+) would be a Good Thing.

Re:Lots of stuff depends on HFS+ (2)

bill_mcgonigle (4333) | more than 12 years ago | (#4160077)

My kingdom for a journaling filesystem on OSX!

Directory Service & OS X server (0)

Anonymous Coward | more than 12 years ago | (#4152088)


We run a small office with 8 macs and 1 server. Our computer are all networked with Directory Service, even our laptops! It works great! Except for M$ stuff. There's a 15% chance that when you quit out of Word, excel, powerpoint, entourage, or explorer that it will cause a kernal panic and crash the local computer. We run a full suite of software from open source stuff to adobe photoshop, illustrator, etc. Only M$ stuff really crashes. Besides that, OS X Server is the way to go! It took only two hours to completely format the hard drives (650GB), install the OS, setup all the users, setup mail services, FTP, Web, DNS, DHCP, Samba, and NFS. System runs through a gigabit switch, thus no noticable difference in speed between network & local accounts. If it wasn't for the power-outage a month ago, the server would not have been rebooted since we put it into service 9 months ago. I know, the $1000 price tag is pretty steep for stuff I can get for fee through a Linux Box. But hell, I'm clueless when it comes to setting up all that we need, and that was easy, no brainer, it just does it for you. Well, if you know exactly what you're doing great, otherwise save yourself the headache and get OS X server, it's worth every penny!

Roaming profiles like Windows? (2)

Drakino (10965) | more than 12 years ago | (#4152091)

Just curious, is there a way to have Roaming profiles similar to Windows, where it logs in using the server profile, but if it's offline, it uses a local cached copy. Once it's back on the same network as the server, it updates the cache.

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? (2)

Bravo_Two_Zero (516479) | more than 12 years ago | (#4152270)

There's a decent article on doing just that with CVS in this month's Linux Journal ( Of course, it assumes a working CVS install and some knowledge of CVS. Still, it's a less automatic but more flexible approach than Windows roaming profiles.

Re:Roaming profiles like Windows? (1)

gozar (39392) | more than 12 years ago | (#4160920)

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? (1)

captpiett1 (7076) | more than 12 years ago | (#4166681)

Apple really needs a product that allows you to sync your iBook/Powerbook back to your iMac/G4 Tower at the end of a day. I hate having 2 home Directories... and losing contacts.. or not having my full iPhoto library with me. Keeping your home dir on a MacOS X Server doesn't do much in this case either.


Re:Roaming profiles like Windows? (0)

Anonymous Coward | more than 12 years ago | (#4161000)

Jaguar server does this.

Re:Roaming profiles like Windows? (1)

captpiett1 (7076) | more than 12 years ago | (#4166692)

Only for OS 9 Clients.

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 (4, Interesting)

alyandon (163926) | more than 12 years ago | (#4152329)

For those that were using the following format for fstab: /dev/disk### /Applications hfs rw 1 2

You may have noticed that automount refuses to mount partitions on your /Application and /Users mount points under Jaguar like it did for before. The correct format for your fstab entries should be:

LABEL=(partition name as mounted under /Volumes) /Users|/Applications|/Whatever hfs rw 1 2

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 (2)

softsign (120322) | more than 12 years ago | (#4152381)

This guy [] (aka the creator of TinkerTool) has some excellent tools and tutorials on using NFS and NIS.

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. (1)

hvyrdr (598095) | more than 12 years ago | (#4152603)

I just upgraded my new PB G4 to OS X v10.2 and want to file and maybe print share with my little NT4 network at home. I'm not doing Linux, LDAP, Samba or NFS, just some ethernet cables, a router, hub and DSL modem. I've tried (and read) everything I can think of but the PB won't see anything else and the NT4 machines won't see the PB. So, what's the deal with "Jaguar -- easy file sharing?" And where's the v10.2 documentation? Does Apple rely exclusively on third party publications and good Mac people for how-tos? I do know how to read, but one of the reasons I bought a Mac (which is fabulous, so far) is so I don't have to spend the rest of my days futzing and tweaking. For me it's a means, not an end. I need to get something done.

Re:LDAP/NFS/Samba? Let's get simple. (1)

scarpa (105251) | more than 12 years ago | (#4153101)

Disclaimer: I have 10.1.4

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:


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. (2, Informative)

trouser (149900) | more than 12 years ago | (#4153336)

Actually Samba is installed with Jaguar so you are using it. If you look in the Sharing panel in System Prefs on your Mac you'll find a new option called 'Windows File Sharing'. If you enable it Samba will start and your NT system should be able to see your Mac. Of course you also need to have file sharing turned on for the NT system, and you'll need to see a network workgroup name and select at least one directory on the NT system to be shared on the network. I don't recall how it's done but the Network settings in the Control Panel would be a good place to start. Also, you should set the Mac SMB workgroup name to match the workgroup name you use on the NT machine. This is set using the Directory Access utility in /Applications/Utilites. Select the SMB service on the Services tab and click 'Configure'. You'll be prompted for a workgroup name and a WINS server address. For the setup you describe you can leave the WINS address blank. Now if you select 'Connect to Server' from the Finder's 'Go' menu you should see the NT machine listed. Since upgrading to Jaguar my Mac lists all the Linux SMB and AFP shares and all the Macs on the network. I haven't tried it with a Windows machine yet but I'd reckon it would work as described.

Re:LDAP/NFS/Samba? Let's get simple. (1)

MacFeline (604747) | more than 12 years ago | (#4160605)

OK, this is really simple: Load the Mac file and printer sharing services that come with NT server. The print server isn't the greatest, not even sure if works with OSX, but the file serving is reliable, if slow. If speed of file sharing is a concern there are products that address that (ExtremeZ ip, Windows 2000...etc). MF

Re:LDAP/NFS/Samba? Let's get simple. (2)

larkost (79011) | more than 12 years ago | (#4183490)

My advice would be to stick with Apple' compatibility software, and forget Microsoft's. MacOS X will deal with SMB better than NT will deal with AppleTalk (not over IP).

Re:LDAP/NFS/Samba? Let's get simple. (1)

papero (146622) | more than 12 years ago | (#4161658)

Under 10.1 I used sharity for sharing files betweek my iBook and office Win machines. Now with 10.2 I continue to use Sharity for file sharing and I can print to a Win Samba printer with CUPS (just ready in Jaguar). See web site "Mac OS X hints" for almost all you need to know. All the best

Tunneling Samba over SSH from OS X (2, Interesting)

Noonian (226) | more than 12 years ago | (#4152814)

Since I maintain my own machine, I get put on the semi-trusted network, which means that I can't directly mount my smb share. On my Linux box, I work around this by tunneling SMB through an ssh tunnel, but on my OS X machine, I can't find a way to override the SMB port to the tunneled port (sure, I could use smbclient, but that's just not lickable). I've tried a few variations on the URL from the Finder's cmd-k dialog:

smb://username@localhost:tunnelport/share?WORKGR OU P=wkgp

smb://username@localhost/share?WORKGROUP=wkgrp;P OR T=tunnelport

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 (1)

digrhino (522369) | more than 12 years ago | (#4153367)

If you look on the apple downloads section in the support site, they have a gui app that will redirect any port thru SSH. Just go to the Downloads section for OS X and do a search for SSH.

Re:Tunneling Samba over SSH from OS X (1)

Noonian (226) | more than 12 years ago | (#4153604)

Do you happen to recall the name of that app? Of the 8 hits found in that search, I don't see anything that seems to do what you describe.

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 (2)

jbolden (176878) | more than 12 years ago | (#4153646)

Why not do exactly what you do on linux and tunnel? If you already know how to do it and know that it works...

Re:Tunneling Samba over SSH from OS X (1)

Noonian (226) | more than 12 years ago | (#4153767)

That's precisely what I'm trying to do. In Linux I use the following command:

smbmount //localhost/share mountpoint \
-o port=tunnelport,username=myusername, \

(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 [] for more info.

Re:Tunneling Samba over SSH from OS X (2)

jbolden (176878) | more than 12 years ago | (#4153931)

What you do is map 139 on your local machine to 9139 on the remote machine. Look at the -L option on the ssh man page.

Re:Tunneling Samba over SSH from OS X (1)

Noonian (226) | more than 12 years ago | (#4155569)

What you do is map 139 on your local machine to 9139 on the remote machine.

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 (2)

jbolden (176878) | more than 12 years ago | (#4157143)

On a linux box you would change this in /etc/services. I'd assume the same thing would work by changing ports in the netinfo database. I'd try to just open netinfo mananger go to services and change the port for netbios-ssn. You may have to reboot. No way to test the effect on this end but assuming that netinfo is actually doing the same thing as /etc/services (which is apple's claim) this should work.

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 (1)

1155 (538047) | more than 12 years ago | (#4173194)

Maybe piping smb to ssh, or visa versa, would work in this case. I wouldn't know where to begin, but piping the output of something to something else shouldn't be too hard to work with.

NFS (1)

nocomment (239368) | more than 12 years ago | (#4152884)

just use NFS and set the mount directory to /home/~user/

It is possible and has been done (2, Informative)

rtm1 (560452) | more than 12 years ago | (#4153214)

There is a forum thread here [] that covers much of the material your are looking for, and the people involved would probably be happy to help you out.

It's always nice to talk to people who have done it before..

OpenLDAP and 10.2 (3, Informative)

fordgj (522469) | more than 12 years ago | (#4153263)

Yes, OS X 10.2 should be able to automount an NFS volume from a linux box, deriving the required information from the an LDAP database. Yet, this isn't that easy. Over the last two weeks, my work has been attempting to do a similart task with a combination of Jaguar server and Linux. Basically, the issue of where your home directory is doesn't matter a whole lot. The problem is working with LDAP. Our issue has lied in getting the LDAP database setup wioth the proper base such that the fields exist. The LDAP server MUST accomidate all the fields. This includes regular Posix account information, plus special Apple fields such as MCX flags,etc. If you examine the apple.schema file that comes with 10.2 (/etc/openldap/schema/apple.schema), you will see all of these. The 10.2 documentation is good and bad, it says some stuff about this and leaves out a lot. Another problem is the generation of all of this information. I believe that it isn't all regular ASCII (mainly MCX flags). If you already have a netinfo database under Jaguard server, you can migrate the output from slapcat. The problem is, this doesn't work under the client verion, though this may be a matter of configuring the ldap.conf file properly. As another clue, check out the Unix RFC preset in the LDAPv3 section of the 10.2 Directory Access utility. This has additional information regarding mappings. In essence, we have yet to be able to maintain an OpenLDAP directory under linux that could authenticate OS X. However turning on slapd under 10.2 did work with LDAP authentication. It's all a matter of having a database with the proper fields and information. I'll post more as I remember more of the details, my notes are all at work.

Re:OpenLDAP and 10.2 (1)

Willfon (525161) | more than 12 years ago | (#4168936)

In essence, we have yet to be able to maintain an OpenLDAP directory under linux that could authenticate OS X.

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... (1)

stoney27 (36372) | more than 12 years ago | (#4153391)

Automounter is your friend. I have done this at work we Netapps serving up our home directories and I have pushed out automount maps to all of the Macs running 10. Cfengine is good to do this with. I have also created a few perl scripts to sinc our Unix password file with our NetInfo server. And so we have just one password for our Mac 10 machines and our Unix machines.

Now I did have to modify some of the start up scripts, but nothing any Unix sysadmin would be uncomfortable with.


Homo Directories (-1, Troll)

Anonymous Coward | more than 12 years ago | (#4153988)

Dear Apple,

I am a homosexual. I bought an Apple computer because of its well earned reputation for being "the" gay computer. Since I have become an Apple owner, I have been exposed to a whole new world of gay friends. It is really a pleasure to meet and compute with other homos such as myself. I plan on using my new Apple computer as a way to entice and recruit young schoolboys into the homosexual lifestyle; it would be so helpful if you could produce more software which would appeal to young boys. Thanks in advance.

with much gayness,

Father Randy "Pudge" O'Day, S.J.

I love this... (1)

inimcus (554859) | more than 12 years ago | (#4154442)

Two years ago, did any of us think we would be debating about which type of many networking services we should be using on a Mac? Not only that, but discussing it in the Apple section of Slashdot? What a great time to own a Macintosh. Seriously.

Actually its pretty easy. (1)

piobair (586119) | more than 12 years ago | (#4154650)

assuming your home directory is on a machine called homehost and your user directory is /home/buba..

From NetinfoManager

Click the padlock to authenticate

Choose /mounts
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 /Users/buba

This cause homehost:/home/buba to be automounted at /Users/buba. Obviously, this works for other mountpoints and nfs shares in a similar fashion.

Happy mounting

Re:Actually its pretty easy. (1)

Strog (129969) | more than 12 years ago | (#4156743)

Any tips for smb settings? Any links to docs would be gladly accepted. I'm trying to connect to a shared storage server automatically. No home directory.

OS X automount (2, Informative)

Morth (322218) | more than 12 years ago | (#4155151)

If you simply want to automount NFS/smb/afp
enter this in the /mounts/ directory in NetInfo:

[kaninen:~] morth% nidump -r /mounts .
"name" = ( "mounts" );
"vfstype" = ( "nfs" );
"name" = ( "moroten:/" );
"opts" = ( "net", "resvport", "rw" );
"vfstype" = ( "nfs" );
"name" = ( "moroten:/home" );
"opts" = ( "rw", "resvport", "net" );

You might want to add the hosts in /machines/

These mounts will appear as /Network/Servers/moroten/
and /Network/Servers/moroten/home
The "net" entry in opts is very important. automount ignores any entry without it.

Re:OS X automount (1)

piobair (586119) | more than 12 years ago | (#4156356)

I don't have "net" defined in opts at all and automount works just fine. Strange...

Re:OS X automount (1)

Morth (322218) | more than 12 years ago | (#4157070)

Oh, well, it was needed back in 10.0... Perhaps they changed it sometime along the road.

Integrating Mac OS X in an NIS environment (1)

meancode (603329) | more than 12 years ago | (#4158254) []

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 (1)

Enrique1218 (603187) | more than 12 years ago | (#4159351)

This may not be as sophisicated as others but it works.
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 /System Perferences/Login, add the file /Users//Library/Favorite/ so that OSX opens it at login.

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 (1)

Enrique1218 (603187) | more than 12 years ago | (#4159384)

Correction the file is /Users/USERNAME/Library/Favorites/SERVER

How about Laptops? (2)

smack.addict (116174) | more than 12 years ago | (#4160002)

I would love to see a solution that lets you run a laptop hoem dir off a network share even when not connected to the network like Windows 2000 allows. Basically, Win2k lets you mark network directories like your home directory for offline access. It synchronizes and thus whether or not you are on the network is transparent to you.

Re:How about Laptops? (1)

dhobbit (152517) | more than 12 years ago | (#4174773)

AFS and CODA have been doing this on unix for many, many years. And there was an AFS port for OS X 10.1.5 I'm not sure of the status of the port for OS 10.2.

The solution... (1)

gozar (39392) | more than 12 years ago | (#4174807)


  1. Anyway, you need to be running netatalk on your debian box (which it looks like is already happening). In AppleVolumes.default I set up a share like so: /home "Users" (Why did I call it Users? Because that's what OS X does...)
  2. Start up Netinfo Manager.
  3. Authenticate (click the padlock at the bottom of the window.
  4. Click on mounts, then select Directory -> New Subdirectory.
  5. Click on new_directory, then change the value in the of it to: servername:/Users (I used the IP address
  6. Select Directory->New Property and three times, adding the following names and values:
    • vfstype - url
    • dir - /Network/Servers
    • opts - net
  7. Click on opts, and select Directory -> Insert Value. Add "url==afp://"
  8. Finally, click on your username under users, change home to /Network/Servers/ and add a new property home_loc with a value of: afp://

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 _homedir.html []

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.

Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?