24小时热门版块排行榜    

查看: 2690  |  回复: 0

安靖

银虫 (正式写手)

[求助] 集群的管理问题——添加新用户

前言:平时只是在集群上的一个普通用户,最近实验室管理员需要出差一个月,我成为了临时管理员。现在需要在集群上添加一个新用户,在网上看了一些资料,学习了关于集群管理的方法,但是没有达到我的要求。想在这里求助下大家。

集群组成:主节点host  ip: 10.15.73.88
                  计算节点10个: node1  node2 。。。 node10
                  存储节点 IO  

系统: Red Hat 4.1.2

需求:新开的用户,登录主机点 host,能够调用各个计算节点(node1~node10)进行计算。不需要密码就能从主节点ssh到各个计算节点。

我现在操作的步骤(root权限):
1、在host节点上开新用户emuch,并设置路径以及用户组(成功)
useradd -d public/home/emuch  -g users  emuch

提示:copydir(): preserving permissions for /public/home/emuch/.mozilla: Operation not supported
不知道是什么问题,就暂且放着。

2、设置用户密码(成功)
passwd emuch

3、登录新用户emuch(成功)
用emuch登录了下host后发现,显示为 -bash-3.2$   而不是emuch@host ~
原来新建的用户下没有配置好.bashrc .bash_profile等文件,从 /etc/skel/目录下将这些文件拷贝过来后就解决问题了。

4、用新用户emuch账号,登录计算节点(失败)
ssh node1
提示
The authenticity of host 'node1 (172.16.17.1)' can't be established.
RSA key fingerprint is 3b:87:23:44:32:5f:aa:a5:28:7f:a9:eb:d8:33:0d:e1.
Are you sure you want to continue connecting (yes/no)?   
输入“yes”也无法登录到node1。查了资料,需要在各个计算节点上用相同的用户名和密码创建账号。

5、用root账号在计算节点上创建用户emuch  并设置相同的密码(成功)
useradd -d public/home/emuch  -g users  emuch
提示:
Creating mailbox file: File exists
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.

passwd emuch

6、重复第4步,在主节点host用新用户emuch账号,登录计算节点
ssh node1
提示需要输入密码,在输入密码后显示:
Last login: Mon Dec 15 22:24:34 2014 from host
Could not chdir to home directory /public/home/emuch: Permission denied
-bash: /public/home/emuch/.bash_profile: Permission denied
-bash-3.2$

虽然已经ssh到了node1,但是没有/public/home/emuch的权限。



以上步骤,哪里有错,或者正确的做法是什么的呢?
回复此楼
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

相关版块跳转 我要订阅楼主 安靖 的主题更新
信息提示
请填处理意见