LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2010, 12:10 PM   #1
gdawg
Member
 
Registered: Jul 2010
Location: USA, New Mexico
Distribution: Several
Posts: 71

Rep: Reputation: 0
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.
 
Old 08-16-2010, 12:30 PM   #2
lukav
Member
 
Registered: Sep 2008
Distribution: Slackware & Ubuntu
Posts: 39

Rep: Reputation: 15
have you tried the command "su" to drop into root?
 
1 members found this post helpful.
Old 08-16-2010, 11:23 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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..
 
1 members found this post helpful.
Old 08-17-2010, 12:52 AM   #4
gdawg
Member
 
Registered: Jul 2010
Location: USA, New Mexico
Distribution: Several
Posts: 71

Original Poster
Rep: Reputation: 0
Thank you lukav and chrism01, I'll try it and will report back.
 
Old 08-17-2010, 01:32 PM   #5
gdawg
Member
 
Registered: Jul 2010
Location: USA, New Mexico
Distribution: Several
Posts: 71

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless network access under Mandriva 2010 Free nightrider Mandriva 2 04-22-2010 06:36 AM
installing a tar.gz file on mandriva 2010 Mompy Linux - Newbie 1 01-31-2010 06:34 PM
LXer: Quick how-to sudoers file (sudo command) LXer Syndicated Linux News 0 11-25-2007 01:50 AM
how to create execute file for linux telnet commands siva karthik Programming 7 03-10-2006 12:50 AM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration