Skip to main content
Question

Modifying Symlink for Downloads

  • February 20, 2021
  • 1 reply
  • 12 views

Forum|alt.badge.img+9

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

1 reply

Forum|alt.badge.img

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