I need to put a soft link in each users home directory that is somethink like this
workspace --> /vol/workspace
Any suggestions what is the easiest way to accomplish this?
I need to put a soft link in each users home directory that is somethink like this
workspace --> /vol/workspace
Any suggestions what is the easiest way to accomplish this?
make a list of users, use it in a script with a loop (while or for...) that does:
read user, cd user home directory, ln -s...
Simple no?
Yes, i kinda figured that, but script writing is my weakness, guess i am goinna have to take the time to learn.
ok I will give you a little help:
This is a loop to extract the users (and more so it need some cleaning...) from /etc/passwd:
cp /etc/passwd tmp$$
while read line
do
USER=$(echo $line|awk '{FS=":";print $1}')
echo $USER
done < tmp$$
So what you have to do now is sent the ouput to a file
and :
cat file| while read USER
do
...
done