0

My os is debian8.

cat /etc/group |grep 'debian8'
root:x:0:debian8
debian8:x:1000:

debian8 is the member of root group.

cat /etc/sudoers
root    ALL=(ALL:ALL) ALL
%sudo   ALL=(ALL:ALL) ALL
debian8  ALL=(ALL:ALL)ALL

debian8 can execute any commands as 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

No Cannot chdir into mountpoint output.

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 output for the last two situation.
Why there are two lines output Cannot chdir into mountpoint. ?
@Julie,here is what i get .

debian8@hwy:~$ cd  /tmp
debian8@hwy:/tmp$ cd

Nothing output.

debian8@hwy:~$ cd /tmp
debian8@hwy:/tmp$ sudo bash -c "cd /"
Cannot chdir into mountpoint.
Cannot chdir into mountpoint.    

Now there are two lines output 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'
  • Do both cd / or sudo bash -c "cd /" give you the same error? – Julie Pelletier Aug 15 '16 at 1:20
  • How about sudo su -; cd /; ls? You may need to exit from that new shell after the test. – Julie Pelletier Aug 15 '16 at 2:11
  • 2
    @techraf: I think the problem is related to the UID imposed by another security level such as an encrypted FS. – Julie Pelletier Aug 15 '16 at 2:55
0

grochmal tells the answer.

find / -mount -name vimrc 

It is some security layer.

|improve this answer|||||
  • I think grochmal (in your now-deleted answer) simply referred back to Julie's earlier comment on this question. – Jeff Schaller Aug 20 '16 at 2:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.