LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to get root acces (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-get-root-acces-4175555649/)

rene-64 10-08-2015 03:42 PM

unable to get root acces
 
I'm unable to get root access on Mageia 5, how do I get it?

normanlinux 10-08-2015 04:02 PM

many distributions now use sudo instead. Try sudo somecommand. For a root shell try sudo sh

sudo will prompt for YOUR password

Emerson 10-08-2015 04:39 PM

For root shell sudo -s, for root shell with root environment sudo -i.

normanlinux 10-08-2015 04:56 PM

Quote:

Originally Posted by Emerson (Post 5431903)
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

frankbell 10-08-2015 08:12 PM

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.

normanlinux 10-09-2015 06:33 PM

Quote:

Originally Posted by frankbell (Post 5431963)
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.

John VV 10-09-2015 11:30 PM

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 -

a22an 10-10-2015 05:20 AM

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


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