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

Krsnendu dasa krsnendu108 at gmail.com
Sun Nov 4 20:12:28 UTC 2007


We migrated from K12ltsp to Feisty. It seemed cleaner (config files etc) to
make new home directories, give them a week or so to copy what they want
then delete the old one. We still have a backup if necessary.

On 05/11/2007, Peter Hartmann <ascensiontech at gmail.com> wrote:
>
> 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>
> >
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/k12osn/attachments/20071105/eca8e861/attachment.htm>


More information about the K12OSN mailing list