解决问题:Cannot run byobu because [root] does not own [/root]

问题

Cannot run byobu because [root] does not own [/root]

➜  / ll
total 80K
drwxr-xr-x   2 root root 4.0K May 17 14:26 bin
drwxr-xr-x   3 root root  16K Jan  1  1970 boot
drwxr-xr-x  15 root root 3.7K Feb 11  2016 dev
drwxr-xr-x  94 root root 4.0K May 20 11:57 etc
drwxr-xr-x   4 root root 4.0K Mar 28  2017 home
drwxr-xr-x  19 root root 4.0K May 17 14:25 lib
drwx------   2 root root 4.0K Jan  1  1970 lost+found
drwxr-xr-x   2 root root 4.0K Oct 21  2015 media
drwxr-xr-x   4 root root 4.0K May 11 09:34 mnt
drwxr-xr-x   3 root root 4.0K May 11 09:31 opt
dr-xr-xr-x 113 root root    0 Jan  1  1970 proc
drwxr-xr-x  15 1002 sudo 8.0K May 27 02:21 root
drwxr-xr-x  21 root root  640 May 26 23:45 run
drwxr-xr-x   2 root root 4.0K May 17 14:25 sbin
drwxr-xr-x   2 root root 4.0K Oct 21  2015 srv
dr-xr-xr-x  12 root root    0 May 27 02:16 sys
drwxrwxrwt   8 root root 4.0K May 26 13:44 tmp
drwxr-xr-x  11 root root 4.0K Oct 10  2017 usr
drwxr-xr-x  11 root root 4.0K Jun 21  2016 var
drwxr-xr-x   2 root root 4.0K May 17 13:04 xsz
➜  / byobu
Cannot run byobu because [root] does not own [/root]
➜  / sudo byobu
Cannot run byobu because [root] does not own [/root]
To run byobu under sudo, you MUST use 'sudo -H'
➜  /
➜  / su
➜  / byobu
Cannot run byobu because [root] does not own [/root]
➜  /
➜  /

解决方法

执行 chown -R root root后解决,可以运行byobu了。

➜  / chown -R root root
➜  / ll
total 80K
drwxr-xr-x   2 root root 4.0K May 17 14:26 bin
drwxr-xr-x   3 root root  16K Jan  1  1970 boot
drwxr-xr-x  15 root root 3.7K Feb 11  2016 dev
drwxr-xr-x  94 root root 4.0K May 20 11:57 etc
drwxr-xr-x   4 root root 4.0K Mar 28  2017 home
drwxr-xr-x  19 root root 4.0K May 17 14:25 lib
drwx------   2 root root 4.0K Jan  1  1970 lost+found
drwxr-xr-x   2 root root 4.0K Oct 21  2015 media
drwxr-xr-x   4 root root 4.0K May 11 09:34 mnt
drwxr-xr-x   3 root root 4.0K May 11 09:31 opt
dr-xr-xr-x 115 root root    0 Jan  1  1970 proc
drwxr-xr-x  15 root sudo 8.0K May 27 02:24 root
drwxr-xr-x  21 root root  640 May 26 23:45 run
drwxr-xr-x   2 root root 4.0K May 17 14:25 sbin
drwxr-xr-x   2 root root 4.0K Oct 21  2015 srv
dr-xr-xr-x  12 root root    0 May 27 02:16 sys
drwxrwxrwt   8 root root 4.0K May 26 13:44 tmp
drwxr-xr-x  11 root root 4.0K Oct 10  2017 usr
drwxr-xr-x  11 root root 4.0K Jun 21  2016 var

version info

➜  / lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:        16.04
Codename:       xenial
➜  / cat /proc/version
Linux version 4.14.0 (root@wwd) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #25 SMP Fri May 11 16:57:53 CST 2018
➜  /
➜  / uname -a
Linux NanoPi-NEO2 4.14.0 #25 SMP Fri May 11 16:57:53 CST 2018 aarch64 aarch64 aarch64 GNU/Linux
➜  /

ARM CPU info:

➜  / cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

Hardware        : Allwinnersun50iw2Family
Revision        : 0000
Serial          : 0000000000000000

猜你喜欢

转载自my.oschina.net/SamXIAO/blog/1819364