troubleshooting Question

Some script help

Avatar of dougp23
dougp23Flag for United States of America asked on
Linux
6 Comments1 Solution450 ViewsLast Modified:
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}/My 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
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros