setup environment variables for groups
I can setup variables in ~/.bashrc for my own shells.
I can also setup variables globally in /etc/bashrc . but then how do I setup variables for a group in Linux? So that users who belong to this group will see the variables, but not others? Thanks |
In the global configuration file a simple check using the id command should do the trick. For example:
Code:
if [[ $(id -g) -eq 100 ]] |
I was think the same. Thanks.
|
All times are GMT -5. The time now is 03:19 PM. |