LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't Execute Commands as sudo Nor Access Sudoers File in Mandriva 2010.1 (http://www.linuxquestions.org/questions/linux-newbie-8/cant-execute-commands-as-sudo-nor-access-sudoers-file-in-mandriva-2010-1-a-826568/)

gdawg 08-16-2010 12:10 PM

Can't Execute Commands as sudo Nor Access Sudoers File in Mandriva 2010.1
 
Hi everybody, since a recent upgrade to Mandriva 2010.1 I am not able to 'sudo' as administrator or when I use the 'root' password. I am the only user on this machine (Dell Inspiron 530S multi-booted with Window's Vista Home Premium, Ubuntu 10.4, and Mandriva 2010.1). I can get into the 'Manage Users' section of the control center by authenticating as 'root' but I can't access 'sudoers file' from command line. Any help will be greatly appreciated.

lukav 08-16-2010 12:30 PM

have you tried the command "su" to drop into root?

chrism01 08-16-2010 11:23 PM

Actually, you'll need
Code:

su -
the '-' gives you root's env inc $PATH; otherwise you retain your own even though logged in as root.
The cmd to configure sudo users is

visudo

as root etc..

gdawg 08-17-2010 12:52 AM

Thank you lukav and chrism01, I'll try it and will report back.

gdawg 08-17-2010 01:32 PM

Thank you all for your help. 'su -' worked great. I'm now studying 'vim tutorial' so I can learn to edit files. I really appreciate your help. Thanks again.


All times are GMT -5. The time now is 05:22 AM.