Using Deepin 15.11, I'm trying to delete ~/Documents, ~/Desktop, ~/Downloads, ~/Music, ~/Pictures, and ~/Videos.
I'm doing this to replace them with symlinks to shared (same name) folders on a permanently mounted (in fstab) ext4 partition but Deepin won't let me delete them with sudo. I tried switching to root and I can delete the folders but as soon as I delete one (e.g. Documents), it gets immediately recreated. If I rename (mv) Documents to Docs, a new Documents directory gets created immediately. (At which point I can rm Docs.) About the only thing I've managed to achieve (still as root) is to delete the directory and create a blank file in its place...
Code:
rm -rf ~/Documents & touch ~/Documents
... which gets me precisely nowhere. I tried to follow that up with...
Code:
rm ~/Documents & ln -s /mnt/shared-home/Documents ~/Documents
but it throws an error saying the 'file' (by which it means directory) exists (has already been automatically recreated).
This is a multi-boot Linux demo machine with 8 distros, each of which has 2 identically named accounts (one with admin capabilities and one without) and each distro is setup to point at the shared-home directory for Documents, Pictures, Music, Videos, Desktop, and Downloads on the permanently mounted partition. (The actual profile is in the /home/user directory on the system/root partition so the profile settings don't step all over each other.)
So far, four other distros have cooperated just fine. Only Deepin is being a stubborn pain in my... neck.
This is a bit maddening. Anyone have any suggestions on how I might get this done?