|
发表于 2005-3-16 15:13:38
|
显示全部楼层
[root@hx etc]# umount /dev/mapper/vg-home
[root@hx etc]# mount -l
/dev/mapper/vg-root on / type ext3 (rw) []
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /boot type ext3 (rw) [/boot]
none on /dev/shm type tmpfs (rw)
/dev/mapper/vg-tmp on /tmp type ext3 (rw) []
/dev/mapper/vg-usr on /usr type ext3 (rw) []
/dev/mapper/vg-var on /var type ext3 (rw) []
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
automount(pid3121) on /home type autofs (rw,fd=4,pgrp=3121,minproto=2,maxproto=4)
[root@hx etc]# service autofs restart
Stopping automount:[ OK ]
Starting automount:[ OK ]
[root@hx etc]# su - e1
su: warning: cannot change directory to /home/e1: No such file or directory
-bash-3.00$ exit
logout
[root@hx etc]# cat /var/log/messages
Feb 26 02:32:08 hx autofs: automount shutdown succeeded
Feb 26 02:32:08 hx kernel: SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
Feb 26 02:32:08 hx autofs: automount startup succeeded
Feb 26 02:32:14 hx su(pam_unix)[3321]: session opened for user e1 by root(uid=0)
Feb 26 02:32:14 hx su[3321]: Warning! Could not relabel /dev/pts/0 with user_ubject_r:devpts_t, not relabeling.Operation not permitted
Feb 26 02:32:14 hx automount[3323]: failed to mount /home/e1
Feb 26 02:32:16 hx su(pam_unix)[3321]: session closed for user e1
[root@hx etc]# mount -l
/dev/mapper/vg-root on / type ext3 (rw) []
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /boot type ext3 (rw) [/boot]
none on /dev/shm type tmpfs (rw)
/dev/mapper/vg-tmp on /tmp type ext3 (rw) []
/dev/mapper/vg-usr on /usr type ext3 (rw) []
/dev/mapper/vg-var on /var type ext3 (rw) []
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
automount(pid3314) on /home type autofs (rw,fd=4,pgrp=3314,minproto=2,maxproto=4)
umount还是不行,奇怪! |
|