ChinaUnix.net
 >> ChinaUnix.net > Solaris

我的系统的/home,怎么不能写?

作者:gamesprite     发表时间:2002/02/27 06:08pm

即使用root登录,也无法在/home下写
用ls -l查看,是
dr-xr-xr-x
也无法用chmod修改,请问怎么回事?

此文章相关评论:
该文章有15个相关评论如下:(点这儿可以发表评论)
白虹 发表于: 2002/02/27 08:05pm
请看前面的帖子!
真实用户home在/export/home!
 
dqiu 发表于: 2002/02/27 08:07pm
solaris下用户对应的home目录在/export/home下,不是/home.
 
gamesprite 发表于: 2002/02/27 09:11pm
哦,这样啊,谢谢
 
bear 发表于: 2002/02/27 09:21pm
我找到根源了!!!见SUN的文章:
FAQ ID   Synopsis   Date
1569   Why are the /net and /home directories not writable   30 Mar 1998

Description Top

On a freshly installed Solaris system cannot write to /home or /net.
Have tried to change permissions (555), but even root cannot write to
it.  What am I doing wrong?


Solution Summary Top

You're not doing anything wrong.  The /net and /home are special
directories.  They are the mount points for automounter to automatically
mount the exported file systems on the net and the user home
directories.

To disable automounter completely rename the /etc/rc2.d/S74autofs to
/etc/rc2.d/s74autofs.  But if you want to configure the autofs to mount
other file systems but disable the /net & /home mounts, just comment out
the /net & /home lines in the /etc/auto_master file.

 
gamesprite 发表于: 2002/02/27 09:23pm
哦。
 
bear 发表于: 2002/02/27 09:24pm
还有1篇

FAQ ID   Synopsis   Date
3202   Why does Solaris produce a slice called /export/home rather than  /home 3 Jul 2000

Description Top

Web install of Solaris 8 produces a slice /export/home/ rather than /home and
/home will not accept sub-directories.  Why is this?


Solution Summary Top

The standard installation is tailored for larger workgroups where you
may have multiple NFS servers and/or multiple user partitions.  In Sun's
default configuration, the automounter has control of /home via an
indirect mount point defined in /etc/auto_master.  The idea is to
create the user's real home filesystem in server:/export/home or
elsewhere and to create an entry in your auto.home or auto_home
NIS/NIS+ automounter map (or /etc/auto_home) to mount the user's real
filesystem at /home/username via the automounter.  The user's then
see their home filesystem at /home/username on all hosts in your
workgroup.

The advantage is that you can perform maintenance (move users filesystems
between partitions or servers) without any impact to the user.  Some
packages will configure user environments with absolute paths to home
directories and users frequently hard code paths into scripts, so this
strategy neatly circumvents problems arising from moving home directories
around.

If you are running standalone and don't care to use the automounter, all
you have to do is to edit /etc/auto_master and comment out the line
beginning with /home.  Then run the "automount" command to tell
automountd to reread its config files.  The entry in /etc/mnttab for
/home should be purged and you will have free run of /home.  You can
prevent automountd from starting in the first place by removing
/etc/rc2.d/S74autofs or renaming to something other than S* or K*.

 
zcycy 发表于: 2002/02/28 08:38am
老熊就是厉害,呵呵
 
aaron2002 发表于: 2002/06/10 06:11pm
确实厉害,佩服!
 
cuauty 发表于: 2002/06/11 09:27am
我的E文不太好,看不懂啊
 
tomzh 发表于: 2002/06/11 10:10am
删掉这个/HOME,重新MKDIR
 
daemonix 发表于: 2002/06/11 12:00pm
/home 做autofs(/etc/auto_home)用的
/net 做 auto_master(/etc/auto_master)用。
 
dicky 发表于: 2002/11/29 11:43pm
Solaris use /home folder

#vi /etc/auto_master
remark home

 
starwang 发表于: 2002/11/30 00:39am
288里的
 
doni 发表于: 2002/11/30 00:51am
[quote][b]下面引用由[u]dicky[/u]在 [i]2002/11/29 11:43pm[/i] 发表的内容:[/b]
Solaris use /home folder
#vi /etc/auto_master
remark home
[/quote]
I agree.
这个问题已经讨论过好多次了。
 
YT 发表于: 2002/11/30 04:11am
这么老的POST都有人翻出来啊?
PFPF。。。
 
 

Copyright © ChinaUnix.net  *  转载请注明出处及作者