LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-18-2006, 03:39 AM   #1
TheOnes
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Rep: Reputation: 0
Sudo i Mandriva 2007


When im installing Mandriva 2007, everything works great.

But when Im installing something and write for exampel:

"sudo makeinstall" and it popup ups that I should write my sudo password, only one BIG problem. When Im installing the OS I dont get the question about set a sudo pass!! Im so confuside.. :S

How can I finde out what my sudo pass is?

//Adrian Larsson..

P.S Im from Sweden so sorry for bad english.

 
Old 10-18-2006, 05:00 AM   #2
monolegis
Member
 
Registered: Apr 2004
Location: Norway
Distribution: Mandriva 2007.1 powerpack
Posts: 47

Rep: Reputation: 15
Don't you have the administrator password?

At the install, didn't you get this picture?

If you know your admin password try to just change to root before you do make.

su (press enter)
type in your password and press enter
then do make.

I didn't even know you could do a sudo in mandriva..

Lykke til
 
Old 10-18-2006, 07:24 AM   #3
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
sudo password should be nothing but your own login password, however for a user to do sudo, the name should figure in /etc/sudoers file as shown below

root ALL=(ALL) ALL
username ALL=(ALL) ALL

The /etc/sudoers file can be edited only with the command
visudo -f /etc/sudoers

(press i to insert, esc & wq to save, ZZ to quit editing)
 
Old 10-18-2006, 09:19 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Mandriva does not use sudo like Ubuntu. It uses a classical root account, so do something like
Code:
#su -c "make install"
Enter the root password when prompted.
 
Old 10-18-2006, 09:55 AM   #5
TheOnes
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Thx for the hints!
 
Old 10-19-2006, 06:19 AM   #6
Sabinou
Member
 
Registered: Jan 2006
Location: France
Distribution: Debian Wheezy, Webmin + Virtualmin (remote dedi)
Posts: 214

Rep: Reputation: 30
Thanks for the sudoers info, that might be why sudo never worked on my system before, even when I provided the correct root password ^^
I've been using kdesu instead eversince because of that.
 
Old 10-19-2006, 06:49 AM   #7
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
A very good article on su, su -c, and sudo for mandriva

http://club.mandriva.com/xwiki/bin/view/KB/AdminAroot2
 
Old 11-10-2006, 11:24 PM   #8
shame
Member
 
Registered: Apr 2006
Location: England
Distribution: Debian Sidux - openSUSE
Posts: 261

Rep: Reputation: 30
Can I just clarify something here?
I have set up sudo on various distros, including mandriva and I noticed that with some it asks for my own password and others it asks for the root password.
Looking through some of my sudoers files, a couple I have the %wheel ALL=(ALL) ALL and others I have username ALL=(ALL) ALL.
So is that the difference? %wheel = root password and username = user password?
 
Old 11-11-2006, 03:11 AM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I am not sure what could be causing that behaviour for you, but as far as I know, username ALL=(ALL) ALL usually asks you for your own password and not roots. In Linux, if you are in the wheel group, you can run any commands (including those that are normally reserved just for root) without entering a password. On other Unix OSes e.g. FreeBSD, if you are in the wheel group, it means that you are allowed to use "su" or "su -" in order to switch to root. Everyone else who is not in the wheel group cannot switch to root.
 
  


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
Mandriva 2007 and LinDVD hand of fate Mandriva 31 04-28-2008 08:33 PM
Mandriva 2007 Info! Cobra243 Mandriva 3 10-06-2006 05:47 PM
Mandriva 2007 and Slackware 11.0 Out! w3bd3vil Mandriva 14 10-06-2006 09:32 AM
Help MANDRIVA 2007 RC3 maprx Mandriva 3 09-27-2006 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:28 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
Open Source Consulting | Domain Registration