1

Copying a directory to multiple users home dir and changing user/group ownership

view story
linux-howto

http://unix.stackexchange.com – On my Ubuntu server there are about 150 shell accounts. All usernames begin with the prefix u12.. I have root access and I am trying to copy a directory named "somefiles" to all the home directories. After copying the directory the user and group ownership of the directory should be changed to user's. Username, group and home-dir name are same. How can this be done? (HowTos)