You are not logged in.
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
How did you move the contents?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Trilby:
cp -r /usr/* /mnt/stor/arch_usrbing different
Offline
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
Seems that for preserving setuid one needs to use --preserve flag. Thanks for the hint, Trilby.
bing different
Offline