avatar
不好意思,问个问题# Unix - 噫吁兮,危乎高哉
c*e
1
2个小时前收到一台workstation
刚上手UNIX,用root登陆
想建几个用户,却发现home目录是只读的
怎么办?我用file manager想改一下
好象改不了,这个是怎么回事?
avatar
c*t
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想改一下
: 好象改不了,这个是怎么回事?

avatar
D*D
3

^^^^^^^^^^^^^^^^^^^^^
Then how to adduser ne?
avatar
a*f
4
你用的什么Unix系统呢? 不同系统可能不一样.
比如说 useradd 或 adduser,

【在 D***D 的大作中提到】
:
: ^^^^^^^^^^^^^^^^^^^^^
: Then how to adduser ne?

avatar
c*t
5

hehe, read his next half sentence :)

【在 D***D 的大作中提到】
:
: ^^^^^^^^^^^^^^^^^^^^^
: Then how to adduser ne?

avatar
D*D
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 :)

avatar
m*e
7
df /home to check out. It's probably a NFS filesystem.

【在 c*******e 的大作中提到】
: 2个小时前收到一台workstation
: 刚上手UNIX,用root登陆
: 想建几个用户,却发现home目录是只读的
: 怎么办?我用file manager想改一下
: 好象改不了,这个是怎么回事?

avatar
m*m
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.
avatar
c*e
9
补充一下,机子是sun的ultra 5
系统是solaris 8
大家继续指教

【在 c*******e 的大作中提到】
: 2个小时前收到一台workstation
: 刚上手UNIX,用root登陆
: 想建几个用户,却发现home目录是只读的
: 怎么办?我用file manager想改一下
: 好象改不了,这个是怎么回事?

avatar
m*m
10
Okay, it must be the auto_home thing. Modify /etc/auto_home

【在 c*******e 的大作中提到】
: 补充一下,机子是sun的ultra 5
: 系统是solaris 8
: 大家继续指教

avatar
c*e
11
the content is
+auto_home
How to modify it?

【在 m*******m 的大作中提到】
: Okay, it must be the auto_home thing. Modify /etc/auto_home
avatar
m*m
12
Comment it out.

【在 c*******e 的大作中提到】
: the content is
: +auto_home
: How to modify it?

avatar
m*e
13
why you want to modify it?

【在 c*******e 的大作中提到】
: the content is
: +auto_home
: How to modify it?

avatar
c*e
14
I cannot write under /home as su
according to maelstorm's suggestion...

【在 m*****e 的大作中提到】
: why you want to modify it?
avatar
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.

avatar
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.
avatar
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.

avatar
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...

avatar
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

avatar
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。