Hello All,
Been fiddling on my test box and all of the users home directories are now owned by root (don't ask !!)
Would like to correct the ownership and tried this :
1. Created a file with a line for each user:
benno:benno benno
otherther other
etc
etc
2. for I in `cat said file`
do
chown $I
done
This didn't work because the cat command lists the output of the file as:
benno:benno
benno
otherther
other
(for I in `cat said file`
do
echo $I
done)
When I cat the file from the command line (cat filename) the output is benno:benno benno
otherther other
Any ideas ??
cheers
Benno
...it really does get worse than this !!
Been fiddling on my test box and all of the users home directories are now owned by root (don't ask !!)
Would like to correct the ownership and tried this :
1. Created a file with a line for each user:
benno:benno benno
otherther other
etc
etc
2. for I in `cat said file`
do
chown $I
done
This didn't work because the cat command lists the output of the file as:
benno:benno
benno
otherther
other
(for I in `cat said file`
do
echo $I
done)
When I cat the file from the command line (cat filename) the output is benno:benno benno
otherther other
Any ideas ??
cheers
Benno
...it really does get worse than this !!