dougp23
asked on
Some script help
Hi all.
I need a script I think to do this!
We rolled out a Samba server, and used roaming profiles. Big mistake. So, now I want to undo roaming profiles, but have people's stuff they saved (under My Documents) transferred to their home dir. I have about 400 accounts. So something like this:
cp /opt/profiles/{username}/M y Documents/* /home/{username}
so that way /op/profiles/JOhn1/My Documents/* would copy to /home/John1 and John2 would copy to /home/John2 etc etc ( the usernames are not sequential).
Any help would be cool!
Thanks.
Doug
I need a script I think to do this!
We rolled out a Samba server, and used roaming profiles. Big mistake. So, now I want to undo roaming profiles, but have people's stuff they saved (under My Documents) transferred to their home dir. I have about 400 accounts. So something like this:
cp /opt/profiles/{username}/M
so that way /op/profiles/JOhn1/My Documents/* would copy to /home/John1 and John2 would copy to /home/John2 etc etc ( the usernames are not sequential).
Any help would be cool!
Thanks.
Doug
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Eee, just wonder: why joshgooding's answer was accepted, while it was rewriten word by word from mine ?
Hi Guys,
Yep your right ravenpl, i just added what you had written to and added a couple of extra lines to answer dougp23's next question
You where right, so points should be yours =)
Yep your right ravenpl, i just added what you had written to and added a couple of extra lines to answer dougp23's next question
You where right, so points should be yours =)
joshgooding: no offence to You, You added few info, and earned some points, hence the author made big bloomer...
ASKER
yes?