
私のオペレーティングシステムはdebian8です。
cat /etc/group |grep 'debian8'
root:x:0:debian8
debian8:x:1000:
debian8 はルートグループのメンバーです。
cat /etc/sudoers
root ALL=(ALL:ALL) ALL
%sudo ALL=(ALL:ALL) ALL
debian8 ALL=(ALL:ALL)ALL
debian8はrootでどんなコマンドでも実行できます。
root@hwy:/home/debian8# find / -name 'vimrc'
/home/debian8/openwrt/feeds/packages/utils/vim/files/vimrc
/root/openwrt/feeds/packages/utils/vim/files/vimrc
/usr/share/vim/vimrc
/etc/vim/bundle/Vundle.vim/test/vimrc
/etc/vim/bundle/vundle/test/vimrc
/etc/vim/vimrc
出力がありませんCannot chdir into mountpoint
。
root@hwy:/home/debian8# sudo find / -name 'vimrc'
Cannot chdir into mountpoint.
/home/debian8/openwrt/feeds/packages/utils/vim/files/vimrc
/root/openwrt/feeds/packages/utils/vim/files/vimrc
/usr/share/vim/vimrc
/etc/vim/bundle/Vundle.vim/test/vimrc
/etc/vim/bundle/vundle/test/vimrc
/etc/vim/vimrc
Cannot chdir into mountpoint.
root@hwy:/home/debian8# su debian8
debian8@hwy:~$ sudo find / -name 'vimrc'
[sudo] password for debian8:
Cannot chdir into mountpoint.
/home/debian8/openwrt/feeds/packages/utils/vim/files/vimrc
/root/openwrt/feeds/packages/utils/vim/files/vimrc
/usr/share/vim/vimrc
/etc/vim/bundle/Vundle.vim/test/vimrc
/etc/vim/bundle/vundle/test/vimrc
/etc/vim/vimrc
Cannot chdir into mountpoint.
Cannot chdir into mountpoint
最後の2つのケースの出力。
なぜ2行の出力がありますか Cannot chdir into mountpoint.
?
@Julie、それは私が得たものです。
debian8@hwy:~$ cd /tmp
debian8@hwy:/tmp$ cd
出力がありません。
debian8@hwy:~$ cd /tmp
debian8@hwy:/tmp$ sudo bash -c "cd /"
Cannot chdir into mountpoint.
Cannot chdir into mountpoint.
今、2行の出力があります。 Cannot chdir into mountpoint.
root@hwy:~# cd /tmp
root@hwy:/tmp# sudo su -;
Signature not found in user keyring
Perhaps try the interactive 'ecryptfs-mount-private'
Signature not found in user keyring
Perhaps try the interactive 'ecryptfs-mount-private'
答え1
ecryptfs-setup-private コマンドを使用して、ルートで ecryptfs を設定した可能性があります。この場合、システムは /root/Private /root/.Private および /root/.ecryptfs を生成しました。この場合は、慎重に元に戻すだけです。
- ターミナルから再びルートになります。
数
- 次に、ルートタイプに対して次のことを行います。
ecryptfs-setup-private - 元に戻す
- 次のコマンドを実行して取得した手順に従います。
ユーザーデータを削除してユーザーへのアクセス権を取得したくない場合は、rootをユーザー名に置き換えないように注意してください。あなたのユーザーはrootではありません!この手順を実行するには、root権限だけが必要です!
答え2
Grochmarが答えを言った。
find / -mount -name vimrc
以下はいくつかのセキュリティ層です。