Debian普通用戶添加sudo權限


剛安裝好的Debian默認還沒有sudo功能。
1、安裝sudo
# apt-get install sudo
2、修改 /etc/sudoers 文件屬性為可寫
# chmod +w /etc/sudoers
3、編輯 /etc/sudoers ,添加如下行
# vim /etc/sudoers
root ALL=(ALL) ALL
user ALL=(ALL) ALL 用戶user執行sudo時需要密碼。
#user ALL=NOPASSWD:ALL 用戶user執行sudo時不需要密碼。
#user ALL=NOPASSWD:/etc/network/interfaces 用戶user執行只有sudo執行/etc/network/interfaces的權限,執行時不需要密碼。
4、修改/etc/sudoers 文件屬性為只讀
# chmod -w /etc/sudoers

http://www.cnblogs.com/wangkongming/p/3758759.html

 

VirtualBox下Debian安裝增強功能

打開一個root終端:

 apt-get install build-essential

sh /media/cdrom0/VBoxLinuxAdditions.run

http://blog.sina.com.cn/s/blog_4a0a8b5d0102v3u2.html

2.

sudo apt-get install g++
 sudo apt-get install make
 sudo apt-get install linux-headers-$(uname -r)
 sudo sh ./autorun.sh
 sudo poweroff --reboot

http://blog.csdn.net/cqdjyy01234/article/details/53208505

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM