Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Messed up root file permissions (i think)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Taigo
n00b
n00b


Joined: 09 Nov 2022
Posts: 71
Location: the Netherlands

PostPosted: Tue Jan 23, 2024 11:48 am    Post subject: Messed up root file permissions (i think) Reply with quote

I'm not a 100% sure this is the right category but it's closest i can find. I was installing LFS (Linux from scratch) for fun using my main Gentoo install on my laptop. But when I tought i went to the part where you are isolated from the main system i noticed my power button was gone and i could no longer run sudo. I tought it was that i messed up the permissions where i accedentially give lfs user my system root permissions instead of the mount root, in the root folders but they are all owned by root and the issue is still there. I managed to fix the sudo command but i also can't switch user to root anymore in a terminal it just tells me access denied. I don't know what else could be going on. I installed a temporary debian installation alongside my gentoo installation so that i can continue my college work but maybe it could be useful for chrooting into the system and solving problems that way if thats how you could maybe help it out.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Jan 30, 2024 6:40 pm    Post subject: Reply with quote

plz try
Code:

sudo emerge -1av pam pambase sudo @system

and plz consider backing up regularly,maybe before each update.
_________________
:)
Back to top
View user's profile Send private message
Taigo
n00b
n00b


Joined: 09 Nov 2022
Posts: 71
Location: the Netherlands

PostPosted: Tue Feb 13, 2024 11:47 am    Post subject: Reply with quote

alamahant wrote:
plz try
Code:

sudo emerge -1av pam pambase sudo @system

and plz consider backing up regularly,maybe before each update.

It did not fix it, im thinking about backing up my home directory and just reinstalling the OS
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21644

PostPosted: Tue Feb 13, 2024 4:06 pm    Post subject: Reply with quote

Since the original post provides no direct description of what was changed, and only one error message which can have many causes, our ability to help with this is very limited.
  • Does a login as root on the tty work?
  • What is written to the system log when sudo fails?
  • What is the full output on the terminal from /usr/bin/sudo -i, when run from a user that ought to have working sudo access (but does not)?
  • What is the output of namei -l /etc/passwd /etc/shadow?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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