Hello users :)
How to create a BASH script to setup the user environment (.profile) so the bash prompt includes Hostname,Current working Directory and the Version of bash.
Note: I don't need anyone to solve my question i need only hints or explanation would be helpful.
Prompting is not a problem .. the real problem is how to reach the user environment (.profile) ?
In case of new users:
Have a look at the skeleton section of
In case of existing and "real" users:
Ask them to insert it.
The $HOME is by definition the realm of the person who owns it.
In case of existing and "system" users:
Write a one-time script to deploy it.