[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to get Dot files out of the way via shell scripts



On Thu, Jul 11, 2013 at 08:05:51PM +0200, Martin Steigerwald wrote:
> Am Donnerstag, 11. Juli 2013, 09:55:20 schrieb Andrei POPESCU:
> > >       append  command:        "cd"                            to  .profile
> > >
> > > 
> > > 
> > >
> > > 3.  Modify /etc/passwd: login_dir ==> /home/<user>/.rc
> > >       ==================================================
> > >       
> > >       example:
> > >       wwf:x:1001:1001:Wilko Fokken,,,:/home/wwf/.rc:/bin/bash
> > 
> > So basically you're setting $HOME to be /home/$user/.rc
> 
> I would be careful of the side effects this can have.
> 
> If applications just work be relative paths, all is well, but some may append 
> $HOME to get an absolute path and then…
> 
> -- 
> Martin 'Helios' Steigerwald - http://www.Lichtvoll.de


PS.

I didn't answer your questioning precisely enough:

It's not me that sets the variable $HOME, it's the entry in '/etc/passwd'.


Wilko


Reply to: