首页 > 其他 > 详细

debian使用sudo

时间:2014-01-16 21:12:27      阅读:309      评论:0      收藏:0      [点我收藏+]
debian默认没有sudo ,在命令前无法使用sudo
#切换到根用户$ su 输入根用户密码

# apt-get install sudo
# nano /etc/sudoers

文件的 User privilege specification 部分添加:

debian ALL=(ALL:ALL) ALL

将 debian 换为您的用户名

C-w 保存
C-x 退出nano


第一次使用sudo的提示如下:

jb@e3v2:~$ sudo apt-get update

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for jb:

debian使用sudo

原文:http://www.cnblogs.com/vipzrx/p/3520027.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!