LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-18-2009, 10:39 AM   #1
apotrebka
LQ Newbie
 
Registered: Mar 2008
Posts: 7

Rep: Reputation: 0
NFS mounts extra home folders on login


Hi there everybody,

On our network, we authenticate our users via LDAP and use autofs to mount their home directories. This works fine in Fedora 8. However, in Fedora 10, when the user logs in, it also mounts the home folders of the users that previously logged onto the system as well.

This is what I see when I login as "user1" on Fedora 10
Code:
[user1@workstation etc]$ w
 14:27:50 up  6:47,  3 users,  load average: 0.24, 0.13, 0.09
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
user1   :0       -                13:32   ?xdm?   4:00   0.10s /usr/libexec/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1 --force-active-vt
user1   pts/2    :0.0             14:13    0.00s  0.28s  0.06s w


[user1@workstation etc]$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2             10241088   3554760   6686328  35% /
/dev/sda1               104376     47100     57276  46% /boot
tmpfs                   483732        76    483656   1% /dev/shm
10.87.0.10:/var/home/users/user1
                     1465099264  78475264 1386624000   6% /home/user1
10.87.0.10:/var/home/users/user2
                     1465099264  78475264 1386624000   6% /home/user2
10.87.0.10:/var/home/users/user3
                     1465099264  78475264 1386624000   6% /home/user3
When I unmount the extraneous volumes, they are remounted within about 5 seconds. If I log out "user1", all volumes are unmounted.

This only happens on Fedora 10 workstations.

I also get these lines in "lsof | grep user1" on the workstations
Code:
gnome-ses 14393    user1  cwd       DIR       0,23     1736   38935 /home/user1 (10.87.0.10:/var/home/users/user2)
Note: I am accessing the user1 folder but it seems to look to the NFS resource for user2

I get those lines for any open file on the NFS share.

/etc/auto.master
Code:
/home	/etc/auto.home	--timeout 300
+auto.master
/etc/auto.home
Code:
*	-rw	10.87.0.10:/var/home/users/&
This only happens when I login to Gnome. When I'm in runlevel 3 and log in via text, this doesn't happen.

NFS server:
Fedora 8
kernel-2.6.25.4-10.fc8

Workstation
Fedora 10
kernel-2.6.27.9-159.fc10.i686

If anyone has any insight on the problem, it would be very much appreciated

Thanks!

apotrebka

p.s.: Post also exists at this page at FedoraForum
 
Old 03-19-2009, 07:22 AM   #2
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
Quote:
* -rw 10.87.0.10:/var/home/users/&
Also include the option nosuid
Quote:
If I log out "user1", all volumes are unmounted.
What do you mean here? So it basically means the users were not logged off. So your problem might not be with autoFS, but with gdm. users are not being logged off completely.

Might want to consider NIS maps

Last edited by chitambira; 03-19-2009 at 07:26 AM.
 
Old 03-19-2009, 12:10 PM   #3
apotrebka
LQ Newbie
 
Registered: Mar 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chitambira View Post
Also include the option nosuid

What do you mean here? So it basically means the users were not logged off. So your problem might not be with autoFS, but with gdm. users are not being logged off completely.

Might want to consider NIS maps

I found out that its gdm-user-switch-applet thats making the calls to mount the other home folders. It's no big deal for me to get rid of it so its I guess resolved in my case.
Still don't know why it was calling for information from the other home folders though.
 
  


Reply

Tags
autofs, ldap, nfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto mount to nfs home dir when user login to nis client lijianatusa Linux - Newbie 4 02-26-2009 12:38 AM
Export nested mounts through NFS sleepylight Linux - Server 1 07-22-2007 01:40 PM
Folders, and Mounts and File associations in KDE wombat53 Slackware 9 10-02-2005 11:18 PM
Backgrounding NFS mounts kaplan71 Linux - Networking 1 05-18-2005 05:50 PM
cannot get nfs mounts to work iggymac Linux - Networking 0 08-10-2001 02:58 PM


All times are GMT -5. The time now is 05:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration