Redirection question

Discussion in 'macOS' started by lotsofjam, Sep 24, 2013.

  1. lotsofjam macrumors newbie

    Joined:
    Feb 4, 2013
    #1
    If I use MCX to make the user folder redirect from /Users/name/desktop to /volumes/storage/name/desktop instead, but I have a loginhook that copies x files from the network to /Users/$1/desktop, will it end up in storage, or in the real folder? More to the point, will it end up on the users desktop?
     
  2. ElectricSheep macrumors 6502

    ElectricSheep

    Joined:
    Feb 18, 2004
    Location:
    Wilmington, DE
    #2
    If you used the Workgroup Manager to override the default home directory location of a user to point somewhere else, there is no 'redirection' involved; The home directory is an explicit attribute attached to the account itself.

    Your loginhook script, depending on how written, should either use '~' shell expansion or query the HOME environment variable to determine the correct path to the user's home directory.
     

Share This Page