“How to add a new user to NIS”版本间的差异

来自cslt Wiki
跳转至: 导航搜索
第10行: 第10行:
  
 
5. 重启 nis: make -C /var/yp
 
5. 重启 nis: make -C /var/yp
 +
 +
6. 登录 grid-0: ssh  wolf07 -l root
 +
 +
8. i=special_name
 +
 +
9. chown -R $i:users  /work4/$i  #  (on wolf07)
 +
 +
10.usermod -G intern $i
 +
 +
11. make -C  /var/yp #Update the NIS maps:

2021年11月24日 (三) 02:42的版本

新增 user nis 账号

1. 登录 grid-0: ssh grid-0 -l root

2. 新建 user home: mkdir -p /work4/$i or /freeneb/home/$i

3. 添加 nis 用户: useradd -d "/work4/$i" -m -s "/bin/bash" -g users $i

4. 设置密码: passwd $i

5. 重启 nis: make -C /var/yp

6. 登录 grid-0: ssh wolf07 -l root

8. i=special_name

9. chown -R $i:users /work4/$i # (on wolf07)

10.usermod -G intern $i

11. make -C /var/yp #Update the NIS maps: