image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old June 25th, 2002, 07:52 AM
Registered User
 
Join Date: May 2001
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
PipoCanaja is on a distinguished road
Using a linux User Database in OSX

Hi,

We have a Linux Server in the lab with an account for everybody in here. You can imagine it's quite long to do ...

And now we have an iMac running 9.1 as a Scanner Machine. We would like to turn it in OSX. The question is :

Is there a way to use the same user database as the linux box, so the users will be able to log in on the iMac with their account, and see their home directory and so on ...

Thanx

Philippe TEISSIER
Reply With Quote
  #2  
Old June 25th, 2002, 04:56 PM
Registered User
 
Join Date: Oct 2001
Location: US
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
lethe is on a distinguished road
by user database, i assume you mean the /etc/passwd file. that is where linux stores all the account information. you can make OSX use the same file, and you could just copy the file over from the linux box. then you change lookupd to check for login information in /etc/passwd if it doesn t find it in NetInfo (which is where OSX stores its info by default)

man lookupd for details.

it might also be possible that your linux server stores its account info in NIS, which is convenient if there are lots of linux/UNIX machines and you want to have the same logins in every machine. in this case, you can also tell lookupd to check NIS for login account infos.
Reply With Quote
  #3  
Old June 25th, 2002, 05:36 PM
Registered User
 
Join Date: May 2001
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
PipoCanaja is on a distinguished road
Ok thank you for your answer.

So if I understand well, i need to copy this data from the linux box to OSX, and the configure my iMac to check this (seems that the linux box uses NIS as you said) after netinfo. I'll try to search that way. And if the user logs in with the NIS data, the user groups & user ID will be the same as on the linux box, so we'll be able to mount their home directory as well, using NFS, without any UID GID problems.

Looks nice.

I'll try to find out how to setup lookupd.

I'll let you know if I need anymore help,

Thanx
Reply With Quote
  #4  
Old June 25th, 2002, 06:03 PM
Registered User
 
Join Date: Oct 2001
Location: US
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
lethe is on a distinguished road
here is an article on integrating OSX into a NIS network.

i am looking through the lookupd man page. i think you do something like this: either make a NetInfo directory /locations/lookupd/users, and put a key in it LookupOrder, with the names of the lookup agents. important to include NISAgent. Or, you put a file at /etc/lookupd/users, and put those data in that file.

the full details are in the man page.

cheers
Reply With Quote
  #5  
Old June 25th, 2002, 06:07 PM
Registered User
 
Join Date: May 2001
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
PipoCanaja is on a distinguished road
Ok.

I'll read all that tomorrow, as it's 0:11 AM in France
Thanx for your help and I'll let you know when we do it.

thanx
Reply With Quote
  #6  
Old June 27th, 2002, 07:52 AM
Registered User
 
Join Date: May 2001
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
PipoCanaja is on a distinguished road
Hi,

Seems that the NIS is running md5 encryption, and according to the HowTo, only DES encryption is working with OSX's lookupd ...

Does somebody have a workaround for that ? (like compiling another version of lookupd, taken from a BSD or Linux distrib ?

Thanx
Reply With Quote
Reply

Bookmarks

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux user seriously considering OSX.... mattman Unix & X11 18 August 22nd, 2003 08:55 AM
Thank God the Witch Is Dead Veljo Mac OS X System & Mac Software 2 June 27th, 2003 06:51 PM
LINUX and The Mac (Pinky and the Brain?) xphile Apple News, Rumors & Discussion 4 September 5th, 2001 12:28 AM
What makes Linux better/differnt than OS X? iPenguin Bob's Place 2 August 1st, 2001 03:51 AM


All times are GMT -5. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.