ubuntu切换到root用户怎么把当前用户提升为root

Ubuntu下怎么将普通的用户的权限提升到root权限_百度知道
Ubuntu下怎么将普通的用户的权限提升到root权限
我有更好的答案
你好,很高兴为你解答! 现在root很简单的,很多root软件,你可以下个一键Root大师,号称root成功率最高,我用过,挺不错的。
采纳率:85%
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。欢迎来到老马的领地~ 这是“压风式散热底座”发明者的个人网站:)
最近赶项目,老板让在N32905上面跑LINUX,再做个GUI.
这个比较麻烦,项目只有30天时间,但我又完全没玩过LINUX,汗一个.
按新唐官方文档,使用Ubuntu&Linux去装它的交叉编译器以及N32905的BSP,中间有折腾,但总算顺利搞定系统编译.
其中系统的root登录我觉得比较重要,因为这能省掉大量的输入密码操作.....
第一步是给root用户设置个密码.
&&&&&我没试过空密码行不行,不折腾.
sudo&passwd&root
第二步是在配置文件里设置自启动:
&&&&&1,编辑/etc/lightdm/lightdm.conf:
sudo&gedit&&/etc/lightdm/lightdm.conf
[Seat:*]
autologin-guest=false
autologin-user=root
autologin-user-timeout=0
greeter-session=lightdm-gtk-greeter
&&&&&2,编辑/root/.profile文件,增加tty&-s&&&:
sudo&gedit&/root/.profile&
#&~/.profile:&executed&by&Bourne-compatible&login&shells.
if&[&&$BASH&&];&then
&&if&[&-f&~/.bashrc&];&then
&&&&.&~/.bashrc
&&fi
fi
tty&-s&&&&mesg&n&||&true
然后重启就行了.怎么从普通用户切换到root?【ubuntu吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:114,801贴子:
怎么从普通用户切换到root?收藏
小弟刚入手ubuntu11.10,用wubi安装的与windows共存,当初按步骤设置了一个用户名和密码,但是没有提示设置根目录的密码啊,所以我登录系统都是安装时设的普通用户,安装软件时提示权限受限,想切换到root,但是提示输入密码,请问这个密码是什么啊?我该怎么切换到root呢?
请高手不吝赐教~
ubuntu 笔记本,苏宁易购,品牌网购商城,品牌专属网络销售,支持货到付款,省钱又放心!ubuntu 笔记本,苏宁易购正品低价,支持货到付款!7天无理由退换货,100个城市半日达!
回复2楼:如果想降低权限喃?
回复4楼:恩啊……感觉不输密码授权就没权限了是吧?
ubuntu拿普通用户充当root
谢了,这招好使,但是我切换到root后,用chmod改了新密码,之后退出,如果我用su - root ,这样切换的时候提示输入改过的密码。但是用su -i,密码还是普通用户的密码,这样普通用户权限太大了,有没有什么方法解决这个问题啊?
就是在root下我改了新密码,但是如果我登陆普通用户后,用命令:sudo -i切换到root后,要求输入的还是普通用户的密码,这样root的密码就没用了,随便一个普通用户就可以进入root了,权限不是很大吗?
sudo passwd root这一条设置一个root密码su root这一条切换到root个人习惯这种方式,这样在创建文件时所有者是root不是你,至于sudo -i我没有试过不知道是否也是这个状态
恩,从普通用户sudo -i到root,只用普通用户的密码确实拥有了root的权限~
安装ubuntu时创建的用户本身就是管理员用户(但不是超级用户),就是说可以通过sudo让该用户获得超级用户的权限。sudo -i 也并非转为root,而是永久提升该帐户拥有超级用户权限(不加 -i 是提升一次)。如果你觉得该帐户权限过于强大,可以把该帐户从sudo组或者wheel组中移除(取决于发行版),但是极其不推荐,因为如果你之前没有启用超级用户的话(ubuntu默认不激活),那么你就再也没有拥有超级权限的用户,什么事都做不了,还无法激活超级用户,从而进入死循环。PS:转为root的命令是su,你可以试试,默认下ubuntu中输入该命令无效。
要是这样我就放心了,只要保证要是其他人新建的普通用户不能这么简单切入到root就行,我用sudo进入root改过密码之后,用su - root可以转为root,需要输入的是新密码。谢谢说的这么详细~
数码家电「天猫618」抢100元大额券,先到先得!每满,大屏满减,惊爆狂欢!「天猫618」全民狂欢&嗨&购,理想生活上天猫!
自己得笔记本,有个开机密码都ok了,别人用访客模式进就好,o(∩∩)o...哈哈
sudo -s -H
登录百度帐号博客访问: 14551
博文数量: 7
博客积分: 205
博客等级: 入伍新兵
技术积分: 91
注册时间:
分类: LINUX 15:26:33
问题背景:
前段时间装了个Ubuntu 11,直接进的是图形界面。当我打开terminal切换用户时发现,在安装的时候设置的密码都不能进入root用户。通过搜索,了解到在新的ubuntu中默认是把root用户给禁用的,所以请看下面的介绍如何解决这个问题,以及这样做有哪些好处。
Ubuntu是一套基于Debian的Linux系统,它追求的是“Just Work”,最新的7.10版本发布于2007年10月,不同于其他Linux发行版本,Ubuntu的所有版本都是免费的,包括企业版。第一次安装Ubuntu,发现比较“奇怪”的一点是,在安装过程中,不像其他发布版本那样,要求设置root的密码,也就无法以root登录了。经过去网上查询才发现:Ubuntu默认是关闭root帐户的,这样做有如下优点:起初Ubuntu团队希望安装尽可能的简单,不使用root,在安装期间的两个用户交互步骤可以省略。(科林·沃森)更进一步,如果在安装中使用root,用户将被要求永远记住他们选择的密码--即使他们很少使用到它。Root密码经常被对Unix安全模型不熟悉的用户忘记。(马特·齐默曼)它防止了缺省登录时“我能做任何事情”--在较大的变化发生之前,你将被提示输入口令,这可以使你考虑你这样做的结果。如果你作为root登录,你可以删除一些“没用的文件夹”并且不会意识到你正处于错误的目录,那时已经太晚了。它是在Unix下长时间使用“su-command-^D”练习的情况下,代替一直呆在root shell--除非你做严重的系统维护(那时你仍然可以使用 "sudo su")。(吉姆·奇塔姆 和 安德鲁·索巴拉)Sudo 增加了运行命令的日志记录(在/var/log/auth.log)。如果你陷入困境,你总是可以返回并看见那些运行的命令。(安德鲁·Zbikowski)开启root帐号的方法:为了启用root 帐号(也就是设置一个口令)使用:sudo passwd root当你使用完毕后屏蔽root帐号使用:sudo passwd -l root这个将锁住root帐号。如何在终端模式下切换到root身份?sudo -s -HPassword:
=================================
Ubuntu进入root权限命令——sudo和su命令详解
ubuntu用户管理
sudo意思就是super-user do,让当前用户暂时以管理员的身份root来执行这条命令。
su是用来改变当前用户的,su root,就是将当前用户切换为root,用了su root之后,下面所有的命令就可以不用打sudo了,因为当前用户已经是管理员root了。
root 用户为根用户,也就是 系统管理员 拥有全部权限一个用户只能拥有一个 GID ,但是还可以归属于其它附加群组
用户管理的重要配置文件:/etc/passwd 用户名 密码位 UID 归属GID 姓名 $HOME目录 登录Shell/etc/shadow 用户名已加密密码 密码改动信息 密码策略/etc/group 群组名 密码位 GID 组内用户/etc/gshadow 群组密码相关文件,不重要/etc/sudoers 用户名 权限定义 权限[/pre]可以使用 pwconv 命令创建影子密码,将 /etc/passwd 文件中的密码转换到 /etc/shadow 文件 su [用户名]切换到其它用户,默认切换到root用户。提示密码为将切换用户密码 -f 快速切换,忽略配置文件-l 重新登录-m ,-p 不更改环境变量-c
切换后执行命令,并退出切换sudo [命令]以其它用户的身份执行命令,默认以root的身份执行。提示密码为当前用户密码 -s 切换为root shell-i 切换为root shell,并初始化-u
执行命令的身份-l 显示自己的权限passwd [用户名]设定用户密码-d 清除密码-l 锁定用户-e 使密码过期,在下次登录时更改密码-S 显示密码认证信息-x
密码过期,最大使用时间-n
冻结密码,最小使用时间-s 更改登录Shell-f 更改
阅读(1256) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
请登录后评论。订阅你的位置: >
> 【部分解决】Ubuntu中提升当前普通用户的权限使其变成sudo超级用户
【问题】已安装一个Ubuntu虚拟机。在其中想要折腾开发方面的事情。需要去到opt下建立文件夹,结果竟然说没权限:crifan@ubuntu:~/develop$ pwd
/home/crifan/develop
crifan@ubuntu:~/develop$ cd /opt/
crifan@ubuntu:/opt$ ls
crifan@ubuntu:/opt$ mkdir crosscompile
mkdir: cannot create directory ‘crosscompile’: Permission denied
crifan@ubuntu:/opt$ users
crifan crifan
crifan@ubuntu:/opt$  所以,现在希望:每次,使用当前的普通用户,登陆后,即可具有超级用户sudo的权限。不希望再每次输入sudo,直接用。即把当前用户,提升权限,变成超级用户。【折腾过程】1.网上搜了一堆,都是开启Ubuntu的root用户的,对我此处没啥意义。2.参考:中提到了:去看了看,感觉不适合我。其只是,将用户变成对于某些东西有sudo 的权限,但是用起来,还是需要输入sudo的,还是很麻烦。3.继续参考上面的解释,说是可以把当前用户加到wheel or admin group。不太懂wheel是啥。以及如何添加。关于为何管理员组,被叫做wheel,这里有解释:4.然后去想办法,把当前用户加到管理员组里面。搜:ubuntu Add user to the wheel group找到然后去修改/etc/sudoers但是:一是没有%wheel二是要加的:# usermod -G10 user1也看起来不对:#明显是注释掉了此行而已所以,放弃此人的教程。5.搜:ubuntu Add user to the root group参考:去看看这些相关的命令:crifan@ubuntu:/opt$ su -
su: Authentication failure
crifan@ubuntu:/opt$ sudo -s
root@ubuntu:/opt# usermode --help
No command 'usermode' found, did you mean:
Command 'usermod' from package 'passwd' (main)
usermode: command not found
root@ubuntu:/opt# usermod --help
Usage: usermod [options] LOGIN
-c, --comment COMMENT
new value of the GECOS field
-d, --home HOME_DIR
new home directory for the user account
-e, --expiredate EXPIRE_DATE
set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE
set password inactive after expiration
to INACTIVE
-g, --gid GROUP
force use GROUP as new primary group
-G, --groups GROUPS
new list of supplementary GROUPS
-a, --append
append the user to the supplemental GROUPS
mentioned by the -G option without removing
him/her from other groups
-h, --help
display this help message and exit
-l, --login NEW_LOGIN
new value of the login name
-L, --lock
lock the user account
-m, --move-home
move contents of the home directory to the
new location (use only with -d)
-o, --non-unique
allow using duplicate (non-unique) UID
-p, --password PASSWORD
use encrypted password for the new password
-R, --root CHROOT_DIR
directory to chroot into
-s, --shell SHELL
new login shell for the user account
-u, --uid UID
new UID for the user account
-U, --unlock
unlock the user account
-Z, --selinux-user SEUSER
new SELinux user mapping for the user account
root@ubuntu:/opt# 6.但是仍旧不知道当前,存在哪些group。参考:貌似默认的是root这个group。7.所以,可以去试试:root@ubuntu:/opt# usermod -a -G root crifan8.然后再退出当前root用户:root@ubuntu:/opt# exit
exit去使用crifan,看看能否创建文件夹,结果还是不行:crifan@ubuntu:/opt$ mkdir crosscompile
mkdir: cannot create directory ‘crosscompile’: Permission denied9.然后logout注销:重新用crifan登陆,再试试,结果还是不行。10.算了,还是进入系统管理工具里面, 试试如何把当前的用户,添加到root组里面。结果发现,当前用户,已经是administrator了:而且貌似无法更改属于哪个组。11.看来还是需要想别的办法。参考:去试试:crifan@ubuntu:~/Desktop$ sudo -s
[sudo] password for crifan:
root@ubuntu:~/Desktop# usermod -a -G sudo crifan然后再去试试是否可行,结果不行,然后又去试了其他的:crifan@ubuntu:~/Desktop$ cd /opt/
crifan@ubuntu:/opt$ mkdir crosscompile
mkdir: cannot create directory ‘crosscompile’: Permission denied
crifan@ubuntu:/opt$ sudo -s
root@ubuntu:/opt# more /etc/sudoers
# This file MUST be edited with the 'visudo' command as root.
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
# See the man page for details on how to write a sudoers file.
Defaults env_reset
Defaults mail_badpass
Defaults secure_path=&/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
sbin:/bin&
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on &#include& directives:
root@ubuntu:/opt# cat /etc/sudoers
# This file MUST be edited with the 'visudo' command as root.
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
# See the man page for details on how to write a sudoers file.
Defaults env_reset
Defaults mail_badpass
Defaults secure_path=&/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on &#include& directives:
#includedir /etc/sudoers.d
root@ubuntu:/opt# usermod -a -G admin crifan
usermod: group 'admin' does not exist
root@ubuntu:/opt# exit
crifan@ubuntu:/opt$ 重新logout后,再登陆试试,结果还是不行。12.再去参考上面帖子,去试试:给/etc/sudoers添加上:%wheel ALL=(ALL) ALL然后把自己加上:usernod -a -G wheel crifan结果总之还是不行:crifan@ubuntu:/opt$ mkdir crosscompile
mkdir: cannot create directory ‘crosscompile’: Permission denied
crifan@ubuntu:/opt$ sudo gedit /etc/sudoers
[sudo] password for crifan:
(gedit:6653): IBUS-WARNING **: The owner of /home/crifan/.config/ibus/bus is not root!
crifan@ubuntu:/opt$ sudo -s
root@ubuntu:/opt# usermod -a -G wheel crifan
usermod: group 'wheel' does not exist
root@ubuntu:/opt# usermod -G wheel crifan
usermod: group 'wheel' does not exist
root@ubuntu:/opt# usermod -a wheel crifan
Usage: usermod [options] LOGIN
-c, --comment COMMENT
new value of the GECOS field
-d, --home HOME_DIR
new home directory for the user account
-e, --expiredate EXPIRE_DATE
set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE
set password inactive after expiration
to INACTIVE
-g, --gid GROUP
force use GROUP as new primary group
-G, --groups GROUPS
new list of supplementary GROUPS
-a, --append
append the user to the supplemental GROUPS
mentioned by the -G option without removing
him/her from other groups
-h, --help
display this help message and exit
-l, --login NEW_LOGIN
new value of the login name
-L, --lock
lock the user account
-m, --move-home
move contents of the home directory to the
new location (use only with -d)
-o, --non-unique
allow using duplicate (non-unique) UID
-p, --password PASSWORD
use encrypted password for the new password
-R, --root CHROOT_DIR
directory to chroot into
-s, --shell SHELL
new login shell for the user account
-u, --uid UID
new UID for the user account
-U, --unlock
unlock the user account
-Z, --selinux-user SEUSER
new SELinux user mapping for the user account
root@ubuntu:/opt# usermod -G wheel crifan^C
root@ubuntu:/opt# sudo -s
root@ubuntu:/opt# gedit /etc/sudoers
(gedit:6802): IBUS-WARNING **: The owner of /home/crifan/.config/ibus/bus is not root!
root@ubuntu:/opt# 13.继续参考:去给/etc/sudoers加上:crifan ALL=(ALL) ALL然后logout,再回来试试。结果还是不行。14.重启ubuntu试试,结果还是不行。15.索性,还是参考:去用此不太好,但是可用的办法吧:sudo gedit /etc/passwd将其中的:crifan:x::crifan li,,,:/home/crifan:/bin/bash改为:crifan:x:0:0:crifan li,,,:/home/crifan:/bin/bash logout,再进来试试,但是结果右上角,都没有下拉菜单了。而且打开终端会显示:I have no name !!!所以,还是去改回来吧。结果都进不去了:I have no name!@ubuntu:~/Desktop$ sudo gedit /etc/passwd
sudo: unknown uid 1000: who are you?结果只有强制关闭此Ubuntu虚拟机的电源才得以关闭,否则都没法关闭Ubuntu。。。16.重启后,的确是可以用root权限创建文件夹了:root@ubuntu:~/Desktop# cd /opt/
root@ubuntu:/opt# mkdir crosscompile
root@ubuntu:/opt# 但是很明显,当前用户,不是我的crifan,而是root了。所以,还是先去改回来:crifan:x::crifan li,,,:/home/crifan:/bin/bash然后重启Ubuntu。17.参考:去把之前添加到/etc/sudoers中的内容,放到最后,变成:#
# This file MUST be edited with the 'visudo' command as root.
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
# See the man page for details on how to write a sudoers file.
Defaults env_reset
Defaults mail_badpass
Defaults secure_path=&/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on &#include& directives:
#includedir /etc/sudoers.d
#%wheel ALL=(ALL) ALL
crifan ALL=NOPASSWD: ALLlogout看看效果。还是没权限。现在,目前,是已经实现了,使用sudo,可以不用输入密码了:crifan@ubuntu:~/Desktop$ cd /opt
crifan@ubuntu:/opt$ ls
crosscompile
crifan@ubuntu:/opt$ rmdir crosscompile/
rmdir: failed to remove ‘crosscompile/’: Permission denied
crifan@ubuntu:/opt$ mkdir crosscompile
mkdir: cannot create directory ‘crosscompile’: File exists
crifan@ubuntu:/opt$ mkdir crosscompile2
mkdir: cannot create directory ‘crosscompile2’: Permission denied
crifan@ubuntu:/opt$ sudo rmdir crosscompile/
crifan@ubuntu:/opt$ 18.但是,其实更希望做到的是:以crifan用户登陆,每次操作,连sudo都不需要输入,即可用于super user的权限。发现这人:和我需求是一样的。参考其中的解释,打算去:把id都改为0,但是是先创建一个新的用户,比如crifan2013,然后把crifan2013的id都改为0,然后就自动,好像变成了root用户了,就不用输入sudo了。不过打算先去试试另外那个方法,把密码留空。弄了半天,结果就是,把/etc/shadow最后一行中的,自己用户的密码,去掉,即从:crifan:$1$NH4QMkeN$pzTmJ07F.tF3T3H75Kw5R.:99:7:::变成:crifan::99:7:::但是此此处去执行sudo却还是没权限:crifan@ubuntu:/opt$ sudo sed &s/\(^$whoami):[^:]*/\1/& /etc/shadow & /etc/shadowbash: /etc/shadow: Permission denied所以,还是手动去修改算了。然后logout试试。结果还是和之前一样的效果而已:crifan@ubuntu:/opt$ ls
crifan@ubuntu:/opt$ mkdir crosscompile
mkdir: cannot create directory ‘crosscompile’: Permission denied
crifan@ubuntu:/opt$ sudo mkdir crosscompile
crifan@ubuntu:/opt$ 比如还是要输入sudo才行的。虽然无需再输入密码。 所以,还是用之前的:&把id都改为0,但是是先创建一个新的用户,比如crifan2013,然后把crifan2013的id都改为0,然后就自动,好像变成了root用户了,就不用输入sudo了。&去新建一个用户:(1)参考:crifan@ubuntu:/opt$ sudo adduser crifan2013
Adding user `crifan2013' ...
Adding new group `crifan2013' (1001) ...
Adding new user `crifan2013' (1001) with group `crifan2013' ...
Creating home directory `/home/crifan2013' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for crifan2013
Enter the new value, or press ENTER for the default
Full Name []: crifan li 2013
Room Number []:
Work Phone []:
Home Phone []:
Is the information correct? [Y/n] y
crifan@ubuntu:/opt$ sudo adduser crifan2013 admin
adduser: The group `admin' does not exist.
crifan@ubuntu:/opt$ sudo adduser crifan2013 sudo
Adding user `crifan2013' to group `sudo' ...
Adding user crifan2013 to group sudo
Done.(2)把/etc/passwd中的:crifan2013:x::crifan li 2013,,,:/home/crifan2013:/bin/bash改为:crifan2013:x:0:0:crifan li 2013,,,:/home/crifan2013:/bin/bash(3)给/etc/sudoers中最后添加:crifan2013 ALL=NOPASSWD: ALL(4)重启Ubuntu,用crifan2013登陆。结果竟然没有crifan2013这个用户。。。后来才发现,比如去:sudo gedit /etc/passwd中把其uid和gid都恢复到原先的1001:sudo gedit /etc/passwd然后才能出现新的crifan2013这个用户。然后用此用户登陆后,再去到sudo gedit /etc/passwd中,把id都改为0:sudo gedit /etc/passwd重启ubuntu试试。结果就还是没有了crifan2013这个用户。即,还是没有实现所要的效果。19.参考:先去开启了root。crifan@ubuntu:/opt$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
crifan@ubuntu:/opt$ sudo cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x::nobody:/nonexistent:/bin/sh
libuuid:x:100:101::/var/lib/libuuid:/bin/sh
syslog:x:101:103::/home/syslog:/bin/false
messagebus:x:102:105::/var/run/dbus:/bin/false
avahi-autoipd:x:103:106:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/bin/false
usbmux:x:104:46:usbmux daemon,,,:/home/usbmux:/bin/false
dnsmasq:x:105:65534:dnsmasq,,,:/var/lib/misc:/bin/false
whoopsie:x:106:110::/nonexistent:/bin/false
kernoops:x:107:65534:Kernel Oops Tracking Daemon,,,:/:/bin/false
rtkit:x:108:114:RealtimeKit,,,:/proc:/bin/false
speech-dispatcher:x:109:29:Speech Dispatcher,,,:/var/run/speech-dispatcher:/bin/sh
lightdm:x:110:116:Light Display Manager:/var/lib/lightdm:/bin/false
avahi:x:111:118:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/bin/false
pulse:x:113:121:PulseAudio daemon,,,:/var/run/pulse:/bin/false
hplip:x:114:7:HPLIP system user,,,:/var/run/hplip:/bin/false
saned:x:115:123::/home/saned:/bin/false
crifan:x::crifan li,,,:/home/crifan:/bin/bash
crifan2013:x::crifan li 2013,,,:/home/crifan2013:/bin/bash
crifan@ubuntu:/opt$   【总结】至此,还是没有实现要的效果:可以将普通用户crifan变成sudo(超级用户),使得,每次做任何操作,都,本身已有sudo权限,且不用输入sudo。 目前只能实现的效果是:以crifan登陆,无需密码就可以登陆;在crifan使用sudo时,无需输入sudo的密码了;转载请注明: & 与本文相关的文章
18 queries in 0.235 seconds, using 10.86MB memory}

我要回帖

更多关于 ubuntu添加root用户 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信