LinuxQuestions.org
Help answer threads with 0 replies.
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-08-2015, 04:42 PM   #1
rene-64
LQ Newbie
 
Registered: Sep 2015
Posts: 2

Rep: Reputation: Disabled
unable to get root acces


I'm unable to get root access on Mageia 5, how do I get it?
 
Old 10-08-2015, 05:02 PM   #2
normanlinux
Member
 
Registered: Apr 2013
Location: S.E. England
Distribution: Arch
Posts: 161

Rep: Reputation: Disabled
many distributions now use sudo instead. Try sudo somecommand. For a root shell try sudo sh

sudo will prompt for YOUR password
 
Old 10-08-2015, 05:39 PM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,729

Rep: Reputation: Disabled
For root shell sudo -s, for root shell with root environment sudo -i.
 
Old 10-08-2015, 05:56 PM   #4
normanlinux
Member
 
Registered: Apr 2013
Location: S.E. England
Distribution: Arch
Posts: 161

Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
For root shell sudo -s, for root shell with root environment sudo -i.
sudo -s is superfluous. You get a root shell with or without it.

Beware of distributions which may not give a login shell for root in /etc/passwd - for they will barf on sudo -i
 
Old 10-08-2015, 09:12 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,085
Blog Entries: 27

Rep: Reputation: 5245Reputation: 5245Reputation: 5245Reputation: 5245Reputation: 5245Reputation: 5245Reputation: 5245Reputation: 5245Reputation: 5245Reputation: 5245Reputation: 5245
I've always used su in a terminal to gain root access on Mageia with no problems whatsoever.

As far as I know, Mageia does not automatically configure the sudoers file; that's pretty restricted to Ubuntu and its variants.

Last edited by frankbell; 10-08-2015 at 09:15 PM.
 
Old 10-09-2015, 07:33 PM   #6
normanlinux
Member
 
Registered: Apr 2013
Location: S.E. England
Distribution: Arch
Posts: 161

Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
As far as I know, Mageia does not automatically configure the sudoers file; that's pretty restricted to Ubuntu and its variants.
Yeah, I use su on my Arch system. I never did like the misuse of sudo and the sudoers file. It wasn't intended to replace su altogether. It was a great way to allow certain people - or groups of people - limited root privileges for specific tasks.
 
Old 10-10-2015, 12:30 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,507

Rep: Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618
even on Debain 7 and 8 i use
"su" and " su - "

on multi user set ups where there can be a few techs in the same office sudo is great
but normally su and su -
 
Old 10-10-2015, 06:20 AM   #8
a22an
LQ Newbie
 
Registered: Oct 2015
Location: front of laptop
Distribution: opensuse
Posts: 18

Rep: Reputation: Disabled
in ubuntu desktop i use:
1- sudo -i
add pwassward of user
2- passwd
add password of root user

so you are now a root
 
  


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
DNS (domain) unable to acces from LAN fritz001 Linux - Networking 4 10-14-2006 04:14 PM
unable to acces internet after recompiling my kernel venkatesh111 Linux - Networking 1 05-08-2006 06:11 AM
unable to acces the out side network. tamilananadrew Linux - Networking 1 06-04-2004 02:43 AM
Root acces to multiple users BoldKiller Linux - Security 7 01-14-2004 09:55 AM
Only root can acces this partition!? benjalien Mandriva 3 10-30-2003 11:30 PM

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

All times are GMT -5. The time now is 10:05 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