fedora14泪流满面啊,终端su后不能输入密码,十万火急

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

fedora14泪流满面啊,终端su后不能输入密码,十万火急

#1

帖子 HardyHeron » 2010-11-15 12:43

[fq@localhost ~]$
[fq@localhost ~]$ su
密码:
bash-4.1#
(((这个bash-4.1.7 是什么东西啊,为什么跑出来这个??提示说selinux avc拒绝,查看selinux新公告又说无具体消息。))

[fq@localhost ~]$ sudo
usage: sudo -h | -K | -k | -L | -V
usage: sudo -v [-AknS] [-g groupname|#gid] [-p prompt] [-u user name|#uid]
usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U user name] [-u
user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p
prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s]
[<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p
prompt] [-u user name|#uid] file ...
[fq@localhost ~]$ sudo yum install vlc

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for fq:
Sorry, try again.
[sudo] password for fq:
Sorry, try again.
[sudo] password for fq:
sudo: 2 incorrect password attempts

自己的密码确定是正确的吧,输入了上百遍了。无奈下这想输入sudo试试。但是sudo这个命令是什么意思,我也不知道
点击阅读--上海小偷的论文 非常希望有人开发linux下的财务软件,x3600 nv310 i5321 nv640
头像
xiaomao101
帖子: 474
注册时间: 2006-04-05 18:12
联系:

Re: fedora14泪流满面啊,终端su后不能输入密码,十万火急

#2

帖子 xiaomao101 » 2010-11-15 14:33

这里貌似是ubuntu论坛哦,:-)
试试看su -
头像
hiphen
帖子: 803
注册时间: 2010-08-27 15:53

Re: fedora14泪流满面啊,终端su后不能输入密码,十万火急

#3

帖子 hiphen » 2010-11-15 15:21

哈哈, fedora没用过
照楼上说的 su - 看看
基础问题,请看入门手册http://people.ubuntu.com/~happyaron/udc-cn/lucid-html/

Acer aspire 4736G / Ubuntu 10.04LTS
Asus eeepc900 / Xandros
Nokia N900 / Maemo 1.2.12
头像
破人破天
帖子: 217
注册时间: 2010-02-27 21:54
联系:

Re: fedora14泪流满面啊,终端su后不能输入密码,十万火急

#4

帖子 破人破天 » 2010-11-15 16:01

su 用法你不知道?
su username
su - 是su root这样可以带bashrc的加载
单纯运行 su
要你su到哪里去哦?

sudo 要wheel组的用户才行的
root------#
gpasswd -a username wheel
头像
HardyHeron
帖子: 461
注册时间: 2007-10-19 14:12

Re: fedora14泪流满面啊,终端su后不能输入密码,十万火急

#5

帖子 HardyHeron » 2010-11-15 17:35

[fq@localhost ~]$ su -
密码:
-bash-4.1#
又出现这个提示,各位救我。
点击阅读--上海小偷的论文 非常希望有人开发linux下的财务软件,x3600 nv310 i5321 nv640
abbott
帖子: 435
注册时间: 2007-07-11 22:45

Re: fedora14泪流满面啊,终端su后不能输入密码,十万火急

#6

帖子 abbott » 2010-11-15 17:41

破人破天 写了:su 用法你不知道?
su username
su - 是su root这样可以带bashrc的加载
单纯运行 su
要你su到哪里去哦?

sudo 要wheel组的用户才行的
root------#
gpasswd -a username wheel


回复一下:

su
就可以跳到root用户, 后面不写任何东西, 默认跳到root.
头像
hiphen
帖子: 803
注册时间: 2010-08-27 15:53

Re: fedora14泪流满面啊,终端su后不能输入密码,十万火急

#7

帖子 hiphen » 2010-11-15 17:58

出现bash-4.1# 这个提示有问题么?
只是你的root帐号下,没有设置自定义的bash提示符而使用默认的而已吧
用过fedora的告诉他
基础问题,请看入门手册http://people.ubuntu.com/~happyaron/udc-cn/lucid-html/

Acer aspire 4736G / Ubuntu 10.04LTS
Asus eeepc900 / Xandros
Nokia N900 / Maemo 1.2.12
abbott
帖子: 435
注册时间: 2007-07-11 22:45

Re: fedora14泪流满面啊,终端su后不能输入密码,十万火急

#8

帖子 abbott » 2010-11-15 18:02

hiphen 写了:出现bash-4.1# 这个提示有问题么?
只是你的root帐号下,没有设置自定义的bash提示符而使用默认的而已吧
用过fedora的告诉他
除非他删除过/root下的东西,,,,
头像
HardyHeron
帖子: 461
注册时间: 2007-10-19 14:12

Re: fedora14泪流满面啊,终端su后不能输入密码,十万火急

#9

帖子 HardyHeron » 2010-11-15 20:04

hiphen 写道:
出现bash-4.1# 这个提示有问题么?
只是你的root帐号下,没有设置自定义的bash提示符而使用默认的而已吧
用过fedora的告诉他

除非他删除过/root下的东西,,,,
((((((((((((((((((用su是成功登录的,现在无法进入,可是以前从来没有这个提示,能不能把它修复好啊。管理用户和组的图形界面。

[fq@localhost ~]$ su
密码:
bash-4.1#
bash-4.1# yum install vlc
已加载插件:fastestmirror, langpacks, presto, refresh-packagekit
点击阅读--上海小偷的论文 非常希望有人开发linux下的财务软件,x3600 nv310 i5321 nv640
头像
HardyHeron
帖子: 461
注册时间: 2007-10-19 14:12

Re: fedora14泪流满面啊,终端su后不能输入密码,十万火急

#10

帖子 HardyHeron » 2010-11-15 20:08

ls 命令查看文件时,rpm包也不会以红色显示了。
点击阅读--上海小偷的论文 非常希望有人开发linux下的财务软件,x3600 nv310 i5321 nv640
头像
hiphen
帖子: 803
注册时间: 2010-08-27 15:53

Re: fedora14泪流满面啊,终端su后不能输入密码,十万火急

#11

帖子 hiphen » 2010-11-15 23:11

提示: 把你fq帐号目录下的 .bash_profile/.profile/.bashrc文件复制到/root目录下,当然,复制之前确认/root目录是否没有这些文件,如果有,自己比较差异,补全
基础问题,请看入门手册http://people.ubuntu.com/~happyaron/udc-cn/lucid-html/

Acer aspire 4736G / Ubuntu 10.04LTS
Asus eeepc900 / Xandros
Nokia N900 / Maemo 1.2.12
头像
HardyHeron
帖子: 461
注册时间: 2007-10-19 14:12

Re: fedora14泪流满面啊,终端su后不能输入密码,十万火急

#12

帖子 HardyHeron » 2010-11-17 16:49

hiphen 写了:提示: 把你fq帐号目录下的 .bash_profile/.profile/.bashrc文件复制到/root目录下,当然,复制之前确认/root目录是否没有这些文件,如果有,自己比较差异,补全
做完你说的之后,
[fq@localhost ~]$ su
密码:
[root@localhost fq]#

但是输入密码之后的反应时间,至少 是以后的10倍,再出现才[root@localhost fq]#
点击阅读--上海小偷的论文 非常希望有人开发linux下的财务软件,x3600 nv310 i5321 nv640
回复