LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-08-2018, 01:39 PM   #1
BurnieS
LQ Newbie
 
Registered: Dec 2018
Posts: 18

Rep: Reputation: Disabled
Linux Mint 19 Root login (full access --- How To)


I would like to Get full access to Mint 19 root. Please no comments about not using it. I have been using full root access since PClinuxOS first came out, that's about fifteen years now.

I would be thankful for help on this.

Thank you BurnieS
 
Old 12-08-2018, 01:44 PM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
You would need to edit out the unknown root password in /etc/shadow and then log in as root and set a new password. I'm not sure if you can do this in a running system; you could try with sudo vipw -s. If it doesn't work, then you must boot from a cd, mount your root partition somewhere and edit the shadow file from there.
 
1 members found this post helpful.
Old 12-08-2018, 01:46 PM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
You don't have root access because nothing happened during installation to assign root a passwd, so, assign root a passwd. It's the first thing I do after logging into a new Mint or *buntu installation.

Last edited by mrmazda; 12-08-2018 at 01:47 PM.
 
1 members found this post helpful.
Old 12-08-2018, 02:00 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Welcome to LinuxQuestions.

Many distributions do not disable root account by default so nothing wrong except if you are logging in as root as your regular user.

Since Mint is derived from Ubuntu it uses their model.
https://help.ubuntu.com/community/RootSudo

As stated to enable root assign it a password

sudo passwd root

Last edited by michaelk; 12-08-2018 at 02:01 PM.
 
1 members found this post helpful.
Old 12-09-2018, 03:14 AM   #5
BurnieS
LQ Newbie
 
Registered: Dec 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
I think what I'll do is as mrmazda does. I prefer to have full access to the system, sudo can be just as destructive as full root and I see no use to it (my opinion). I suppose a little search will give me full instructions as how to do it.

This has been very helpfull thank you every one

BurnieS
 
Old 12-09-2018, 07:56 AM   #6
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Quote:
Originally Posted by BurnieS View Post
I suppose a little search will give me full instructions as how to do it.
@michaelk already gave you "full instructions":

Code:
sudo passwd root
(This is taken directly from the official Ubuntu documentation.)
 
1 members found this post helpful.
Old 12-09-2018, 09:20 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Wow! That's a much simpler way to do it. Trust me to think up something complicated!
 
Old 12-09-2018, 03:14 PM   #8
BurnieS
LQ Newbie
 
Registered: Dec 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
The simplest and quickest way is root (check out PClinuxOS).

Tried sudo passwd root only partly worked. That is why I came on to this forum.

Last edited by BurnieS; 12-09-2018 at 03:19 PM.
 
Old 12-09-2018, 03:52 PM   #9
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Quote:
Originally Posted by BurnieS View Post
Tried sudo passwd root only partly worked.
Can you elaborate what you mean by this statement?
 
1 members found this post helpful.
Old 12-09-2018, 04:41 PM   #10
BurnieS
LQ Newbie
 
Registered: Dec 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
I gained access to root login but nothing worked in it.
Not sure but I think there is a file that has to be edited I think it would be something like (root n to Y)

Last edited by BurnieS; 12-09-2018 at 04:48 PM.
 
Old 12-09-2018, 05:05 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
How did you gain access?

su -
 
Old 12-09-2018, 05:11 PM   #12
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
I think I understand your question now.

The consequence of executing 'sudo passwd root' is as follows:

Whereas you formerly logged in as root with your user's password and executing this command:

Code:
sudo -i
Now you can log in as root with the root password instead, by executing:

Code:
su
or:

Code:
su -
(To find out as which user you're operating now, execute the command whoami.)
 
Old 12-09-2018, 05:27 PM   #13
BurnieS
LQ Newbie
 
Registered: Dec 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
I am not going in through user I set root passwd log out log in as root it enters root desktop and stops there

I would like to fully log into root and get rid of sudo completely

The way it is in PClinuxOS

Yes this Works

Last edited by BurnieS; 12-22-2018 at 09:59 PM.
 
Old 12-09-2018, 05:56 PM   #14
BurnieS
LQ Newbie
 
Registered: Dec 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
I think i found it I was only giving root a passwd it also has to be unlocked


So, first execute in a terminal

sudo passwd root

you will be prompted for a new Unix password. Write it twice (second for confirmation).

Then execute

sudo passwd -u root

to unlock the account. This should return

passwd: password expiry information changed

Hopefully this will do it

Last edited by BurnieS; 12-09-2018 at 05:59 PM.
 
Old 12-09-2018, 06:00 PM   #15
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Quote:
Originally Posted by BurnieS View Post
I am not going in through user I set root passwd log out log in as root it enters root desktop and stops there

I would like to fully log into root and get rid of sudo completely

The way it is in PClinuxOS
I've never used PClinuxOS but I hear good things.

Let me know if there are any specific commands or tasks you want to try with the 'snowpine method.' (log in as root using 'sudo -i' or 'su -')
 
  


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
[SOLVED] Disable remote root access but allow local root access-- possible? bskrakes Linux - Security 4 02-21-2019 04:02 PM
Mint 18 Full disk encryption VS Veracrypt Full Disk encryption: Help a Noob Decide Please ! APeacefulRig Linux - Security 2 11-11-2016 08:10 AM
RHEL4 root directory says full but sum of use is nowhere near full. Why? SteveInTallyFL Linux - Server 11 02-05-2009 05:45 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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

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