Chinaunix首页 | 论坛 | 博客
  • 博客访问: 453474
  • 博文数量: 150
  • 博客积分: 2706
  • 博客等级: 少校
  • 技术积分: 1200
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-09 11:41
文章分类

全部博文(150)

文章存档

2012年(7)

2011年(6)

2010年(68)

2009年(69)

我的朋友

分类: LINUX

2009-11-09 15:21:26

在安装ltib时,出现错误:
password for ltib:

This means you don't have sudo permission to execute rpm commands as root
without a password.  This is needed for this build script to operate correctly.

To configure this, as root using the command "/usr/sbin/visudo",
and add the following line in the User privilege section:

ltib ALL = NOPASSWD: /bin/rpm, /opt/freescale/ltib/usr/bin/rpm
 
或者
xxx is not in the sudoers file
用sudo时提示"xxx is not in the sudoers file. This incident will
be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用
sudo,我们只要修改一下/etc/sudoers文件就行了。
 
下面是修改方法:
1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,
输入密码后就进入了超级用户模式。(当然,你也可以直接用root用)
2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3)编辑/etc/sudoers文件。也就是输入命令"vim /etc/sudoers",输
入"i"进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添
加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先按
一 下Esc键,然后输入":wq")退出。
4)撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
阅读(906) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~