Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-30-2005, 11:50 PM
|
#1
|
Member
Registered: Oct 2005
Posts: 32
Rep:
|
I need Help on NIS and NFS
Hi All,
I have 20 systems which installed Linux Fedora Core 3 OS on my office. Now I want implement NIS on my office as users should have roaming profile. The problem here is already all the users they have their own user accounts on their systems. I need to those users should be NIS users and their accounts be roam through the network. If I can move those users to NIS server I can mount the home directory in all the clients with NFS. So the users can login anywhere in the network. How to move local users to NFS server, and their home directories also?
Thanks,
Srikanth
|
|
|
11-01-2005, 02:59 PM
|
#2
|
Member
Registered: Jun 2001
Location: Centralia, WA
Posts: 274
Rep:
|
Well, there are a couple of things you could try. Create the users on the NFS server with the same UID/GID and copy their entries from /etc/passwd and /etc/shadow. Then migrate their home directories by tarring them to tape/cd/dvd (whichever). Or you might look into an LDAP solution also, LDAP is more secure from what I hear than NIS.
|
|
|
11-01-2005, 03:03 PM
|
#3
|
Member
Registered: Jun 2004
Location: Venezuela
Distribution: RHEL ,Ubuntu, Slax, Kali
Posts: 95
Rep:
|
I had the same task but with RH9
What I did was I made a NIS server with and created the users account again with all the same parameters they have in the other pc's . Then I removed /etc/passwd , /etc/group /etc/shadow and /etc/gshadow and related files ( in fact I only renamed them just in case , I could come back to the old configuration ) .
I configured the client NIS files on each of the other nodes , for example /etc/yp.conf ,
/etc/nsswitch.conf ,addes the NIS line on the /etc/sysconfig/network and started the ypbind services .
I restarted the pc's and when it came to loggin , no problem , everything was really good .
|
|
|
11-02-2005, 11:22 PM
|
#4
|
Member
Registered: Oct 2005
Posts: 32
Original Poster
Rep:
|
Thanks
hi,
Thanks for your reply,
is there any procedure can we copy /etc/passwd and /etc/shadow to make as nis users in the nis server.
thanks,
srikanth
|
|
|
11-03-2005, 10:08 AM
|
#5
|
Member
Registered: Jun 2001
Location: Centralia, WA
Posts: 274
Rep:
|
Well, there is no written down procedure. What I would do is verify that your users UIDs are the same on each box (in other words jdoe is UID 500 on all the servers/workstations), also make sure all of the GID's on all of your servers are the same ( DBA = GID 20 on all servers/workstations). Once you are sure that is true, go to the box that will be the NIS server and rename /etc/passwd, /etc/group, /etc/shadow and /etc/gshadow to {filename}.orig, then copy those four files from one of the other servers/workstations which you know all of your users have been verified. Then, create the home directories whereever on the NIS server, just create /export/home/{username} and chown {UID}:{GID} /export/home/{username}, chmod 750 /export/home/{username}. From here setup your NIS server and Clients and verify it's all working, and get NFS running (make sure you export /export/home/). Then login as a user and mount the /export/home/{username}. From here you should be able to turn it over to the users, with an explanation of what to do if they log into a box that complains about them not having a home directory. And tell them to copy anything they need from their old /home/{username} directory to the new /export/home/{username} directory. That way you can reclaim the disk space on the local partitions. Anyway, that's about how I'd do it. If you need clarification on something just e-mail me.
|
|
|
11-04-2005, 03:16 AM
|
#6
|
Member
Registered: Oct 2005
Posts: 32
Original Poster
Rep:
|
Hi,
Thanks for your reply. At last I got, I have tested with one user. It is working fine. I copied all these things from the work station
/etc/passwd
/etc/shadow
/etc/gshadow
/etc/group
After all I just tar the files and put on the NIS server, and I mount it on the workstation using NFS. Here I got one doubt we are copying from workstations, if the UID,GID is same in any of the machine. What is the thing I need do?
Thanks,
Srikanth
|
|
|
11-04-2005, 09:58 AM
|
#7
|
Member
Registered: Jun 2001
Location: Centralia, WA
Posts: 274
Rep:
|
Well, what I've done in the past is to edit /etc/passwd on the NIS server and changed the UIDs for all of my NIS account users to a unique number. Decide on a UID number range like say 10000 - 10500 (for 500 users) and change the UIDs starting with 10000 for the first user and just work your way up the list of users in /etc/passwd. Do the same for the GIDs in /etc/group. If you have groups for each individual user like user john and group john then the UID and GID should be the same number. Also check /etc/shadow and /etc/gshadow to verify you have the same ID numbers for the users/groups in those files ( I can't recall off the top of my head if these files have UIDs/GIDs in them, and I don't have access to a linux box here at work.)
|
|
|
11-08-2005, 03:57 AM
|
#8
|
Member
Registered: Oct 2005
Posts: 32
Original Poster
Rep:
|
Hi,
Can we implement quotos on NIS?
Thanks,
Srikanth
|
|
|
11-15-2005, 01:51 PM
|
#9
|
Member
Registered: Jun 2001
Location: Centralia, WA
Posts: 274
Rep:
|
Quotas are implemented on filesystems, you can implement quotas on NFS, not NIS.
|
|
|
01-22-2006, 08:04 PM
|
#10
|
LQ Newbie
Registered: Jan 2006
Location: Philippines
Posts: 5
Rep:
|
Well actually i tried running NIS on Fedora or Cent OS i able to run it in no time..
Very simple...
In NIS client you just go to the cmd line.. and type
@authconfig // press return
after that mark "uses nis" it then ask you the DOMAIN which is you NIS-DOMAIN-SERVER and server which the IP address of your NIS server
then go to the command line again
@chkconfig ypbind on
@chkconfig portmap on
@service ypbind start
@service portmap start
In fedora 3 you cant use automounting technique so what i did is to place my mount in /etc/X11/gdm/PreSession/Init/:0 files
mount 172.16.19.144:/home /home/
and thats all!!!!
but this is not easy when trying to configure in ubuntu i hope i will know too
|
|
|
All times are GMT -5. The time now is 03:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|