Re: [opensuse] terminal, sudo password problem
On Thu, Oct 23, 2008 at 2:20 AM, Dave Plater <dave.plater@yahoo.co.uk> wrote:
dwain wrote:
On Wed, Oct 1, 2008 at 12:37 AM, Dave Plater <dave.plater@yahoo.co.uk> wrote:
dwain wrote:
On Sun, Sep 28, 2008 at 4:17 AM, Dave Plater <dave.plater@yahoo.co.uk> wrote:
I had a kde/sudo problem a while ago, this is how I repaired the problem extracted from my old listmail:- "I force uninstalled sudo, deleted all trace of sudoers and then reinstalled."
I recall using rpm -e --nodeps sudo-[whatever version you have] and then (just tested it) zypper in sudo to reinstall. To delete all traces of sudoers, I think you have to delete /etc/sudoers only. Find the correct version for sudo with rpm -qa|grep sudo and to be safe do this from a root console or konquerer in super user mode just in case you have problems with the reinstallation of sudo.
how did you force uninstall? in yast?
since sudoers is a root file, how did you delete it?
is the rpm -e ... command the force uninstall?
cheers, dwain
rpm -e is the remove package command but it will complain because other packages depend on sudo, that is why you have to use the --nodeps switch as well to force the removal of the package. Read man 8 rpm for more details or rpm --help. I have just tested this and you simply need the commands rpm -e --nodeps sudo and then zypper in sudo. The rpm -e command removes /etc/sudoers automaticaly. Use a root console to do this, remember you are removing sudo and after it is removed you will not be able to use administrator mode in kde at all. Regards Dave P
dave, i appreciate what you have given me so far, but first, i don't understand why when i sudo under my user name and the root password comes up when i give the root password i get the message "command not found".
second, if i do what you suggest, i still don't know how to zypper sudo back in. i am not familiar with linux so i need you to hold my hand on this one. would you please give me the code to zypper sudo back in after i take it out? thanks, dwain
You need to use the su command which will make you root until you use the exit command. 1) su - then you will be prompted for the root password 2) enter root password after which you will be running as root 3)rpm -e --nodeps sudo 4)zypper ref - just to make sure your repositories are up to date 4)zypper in sudo - will install sudo again 5)exit - to go back to user on the console You should email your messages to the opensuse list as nobody is infallable and if I make a mistake somebody else will pick it up and also somebody with a similar problem can search the mail archives for a solution. I don't use sudo from the command line at all, I use su. Sudo is only needed for kde in my case. Another trick is the keyboard shortcut :- ctrl/alt/F2 which will take you to a console and then log in as root, you return to your GUI with alt/F7 Hope this sorts your problem out. Regards Dave P
thanks dave, i think this will put me on the right road. cheers, dwain -- "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." Benjamin Franklin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
dwain