[K12OSN] Scripting help make link desktop to old home folder

Peter Hartmann ascensiontech at gmail.com
Sun Nov 4 19:24:51 UTC 2007


Why the new homes?  What was wrong with mounting old ones on the new server?

$USER  is the environment variable for the current user.

Peter

On 11/4/07, Krsnendu dasa <krsnendu108 at gmail.com> wrote:
> We have moved our users to a new server. We have created new home
> directories for each user.
> Users would like to access their previous home directories to access files.
> Can someone help me with a script to create a link on the desktop to their
> old files.
>
> I have the basic logic of it but don't know the commands.
>
> The script will be something like:
>
> For all users do this
> ln -s /home/old/home/<username>
> /home/<username>/desktop/oldhome
>
> Just need to figure out how to get the user name into the command and
> recurse the usernames.
> Probably the easiest way is to go through the /home directory and strip off
> the /home/ part to get the username.
>
> Can anyone help me out? It seems simple in theory.
>
>
>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>




More information about the K12OSN mailing list