LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to configure auto login & after login auto startup some program. (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-auto-login-and-after-login-auto-startup-some-program-621908/)

hocheetiong 02-18-2008 12:14 AM

How to configure auto login & after login auto startup some program.
 
Hi, in RHEL or any other distro linux.

1st question: How to configure auto login with specify user?
example now i am in RHEL5, i already create a few user, than now i want everytime this system when reboot or start will automatic login to specify user lets say user name is alex, how to configure this system direct login as user alex and no need password?



2nd question: How to configure a specify user after login and automatic startup some program?
example now i am in RHEL5, i already create a few user, than now i want each user when login have their difference login session, in command line environment(runlevel 3) where to configure it?is it at /etc/home/"user"/.bash_profile

#.bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/

export PATH


---------------------------------------------------

Is it just add the command like ls -al at the bottom of file ".bash_profile .?

Thank you very much.

tailender 02-18-2008 12:49 AM

Visit this page on my blog regarding first one.


All times are GMT -5. The time now is 11:56 PM.