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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-30-2009, 10:42 PM
|
#1
|
LQ Newbie
Registered: Oct 2009
Posts: 5
Rep:
|
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
|
|
|
10-30-2009, 10:52 PM
|
#2
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
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
|
|
|
10-31-2009, 12:05 AM
|
#3
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
@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 ?
|
|
|
10-31-2009, 02:11 AM
|
#4
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
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.
|
|
|
10-31-2009, 03:47 AM
|
#5
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
But then you don't need sudo anymore 
|
|
|
10-31-2009, 04:18 AM
|
#6
|
Member
Registered: Aug 2009
Posts: 311
Rep:
|
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.
|
|
|
10-31-2009, 12:56 PM
|
#7
|
LQ Newbie
Registered: Oct 2009
Posts: 5
Original Poster
Rep:
|
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
|
|
|
10-31-2009, 02:08 PM
|
#8
|
LQ Newbie
Registered: Oct 2009
Posts: 5
Original Poster
Rep:
|
Quote:
Originally Posted by AwesomeMachine
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.
|
|
|
10-31-2009, 02:58 PM
|
#9
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,318
|
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.
|
|
|
11-01-2009, 10:33 AM
|
#10
|
LQ Newbie
Registered: Oct 2009
Posts: 5
Original Poster
Rep:
|
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
|
|
|
11-01-2009, 12:20 PM
|
#11
|
Member
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825
Rep: 
|
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.
|
|
|
11-06-2009, 05:00 PM
|
#12
|
LQ Newbie
Registered: Oct 2009
Posts: 5
Original Poster
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 02:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|