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
Ingo Pakleppa
23 Oct 2003 01:52:07 -0700
23 Oct 2003 01:52:07 -0700
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>


["application/pgp-signature" not shown]
  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
.