We have moved our users to a new server. We have created new home directories for each user.<br>Users would like to access their previous home directories to access files.<br>Can someone help me with a script to create a link on the desktop to their old files.
<br><br>I have the basic logic of it but don't know the commands.<br><br>The script will be something like:<br><br>For all users do this<br>ln -s /home/old/home/<username> /home/<username>/desktop/oldhome
<br><div><br>Just need to figure out how to get the user name into the command and recurse the usernames.<br>Probably the easiest way is to go through the /home directory and strip off the /home/ part to get the username.
<br><br>Can anyone help me out? It seems simple in theory.<br></div><br><br><br>