Jack's Blog

流淌的心,怎能阻拦,吹来的风,又怎能阻挡。

Fedora 25/26将自己添加为SUPER USER

Jacob posted @ Jul 13, 2017 07:59:01 PM in Fedora with tags Fedora sudo , 614 阅读

由于某些安全性的原因fedora 取消了图形化界面添加su

因而只能采取后台操作添加将自己添加为su

不少freshman(包括我)都是摸索了好长时间才学会的

下面分享方法

su #输入密码后得到root权限
visudo
a #进入append模式(系统会显示INSERT)

在文件中找到这样的代码

## Allow root to run any commands anywhere
root ALL=(ALL) ALL

然后在其下面添加一行

your_name ALL=(ALL) ALLyour_name ALL=(ALL) ALL #your_name 为你的用户名

然后

按Esc 
输入“:w”(保存文件) 
输入“:q”(退出) 

FAQ

1.我的用户名在哪里可以看到?

在终端的开头[your_user_name@...]

2.在编辑文件的时候系统提示我语法错误

只要按照本操作,输入Q后便可保存并退出了

最后便可以愉快的使用sudo了

Avatar_small
BSEB Model Paper Cla 说:
2022年9月13日 16:17

Bihar State Vidyalay Pariksha Samiti, Patna Board and others have designed and suggested the State Elementary Level Primary Education Class 2nd Grade study & learning material as Bihar Board 2nd Class Model Paper 2023 with Mock Test and Practice Questions for Term1 & Term 2 Exams of the Course. BSEB Model Paper Class 2 All Regional Students of Bihar can download the BSEB STD-2 Question Paper 2023 Pdf to All Languages and Subjects for SCERT & NCERT Syllabus students of Hindi Medium, English Medium and Urdu Medium Students Studding in Government & Private Schools of the State & Central Board.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter