ubuntu上安装xrdp搭建远程桌面,后面远程桌面是可以了,但是用户目录下生出了一个thinclient_drives文件夹,无论是不是root都不能删除,如果你有强迫症,你就感觉不舒服,一定要删除,下面介绍如何删除。
具体表现如下:
root@i:~# ll
ls: cannot access 'thinclient_drives': Transport endpoint is not connected
total 72
drwx------ 7 root root 4096 Jun 6 09:39 ./
drwxr-xr-x 23 root root 4096 Jun 6 10:16 ../
-rw------- 1 root root 314 Jun 6 09:39 .ICEauthority
-rw------- 1 root root 51 Jun 6 09:39 .Xauthority
-rw-r--r-- 1 root root 3106 Apr 9 2018 .bashrc
drwx------ 2 root root 4096 Jan 29 2018 .cache/
drwx------ 3 root root 4096 Jan 29 2018 .gnupg/
drwx------ 3 root root 4096 Jun 6 09:39 .local/
drwxrwxrwt 2 root root 4096 Jun 6 09:39 .pcsc11/
-rw-r--r-- 1 root root 148 Aug 17 2015 .profile
-rw------- 1 root root 10057 Jan 29 2018 .viminfo
-rw-r--r-- 1 root root 14130 Jun 6 09:39 .xorgxrdp.11.log
-rw------- 1 root root 1554 Jun 6 09:39 .xsession-errors
d????????? ? ? ? ? ? thinclient_drives/
在网上也找了一些删除的方法,比如rm -rf .thinclient_drives,有的又说要改权限,可问题是他的所有者、组用户、读写执行都是?号,chmod也不好使啊 :
root@i:~# chmod 777 -R thinclient_drives
chmod: cannot access 'thinclient_drives': Transport endpoint is not connected
root@i:~# ls
thinclient_drives
root@i:~# rm -rf .thinclient_drives
root@i:~# ls
thinclient_drives
于是我就了解了一下,采用下面的姿势删除:
root@i:~# umount thinclient_drives
root@i:~# ls
thinclient_drives
root@i:~# rm thinclient_drives -rf
root@i:~# ls
这个不删除有时候也很难受,比如你要打包整个用户目录,打包到它的时候会告诉你权限不允许,例如:
tar: thinclient_drives: Cannot stat: Permission denied
tar: Exiting with failure status due to previous errors
删除后感觉心情舒畅多了。如果你也遇到这样的情况,可以作为一个参考!