深度终端与隐藏属性命令chattr
Tofloor
poster avatar
shyandtry
deepin
2014-08-23 19:19
Author
chattr 命令不能执行,本人小白,求大神解释,最近再看《鸟哥的私房菜》
Reply Favorite View the author
All Replies
cxbii
deepin
2014-08-25 06:04
#1
命令前面带 sudo 试试,这个命令需要root权限
Reply View the author
shyandtry
deepin
2014-08-25 23:39
#2
输入sudo命令后需要输入密码,可是之前我并没有创建root密码,有默认密码么?之前创建过一个管路员账户,输入那个密码提示认证失败。
Reply View the author
ArthurDeepin
deepin
2014-08-25 23:58
#3
输入sudo命令后需要输入密码,可是之前我并没有创建root密码,有默认密码么?之前创建过一个管路员账户,输入那个密码提示认证失败。
难道不是你开机登陆时的密码?盲打,回车。
Reply View the author
SunnyYuu
deepin
2014-08-26 01:27
#4
sudo时要输入的密码就是你管理员开机的密码,反正我的只有一个用户,就是同样的密码.
Reply View the author
kaenry5820
deepin
2014-08-26 04:06
#5
输入sudo命令后需要输入密码,可是之前我并没有创建root密码,有默认密码么?之前创建过一个管路员账户,输入那个密码提示认证失败。
一般桌面Linux系统是默认给root没有密码的,想用root就先设置密码就可以了:
sudo passwd root;   然后输入你自己账号的密码再重新设置root密码就可以了
Reply View the author
cxbii
deepin
2014-08-26 23:38
#6
输入sudo命令后需要输入密码,可是之前我并没有创建root密码,有默认密码么?之前创建过一个管路员账户,输入那个密码提示认证失败。
sudo使用的密码并非真的是root密码,盲打你当前账户的密码后回车就好了
有兴趣的话,可以查查sudo 的原理
Reply View the author
shyandtry
deepin
2014-08-30 01:56
#7
感谢5楼,问题已解决
Reply View the author
shyandtry
deepin
2014-08-30 02:12
#8
回复6楼,你说的那个是切换账户时的做法。我做过了。
Reply View the author
BertGeek
deepin
2014-08-30 19:20
#9
ubuntu版本及衍生版本,默认登录都是普通权限,如果需要root权限,需要进行设置:
1、打开终端窗口;

2、sudo passwd root ,回车后,根据提示为管理员root账号设置密码
Reply View the author