分页: 1 / 1

Issue of dist-upgrade

发表于 : 2011-06-21 20:03
ysgheping
Hi all,
yesterday, i ran below command and today i could not use sudo, details please see below:

version:
Linux hero-desktop 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21 UTC 2011 i686 GNU/Linux

command i used:
sudo apt-get dist-upgrade

issue :
hero@hero-desktop:~$ sudo apt-get update
[sudo] password for hero:
hero is not in the sudoers file. This incident will be reported.

and i even can not login destop.
can anybody help me out,root account is inactive status.
thanks!

Re: Issue of dist-upgrade

发表于 : 2011-06-21 20:10
nmsfan
首先
su
其次
visudo
将hero添加到文件里
仿照root格式即可

Re: Issue of dist-upgrade

发表于 : 2011-06-21 20:26
tenzu
1, login in command mode
2, input: sudo EDITOR=nano visudo
3, insert: hero ALL=(ALL) ALL
4, press ctrl+x to save
5, reboot

Re: Issue of dist-upgrade

发表于 : 2011-06-21 21:33
ysgheping
Thank very much!
i already get this done.
just like tenzu said, but i used rescue mode.
anyway, thanks for your guy's kindly help.

Re: Issue of dist-upgrade

发表于 : 2011-12-27 14:05
曲径心田
MARK ! Thanks for all !