Newbie Linux Server Question
Hi everyone,
So far, I have created a couple of groups and put some users in them. But now I want to create a template for the .bashrc,.bash_profile, .bash_login, and .bash_logout. I have no idea where to begin! Also, a login banner when the user logs in would be cool :) |
Hi,
Welcome to LQ! Quote:
What have you attempted other than the group actions? You could setup a .bashrc & .bash_profile for your user(s); Code:
sample .bash_profile; Code:
sample .bashrc; If you want to learn 'bash' then start out at items 4, 5 and 6 below. System Administration would be good to look at 1,2 & 7. While the others will provide some additional information. Just a few links to aid you to gaining some understanding; 1 Linux Documentation Project 2 Rute Tutorial & Exposition 3 Linux Command Guide 4 Bash Beginners Guide 5 Bash Reference Manual 6 Advanced Bash-Scripting Guide 7 Linux Newbie Admin Guide 8 LinuxSelfHelp 9 Getting Started with Linux The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links! |
The /etc/skel directory is the "template" from which home directories are built. That won't help with any users already created, but may be useful for future ones.
Check out the man page for bash (near the top, under INVOCATION). You'll see that there are some files under /etc that may also be interesting. ("man bash", use 'q' to quit.) Also, it would be helpful to know which distribution you're working with. |
Quote:
and thanks for the script! :) |
Changes to /etc/profile will affect all users. Changes to /etc/skel/.bash_profile will only affect new accounts created.
|
Quote:
|
All times are GMT -5. The time now is 03:30 PM. |