[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

Automated login question

Hi, i'm sure this must be a silly question, i want to automate the login process of a specific user (i don't wanna use the rc.local) i'm using the redhat 6.1 distros...i tried configuring the .bash_login file of that user but that doesn't seem to do anything...any help? thx a lot ;)
0
paricitoi
Asked:
paricitoi
  • 2
  • 2
1 Solution
 
jlevieCommented:
What do you mean by "automate the login process"? Do you want certain things running when the user logs in or are you trying to get the sytem to automatically log in the user when it boots?
0
 
paricitoiAuthor Commented:
yes, i would like certain command executed when a specific user log in...like an autoexect but just for that user...
0
 
jlevieCommented:
Where you put the command depends in part on what needs to be run and in part on what environment the user logs into (console, terminal, X), care to elaborate? It can be done, either a command line app or an X app, but I need to know what needs to be run.
0
 
jyu_88Commented:
bash_profile will excute for login,
..bashrc will for each bash subshell spawned
..Xclients will run X clients if enter an X environment...
..Xsession will defines  a set of programs to run in X

if the user's shell is not bash, say it is ksh, then you need to use .profile, .kshrc instead., blah blah
0
 
paricitoiAuthor Commented:
The user log into a console...i'm gonna try that bash_profile...i'll keep you informed.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now