Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LiveCD root access to previously installed system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
LIsLinuxIsSogood
l33t
l33t


Joined: 13 Feb 2016
Posts: 967

PostPosted: Mon Dec 18, 2017 6:36 pm    Post subject: LiveCD root access to previously installed system Reply with quote

Why does the su from on my installation of linux grant access with no password when doing this from the live cd. In other words the steps I took were to boot into live CD and then mount the local disk, and followed a few more mounts to access the system as I normally would otherwise, but this time from within a chroot environment. I am looking for help on securing the access that should normally does require a password to get root access there. Does this mean that anyone with their own root access on another system can easily gain access to root on mine!!!!?!!??
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42559
Location: 56N 3W

PostPosted: Mon Dec 18, 2017 6:56 pm    Post subject: Reply with quote

LIsLinuxIsSogood,

When you boot the liveCD, you are already root.
You need to be root to do the mount and chroot steps.

Once in the chroot you are still root. Try
Code:
whoami
and watch for the $ or # prompt.
Its OK to su to the same user as you already are.

Once in the chroot,
Code:
su LIsLinuxIsSogood
then su to root.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum