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.
|