[问题]终端下输入什么命令可以使普通用户成为管理员用户?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
thorium
帖子: 24
注册时间: 2006-05-06 11:48

[问题]终端下输入什么命令可以使普通用户成为管理员用户?

#1

帖子 thorium » 2006-06-01 8:40

如题
谢谢
Jamsa
帖子: 147
注册时间: 2006-03-17 13:40

#2

帖子 Jamsa » 2006-06-01 9:40

sudo -s -H
thorium
帖子: 24
注册时间: 2006-05-06 11:48

#3

帖子 thorium » 2006-06-01 11:18

Jamsa 写了:sudo -s -H
似乎不行耶

kk@ubuntu:~$ sudo -s -H
Password:
kk is not in the sudoers file. This incident will be reported.
kk@ubuntu:~$
头像
Element
帖子: 3537
注册时间: 2005-09-10 16:04
来自: DG-GD-China

#4

帖子 Element » 2006-06-01 12:14

出现Password:的时候输入你的密码,然后就可以了。
root@ubuntu:#
http://element.blog.ubuntu.org.cn/
Ubuntu Jaunty Jackalope...
AMD Barton 2600+
MSI K7N2 Delta-L
Kingston DDR400 512M*2+256M*1
nVidia FX5200
Seagate 80G(Jaunty Jackalope)
Seagate 160G(XXxxXX)
SyncMaster 732N
zwbfj
帖子: 36
注册时间: 2006-04-14 20:59

#5

帖子 zwbfj » 2006-06-02 13:30

直接su,后输入密码就可以了!
lc011751
帖子: 47
注册时间: 2006-04-27 14:12

#6

帖子 lc011751 » 2006-06-03 19:46

wo jin ru root@ubuntu:# hou bu neng xiu gai yun ?? xi tong tishi没有那个文件或目录
上次由 lc011751 在 2006-06-03 19:56,总共编辑 1 次。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#7

帖子 eexpress » 2006-06-03 19:49

切换当然是su了
● 鸣学
lc011751
帖子: 47
注册时间: 2006-04-27 14:12

#8

帖子 lc011751 » 2006-06-03 19:52

sudo gedit/etc/apt/sources.list bu neng xiu gai yun ? zen me ban a? mei fa an shu ru fa?
头像
karron
帖子: 6226
注册时间: 2005-06-11 14:03
来自: 不明真相的群众
联系:

#9

帖子 karron » 2006-06-03 20:09

sudo gedit /etc/apt/sources.list

gedit后面有个空格
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
lc011751
帖子: 47
注册时间: 2006-04-27 14:12

#10

帖子 lc011751 » 2006-06-03 20:20

(gedit:8451): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.


zhe shi shen me yi si?
huijian3139
帖子: 36
注册时间: 2009-07-19 19:44

Re: [问题]终端下输入什么命令可以使普通用户成为管理员用户?

#11

帖子 huijian3139 » 2009-07-21 17:03

当前用户没有权限使用sudo 直接su 鉴定故障
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

Re: [问题]终端下输入什么命令可以使普通用户成为管理员用户?

#12

帖子 BigSnake.NET » 2009-07-21 17:06

代码: 全选

kk is not in the sudoers file.
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
xiaomo0620
帖子: 2
注册时间: 2010-06-23 23:59

Re: [问题]终端下输入什么命令可以使普通用户成为管理员用户?

#13

帖子 xiaomo0620 » 2010-06-24 0:13

you should add kk to /etc/sudoers

su - // get to root
chmod u+w /etc/sudoers
vim /etc/sudoers
// find the line "root ALL=(ALL) ALL" add "kk ALL=(ALL) ALL" under it. as follow:
root ALL=(ALL) ALL
kk ALL=(ALL) ALL
// save and quit vim
chmod u-w /etc/sudoers



then you can use 'sudo' command in kk
回复