赞
踩
ubuntu中如果新创建的用户在操作一些文件提示
用户名 is not in the sudoers file. This incident will be reported.
说明该用户不具备权限操作
1、切换到能使用root权限的用户
使用root权限修改sudoers文件
vim /etc/sudoers
添加一行
your_username ALL=(ALL) ALL
:wq!保存,要加!,因为是只读,所以要强制保存。
保存后就可以切换回用户权限操作文件了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。