ECS Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Re: [ecs] Linux login cmds
Mark Gilmore
Thu, 23 Oct 2003 12:04:08 -0700
Thu, 23 Oct 2003 12:04:08 -0700
Hi Ingo,
When Knoppix *automatically* logs the "knoppix" user in at bootup,
my commands will:
         Create /home/knoppix/ecs, etc
         Copy all ecs files to same
         Set permissions as appropriate for all of the above
         Start ecs
These command will be executed *only* if /home/knoppix/ecs does not already 
exist.
Right now, they are in /etc/profile.
Sound OK ?
Thanks,

At 01:52 AM 10/23/2003 -0700, you wrote:

>Do you want this to happen only for one particular user, or for all
>users? It may also help if you said exactly what kind of commands you
>want executed.
>
>Regardless, it depends on how the user logs in. If the user logs in and
>gets a bash shell, then his ~/.bashrc or ~/.bash_profile file would be
>the appropriate place (or /etc/bashrc or /etc/profile if you want to
>affect all users).
>
>Personally, I have all of the above. For instance, I put ssh-agent into
>/etc/X11/xinit/xinitrc and xdm/Xsession and I set a couple environment
>variables in ~/bash_profile (note that those variables won't be
>available to X!)
>
>If the user logs into X, then it goes somewhere into /etc/X11. Exactly
>where depends on whether you are using KDE, Gnome, or something else.
>
>Linux has a lot of options. Unfortunately, at times it also means that
>what you want may vary from one system to the next.
>
>On Wed, 2003-10-22 at 16:01, Mark Gilmore wrote:
> > If I want Linux to execute some commands after someone logs in,
> > what file do I place them in ?
> > Thanks,
> >
> > Mark Gilmore
> > http://OmnipotenceSoftware.com
> >
> > ______________________________________________________________________
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
>--
>Ingo Pakleppa <ipakleppa@kkeane.com>
>
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003

Mark Gilmore
http://OmnipotenceSoftware.com 



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.