Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 328 Bytes

用户配置.md

File metadata and controls

19 lines (10 loc) · 328 Bytes

最初--添加用户

useradd hadoop

passwd hadoop

给新用户赋予sudo使用权限

进入超级用户模式

su root

chmod u+w /etc/sudoers

编辑/etc/sudoers文件

vim /etc/sudoers

找到这一行:”root ALL=(ALL) ALL”在起下面添加”xxx ALL=(ALL) ALL”(这里的xxx是你的用户名),然后保存。