1. what kind of machine/OS is it? type uname -a to find out 2. If it is a Solaris machine, then autohome manages /home directory is auto nfs mount of a directory at somewhere else. Check /etc/autohhome.
【在 m*******m 的大作中提到】 : Okay, it must be the auto_home thing. Modify /etc/auto_home
m*m
12 楼
Comment it out.
【在 c*******e 的大作中提到】 : the content is : +auto_home : How to modify it?
m*e
13 楼
why you want to modify it?
【在 c*******e 的大作中提到】 : the content is : +auto_home : How to modify it?
c*e
14 楼
I cannot write under /home as su according to maelstorm's suggestion...
【在 m*****e 的大作中提到】 : why you want to modify it?
m*e
15 楼
automountd is implemented on top of NFS. It's actually a local NFS server.
【在 m*******m 的大作中提到】 : If it runs Solaris 2.X, it might be using autohome. Check : /etc/auto_home. : Modify to disable this, and mkdir by hand. HTH.
m*m
16 楼
Well, this is right. You probably can modify /etc/auto_master file to make /home not automounted. Just comment out a line like this: /home /etc/auto_home You should be able to do what you want.
【在 m*****e 的大作中提到】 : automountd is implemented on top of NFS. It's actually a local NFS server.
m*e
17 楼
Then the /home directory will be gone. This is pointless because you still can't use it. Oh, unless you move everything from the real mount point to /home afterwards, but why bother? /home is convenient and you should use it. If you don't want to use it, play with the real mount point (probably sth like /n/xxx/u/xxx, I am not sure of automountd because we are using amd) directly.
【在 m*******m 的大作中提到】 : Well, this is right. You probably can modify : /etc/auto_master file to make : /home not automounted. Just comment out a line like this: : /home /etc/auto_home : You should be able to do what you want.
c*t
18 楼
Okay, I've seen enough and got tired :) Here is the purpose and advantage of autohome and /home directory. That is, you can have anybody, to have a home directory under /home/username or /home/dept/username yet these users/dept expand many drives/directories. This is not possible w/ conventional NFS mount. The advantage is the convenience, so you one wouldn't need to modify /etc/passwd each time one needs to expand the harddisk and change directories (which can be a pain for NIS
【在 c*******e 的大作中提到】 : I cannot write under /home as su : according to maelstorm's suggestion...
m*e
19 楼
You got it.
【在 c*****t 的大作中提到】 : Okay, I've seen enough and got tired :) : Here is the purpose and advantage of autohome and /home directory. : That is, you can have anybody, to have a home directory under : /home/username : or : /home/dept/username : yet these users/dept expand many drives/directories. : This is not possible w/ conventional NFS mount. The advantage is : the convenience, so you one wouldn't need to modify /etc/passwd : each time one needs to expand the harddisk and change directories
m*m
20 楼
It wont be created automatically, but you can mkdir it which is what this brother wants to do initially. As a single user with local disk (I guess this is the case), you probably dont need the flexibility of autohome. Anyway, it is what I did for my sparc box at home.
【在 m*****e 的大作中提到】 : Then the /home directory will be gone. This is pointless because you still : can't use it. Oh, unless you move everything from the real mount point to : /home afterwards, but why bother? /home is convenient and you should use it. : If you don't want to use it, play with the real mount point (probably sth : like /n/xxx/u/xxx, I am not sure of automountd because we are using amd) : directly.