I'm currently working on a script that will automate symbolic links for new users that access our redhat 5 systems. I want this script to gather information about what groups they are in and then add the corresponding links to their home directory so I don't have to do it.
Currently I have this:
This works except I've forgotten I don't need it to make a script for groups that don't have links like the group that is their user name or wheel etc. Can I specify which groups and still use the groups command? Or will I need to add a fancy if statement in there.Code:!/bin/bash for name in `groups`; do ln -s /u03/dl/$name /home/`whoami`; done
Thanks,

Reply With Quote

