惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
人人都是产品经理
人人都是产品经理
C
Check Point Blog
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 聂微东
Help Net Security
Help Net Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
博客园 - Franky
阮一峰的网络日志
阮一峰的网络日志
O
OpenAI News
V2EX - 技术
V2EX - 技术
H
Hacker News: Front Page
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
PCI Perspectives
PCI Perspectives
爱范儿
爱范儿
Hacker News - Newest:
Hacker News - Newest: "LLM"
Martin Fowler
Martin Fowler
S
Schneier on Security
Webroot Blog
Webroot Blog
Know Your Adversary
Know Your Adversary
云风的 BLOG
云风的 BLOG
H
Help Net Security
I
InfoQ
Simon Willison's Weblog
Simon Willison's Weblog
雷峰网
雷峰网
J
Java Code Geeks
V
Visual Studio Blog
MyScale Blog
MyScale Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
Google Online Security Blog
Google Online Security Blog
Spread Privacy
Spread Privacy
有赞技术团队
有赞技术团队
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
www.infosecurity-magazine.com
www.infosecurity-magazine.com
A
About on SuperTechFans
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
TaoSecurity Blog
TaoSecurity Blog
WordPress大学
WordPress大学
S
Securelist
P
Proofpoint News Feed

Xiaoxia[PG]

nginx的proxy_pass使用https(SSL加密) | Xiaoxia[PG] Python里使用zbar识别二维码 | Xiaoxia[PG] CentOS7上MySQL返回Too many connections | Xiaoxia[PG] Windows上最小的Python运行环境,700KB | Xiaoxia[PG] 继续玩路由器,交叉编译Python 3.3,压成1.5MB | Xiaoxia[PG] 无聊开始玩路由器,入门Tomato固件 | Xiaoxia[PG] Python与简单网络爬虫的编写 | Xiaoxia[PG] 2012年的中秋节 | Xiaoxia[PG] 悬疑 微电影《生日快乐》/ Once Again | Xiaoxia[PG]
发现一个不需要打密码的sudo方法 | Xiaoxia[PG]
作者是Xiaoxia。 · 2015-06-12 · via Xiaoxia[PG]

发现一个不需要打密码的sudo方法

平常在在 /etc/sodoers 添加管理员时,一般这样写:

xiaoxia    ALL=(ALL)    ALL

虽然看不懂这句里面三个ALL表示什么意思,每次都这样写。最近在公子龙七的强烈推荐下,玩起了树莓派2(一个信用卡大小的微型计算机,不用200块就能买到),官方的raspbian系统(发展debian)不能用root,但sudo不需要密码。看了一下它的sudoers文件。Mark下来。

xiaoxia    ALL=(ALL)    NOPASSWD:    ALL

还是看不懂这三个ALL表示什么意思,也懒得去翻阅了,UNIX世界里学海无涯。有了这个东西,平常在我个人的MacBook Air上操作网卡路由表之类的方便多了 😀

PS,我的树莓派已经成为家里的路由,通过一行iptables使其具备智能分流功能,能加快一些国外网站的访问速度。果然是研发人员必备神器!已经成功推荐荣哥大神等购买。早知有这个,当初何必折腾MIPS 64M内存的路由器。

附图:

68D85FFE-913C-4D46-B5FB-CD5A1A610E2C

有玩过树莓派的同学欢迎交流!