Posted on 02-19-2021 05:57 PM
User account created wrong so tried to rename user folder and create account using existing folder. Unfortunately the Downloads folder is a symlink into the Dropbox of the wrong account name and has the ACL
0: group:everyone deny delete
I can remove that ACL from the home folder and any of the regular folders but not this one even if I do
chmod -h -a# 0 Downloads
Posted on 02-22-2021 08:17 AM
Given that -f just does a silent replacement, you can do an atomic replacement with mv -T (-T makes it work even if /loc.../link is a directory):
ln -s /location/to/link linkname
ln -s /location/to/link2 newlink
mv -T newlink linkname
linkname is accessible throughout the process Upsers