is not in sudoer file
来源:百度文库 编辑:神马文学网 时间:2024/04/28 17:19:37
首需要切换到root身份
$su -
(注意有- ,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用"su -"命令将环境变量也一起带过去,就象和root登录一样)
然后
$visudo //切记,此处没有vi和sudo之间没有空格
1、移动光标,到最后一行
2、按a,进入append模式
3、输入
your_user_name ALL=(ALL) ALL
4、按Esc
5、输入“:w”(保存文件)
6、输入“:q”(退出)
这样就把自己加入了sudo组,可以使用sudo命令了。
$su -
(注意有- ,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用"su -"命令将环境变量也一起带过去,就象和root登录一样)
然后
$visudo //切记,此处没有vi和sudo之间没有空格
1、移动光标,到最后一行
2、按a,进入append模式
3、输入
your_user_name ALL=(ALL) ALL
4、按Esc
5、输入“:w”(保存文件)
6、输入“:q”(退出)
这样就把自己加入了sudo组,可以使用sudo命令了。
is not in sudoer file
Error: Content is not allowed in prolog
main.o: could not read symbols: File in wrong format
Windows could not start because the following file is missing or corrupt:
Javier Zanetti Why is not in Argentina‘s World Cup squad
Life Is Not Perfect
Context definition file in war file
Could not create output file 'Unit1.dcu'
libpcap入门--Ying is not gem!
Mobile2.0 IS NOT Web2.0
is not a class or namespace name
My book is mine, not Google's
her story is not long long ago
When is a room not a room?
he is just not that into you
File input (or "upload") in HTML forms
A Coup is Not a Coup. A Not-Coup is a Coup.
What is law in English?
hurmors is important in life
In Defense of Not-Invented-Here Syndrome
AVI DVC not playing in Media Player
vc C2085 not in formal parameter list
T恤文化:Not In Your Face
I DO NOT LOOK THEM IN EYES