Find the answer to your Linux question:
Results 1 to 4 of 4
I have just been tasked to retire our primary NIS server and completely go away from NIS altogether. How can I convert the old NIS user accounts to local accounts? ...
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    2

    NIS accounts

    I have just been tasked to retire our primary NIS server and completely go away from NIS altogether. How can I convert the old NIS user accounts to local accounts? Is this even possible? Our NIS server currently supports about 9 client servers and about 100 users on each of them. I would like to convert the NIS users to local users.
    Thanks in advance.

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,392
    Move to local users? Surely this would bring with it enormous admin headaches. If it's what you want to do, then you could write a small bash script to tear apart the NIS files (they're only text based) and insert them into the user tables (/etc/shadow, /etc/passwd and /etc/group).

    You may find it easier to move to a better centralised store, like an LDAP database. You can implement those quite easily with tools like Fedora Directory Server.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    2
    Thanks for the info! We are getting ready to implement LDAP. We didn't know if or how it would work with NIS accounts. That's why we wanted to retire the NIS server. Our thoughts were, if we were to change them to local accounts then LDAP could easily be applied then.

  4. #4
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,392
    It depends how you do the migrate, but I'd have thought it would have been easier to to pipe the output of 'ypcat' to some kind of bash script that output user details to a text file that can be read in by your chosen LDAP solution.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

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