c*******e 发帖数: 8624 | 1 2个小时前收到一台workstation
刚上手UNIX,用root登陆
想建几个用户,却发现home目录是只读的
怎么办?我用file manager想改一下
好象改不了,这个是怎么回事? |
c*****t 发帖数: 1879 | 2 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.
【在 c*******e 的大作中提到】 : 2个小时前收到一台workstation : 刚上手UNIX,用root登陆 : 想建几个用户,却发现home目录是只读的 : 怎么办?我用file manager想改一下 : 好象改不了,这个是怎么回事?
|
D***D 发帖数: 294 | 3
^^^^^^^^^^^^^^^^^^^^^
Then how to adduser ne? |
a****f 发帖数: 29 | 4 你用的什么Unix系统呢? 不同系统可能不一样.
比如说 useradd 或 adduser,
【在 D***D 的大作中提到】 : : ^^^^^^^^^^^^^^^^^^^^^ : Then how to adduser ne?
|
c*****t 发帖数: 1879 | 5
hehe, read his next half sentence :)
【在 D***D 的大作中提到】 : : ^^^^^^^^^^^^^^^^^^^^^ : Then how to adduser ne?
|
D***D 发帖数: 294 | 6 Joking la.
Just want to confirm that doing things with root privilege should be with
caution.
【在 c*****t 的大作中提到】 : : hehe, read his next half sentence :)
|
m*****e 发帖数: 4193 | 7 df /home to check out. It's probably a NFS filesystem.
【在 c*******e 的大作中提到】 : 2个小时前收到一台workstation : 刚上手UNIX,用root登陆 : 想建几个用户,却发现home目录是只读的 : 怎么办?我用file manager想改一下 : 好象改不了,这个是怎么回事?
|
m*******m 发帖数: 182 | 8 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*****e 的大作中提到】 : df /home to check out. It's probably a NFS filesystem.
|
c*******e 发帖数: 8624 | 9 补充一下,机子是sun的ultra 5
系统是solaris 8
大家继续指教
【在 c*******e 的大作中提到】 : 2个小时前收到一台workstation : 刚上手UNIX,用root登陆 : 想建几个用户,却发现home目录是只读的 : 怎么办?我用file manager想改一下 : 好象改不了,这个是怎么回事?
|
m*******m 发帖数: 182 | 10 Okay, it must be the auto_home thing. Modify /etc/auto_home
【在 c*******e 的大作中提到】 : 补充一下,机子是sun的ultra 5 : 系统是solaris 8 : 大家继续指教
|
|
|
c*******e 发帖数: 8624 | 11 the content is
+auto_home
How to modify it?
【在 m*******m 的大作中提到】 : Okay, it must be the auto_home thing. Modify /etc/auto_home
|
m*******m 发帖数: 182 | 12 Comment it out.
【在 c*******e 的大作中提到】 : the content is : +auto_home : How to modify it?
|
m*****e 发帖数: 4193 | 13 why you want to modify it?
【在 c*******e 的大作中提到】 : the content is : +auto_home : How to modify it?
|
c*******e 发帖数: 8624 | 14 I cannot write under /home as su
according to maelstorm's suggestion...
【在 m*****e 的大作中提到】 : why you want to modify it?
|
m*****e 发帖数: 4193 | 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 发帖数: 182 | 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 发帖数: 4193 | 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 发帖数: 1879 | 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 发帖数: 4193 | 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 发帖数: 182 | 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.
|