You are not logged in.

#1 2015-05-14 21:29:31

nbd
Member
Registered: 2014-08-04
Posts: 389

[SOLVED] sudoedit: /usr/bin/sudoedit must be owned by uid 0

I tried to mount /usr from a different location in read-only mode and moved /usr from the root ext4 partition to another disk with btrfs filesystem. After I mounted it with 'ro' flag, 'sudo' and 'sudoedit' have ceased to work and return error messages when called:

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

What can be the cause of this problem?

Last edited by nbd (2015-05-14 22:32:26)


bing different

Offline

#2 2015-05-14 21:35:48

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

Re: [SOLVED] sudoedit: /usr/bin/sudoedit must be owned by uid 0

How did you move the contents?


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

Offline

#3 2015-05-14 21:48:35

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED] sudoedit: /usr/bin/sudoedit must be owned by uid 0

Trilby:

cp -r /usr/* /mnt/stor/arch_usr

bing different

Offline

#4 2015-05-14 21:53:47

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

Re: [SOLVED] sudoedit: /usr/bin/sudoedit must be owned by uid 0

That's the problem, you're going to be missing a lot of file attributes and likely several sym links as cp does not copy these without additional flags.  Read `man cp' - it's short.  Also rsync would probably be a better way of copying a system.


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

Offline

#5 2015-05-14 21:54:13

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED] sudoedit: /usr/bin/sudoedit must be owned by uid 0

Seems that for preserving setuid one needs to use --preserve flag. Thanks for the hint, Trilby.


bing different

Offline

Board footer

Powered by FluxBB