Hello, I'm presuming that the advise you have given to Raghunath, works on a
ix86 linux box as well
I have a couple of doubts
> > Please tell me how to do home dir maping ueing autofs
>
>
>Step 1: The home directory of the users should physically exist on some
>machine. You should also be running NFS on this machine. Let us say
>that the physical home directories are under /home on this machine.
>Export /home through NFS.
I added these lins to my export directory as shown below
/home 192.168.1.1 (rw)
/home/rajeev 192.168.1.1 (rw)
on using exportfs i got the following
/home 192.168.1.1
/home <world>
>network users who will be under /u. Make sure that the NIS server has
>an entry for user foo in the passwd file in the following format:
>foo:ENCPASSWD:1984:1234:Foo Bar:/u/foo:/bin/bash
yes, the entry is present
>Also, the auto.master map on the NIS server should have a line like so:
>
>/u auto.home -nosuid
>The auto.home map should have entries like so:
>
>foo home-server-machine:/home/foo
I've set the auto.home on my server as shown below
rajeev 192.168.1.2:/home/rajeev
>Step 3: From the client machine you should first be able to see the
>passwd file on the NIS server. You can do this by 'ypcat passwd | grep
>foo'
Yes, this works too
>Sep 4: The autofs daemon can automount locally specified stuff and stuff
>specified in the NIS maps (a map called auto.master). Edit
>/etc/auto.master on the client machine. It should look like so:
>
>/misc /etc/auto.misc
>+auto.master
I've added this line to the auto.master in the client machine
>The first line says that anything under /misc is to be automounted as
>specified in /etc/auto.misc. The '+auto.master' says that every map
>listed in the NIS map auto.master should also be mounted.
>
>Step 4: Restart the autofs daemon /etc/rc.d/init.d/autofs restart. >Now
>if you type mount, you should see that /u (as specified in >auto.master)
>is mounted.
No, that did not happen. I restarted autofs, but on giving mount,
no /u is given
>Step 5: Login as user foo and see how it works.
I did, but still no dice. I'm getting same problem I originally had.
the bash# prompt,
Where am i going wrong. Another qustion : I have to setup NIS & NFS on my
college server. There are 16 machines in the lab. Can I specify an IP range
in the export file rather then single IP addresses.
Is it possible to export only a group rather then the entire home directory?
Thanks in advance, and sorry for the long mail.
Rajeev
ps:
my auto.master(on the server) is like this(I've removed # lines in the mail)
:
/misc /etc/auto.misc --timeout 60
/u auto.home -nosuid
my auto.misc is like this
kernel -ro,soft,intr ftp.kernel.org:/pub/linux
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr