You are not logged in.

#1 2023-03-03 17:39:20

nphuracm
Member
From: China
Registered: 2022-07-16
Posts: 69

I f*cked up elevation on a portable Arch install I am doing

Now.
I am installing Arch on a portable SSD.
For the permission elevation part I chose doas first to do the job, but after I got my desktop environment to finally work (basically by switching from linux-lts419 4.19.257 to linux 6.2.1) I got this:

doas: not installed setuid

Then I tried sudo and I got this: [translated]

sudo: Effective user ID not 0, is /usr/bin/sudo located in a file system with "nosuid" option or an NFS file system without root permissions?

I tried meddling with the permissions a bit and now:

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

The method I have tried is pretty much trying to fix the ownerships (set to root:root) and permissions (4755).
I even tried doing so recursively over the /etc and /usr directories but still no luck. Do I have to nuke everything and start over or is there a way to fix this?

Last edited by nphuracm (2023-03-03 17:43:09)

Offline

#2 2023-03-03 19:32:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,471
Website

Re: I f*cked up elevation on a portable Arch install I am doing

Stop flailing aimlessly or you'll do yet more damage.  Making the entire /usr directory setuid root:root however is such a dangerously horrible idea that I would say starting from scratch would be called for (especially if this includes a DE as you state which likely means a web browser is included).

But when you reinstall, diagnose the actual issue and read the error message.  Is /usr/bin on a filesystem that is either mounted nosuid, or otherwise does not support the relevant permissions?

Last edited by Trilby (2023-03-03 19:32:54)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-03-03 21:09:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,653

Re: I f*cked up elevation on a portable Arch install I am doing

Moving to Newbie Corner


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB