LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 10-30-2009, 11:42 PM   #1
comteck123
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Rep: Reputation: 0
System Administrator for Linux


I am very new at Linux (just installed Mandriva 2009 Spring a few days ago). I'm liking it very much so far.
I downloaded a program called DeVeDe, and from going online and reading a few tutorials, I found out how to extract and install the program. I have to use a command called "SUDO" (which I'm sure you're familiar with).
The problem is, when I type "sudo ./install.sh" on the terminal, and I enter my password, it says I'm not on the sudoer list, and it won't let me install the program.
Again, by going online, I was able to find where the the "sudoer" file is on my computer, but I cannot get access to this file.
I am the only user on this system. How do I set myself up to have the privileges to access files such as "sudoer", and to have full System Administrator rights? Did I miss something in the initial install?
Any help would be greatly appreciated.

Thank you.
Travis
 
Old 10-30-2009, 11:52 PM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,593

Rep: Reputation: 162Reputation: 162
You need to use the program:

visudo

To edit the:

sudoers

file. Look for a line like this:

root ALL=(ALL) ALL

and make a line underneath:

<username> ALL=(ALL) ALL
 
Old 10-31-2009, 01:05 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
@comteck123
sudo is used to elevate your privileges temporarily. I'm not familiar with Mandriva, but if you are not in the sudoers list, Mandriva might have a normal root user. If so, use su - (su dash) and login. Navigate to the folder and run the install script without sudo in front of it.

@AwesomeMachine
Don't you need to have root privileges to edit the sudoers file ?
 
Old 10-31-2009, 03:11 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
If you are not on sudoers list then you need to login as root and edit the sudoers file to include the lines AwesomeMachine said.
 
Old 10-31-2009, 04:47 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
But then you don't need sudo anymore
 
Old 10-31-2009, 05:18 AM   #6
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
Login as root from terminal and edit your /etc/sudoers file and you should find a section called

# User privilege specification
root ALL=(ALL) ALL

Just add your username to it

# User privilege specification
root ALL=(ALL) ALL
kdelover ALL=(ALL) ALL


That should work.
 
Old 10-31-2009, 01:56 PM   #7
comteck123
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
First of all, thank you all for your reply.
There are, however, still some issues. First, with Visudo.... I don't have this program on my list of programs to install. If I download it from the internet, and try to install it, wouldn't I run into the same problem I'm having now?
Secondly, how do I login as root? I tried, from the welcome screen, just typing in the word "root" in the username, and the root password. But it comes up with the message "Root logins are not allowed", and it won't let me login under that name. Am I doing this right?
Wim, I did what you said (su - username). It went through as if it was installing, but after every file, it said "Permission Denied".
I'm starting to wonder if the problem is with Mandriva itself.

Thanks again.
Travis
 
Old 10-31-2009, 03:08 PM   #8
comteck123
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AwesomeMachine View Post
You need to use the program:

visudo

To edit the:

sudoers

file. Look for a line like this:

root ALL=(ALL) ALL

and make a line underneath:

<username> ALL=(ALL) ALL

I finally figured out how to open the sudoers file. Under "Configure Your Computer", I clicked on "Manage Users on System", and double clicked on the username. Then, under "Groups" I selected "root".
However, I used visudo to edit the file, but the file doesn't save when I exit. Do you know how to do this?

Thanks again.
 
Old 10-31-2009, 03:58 PM   #9
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,104

Rep: Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815
When you're finished editing, hit the ESC key on your keyboard, type :wq and hit enter. When you type the :wq, you should see it at the bottom left of your screen.
 
Old 11-01-2009, 11:33 AM   #10
comteck123
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
That worked great. I was able to edit (and save) the sudoer file. Thanks again for your help. Where can I get a good tutorial for Mandriva? Or even just Linux?

Travis
 
Old 11-01-2009, 01:20 PM   #11
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
Don't install application that way. Only do it if you have no other way of doing it. Using the source code to install an application is intended for developer, not end users.

Take a look at urpmi and software repository for mandriva. You will discover that something called RPM exist and are on click installer for software.
 
Old 11-06-2009, 06:00 PM   #12
comteck123
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks again for the replies. I checked out URPMI, but it made no sense to me. Is this something I download, or install?
As well, how then do I use it to install a program such as devede?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux System Administrator Wanted tnajobs LQ Job Marketplace [Archive] 11 04-19-2010 02:27 PM
Linux System Administrator Job - Should I Take It? ECRocker General 10 08-10-2009 07:52 PM
Linux: Funny System Administrator Daveyon General 6 02-06-2009 03:39 PM
Linux Build Engineer Vs System Administrator emailssent General 7 12-06-2008 11:19 PM
Linux System Administrator Needed! BernardHodes LQ Job Marketplace [Archive] 0 10-18-2007 03:57 PM


All times are GMT -5. The time now is 06:51 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration