View previous topic :: View next topic |
Author |
Message |
Taigo n00b
Joined: 09 Nov 2022 Posts: 71 Location: the Netherlands
|
Posted: Tue Jan 23, 2024 11:48 am Post subject: Messed up root file permissions (i think) |
|
|
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 |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Tue Jan 30, 2024 6:40 pm Post subject: |
|
|
plz try
Code: |
sudo emerge -1av pam pambase sudo @system
|
and plz consider backing up regularly,maybe before each update. _________________
|
|
Back to top |
|
|
Taigo n00b
Joined: 09 Nov 2022 Posts: 71 Location: the Netherlands
|
Posted: Tue Feb 13, 2024 11:47 am Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21644
|
Posted: Tue Feb 13, 2024 4:06 pm Post subject: |
|
|
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 |
|
|
|