Migrating user profiles

Status
Not open for further replies.

SomeHandleThatStartsWithS

Ars Praefectus
5,365
Subscriptor++
The previous admin team split the various network shares between two servers. Ostensibly (I hope!) to load balance between them. It may have also been because each server had limited space (about 300GB each). Unfortunately, the shares on both servers were set on the root/OS partition. :facepalm:

So, one of my multiple projects of cleaning up the mess left by the previous admin team was to upgrade the storage on one of the newer servers and consolidate all the shares to the upgraded server. Files have been moved over and verified as copied. Most of the shares have been set back up, and security settings for all verified. Almost every share had granted EVERYONE full access. :/

This leaves me the remaining share... the user home share. Does anyone have an easy/easy-ish way to change everyone's profile directory to a new location?
 

SomeHandleThatStartsWithS

Ars Praefectus
5,365
Subscriptor++
script, use your favorite language.

Now, I will say before you do it that I would strongly suggest that you implement a domain based DFS root so that you can change everyone over to \\domain\users\%username% where it will stay until the end of time, that way neither you nor any future admin has to repeat the work you are about to do.

Yeah... I've been eying moving to DFS. Maybe I'll crack the books and do a refresher.
 

ZPrime

Ars Legatus Legionis
18,847
Subscriptor++
[url=http:/civis/viewtopic.php?p=29545819#p29545819:1883wz85 said:
Alfrik[/url]":1883wz85]
Almost every share had granted EVERYONE full access.
This is normally the "right" way to handle share security. You give Everyone access to the share itself, but then you use NTFS permissions to restrict what they can/can't touch on the filesystem.
 

afidel

Ars Legatus Legionis
18,433
Subscriptor
[url=http:/civis/viewtopic.php?p=29549295#p29549295:1jsmy75i said:
ZPrime[/url]":1jsmy75i]
[url=http:/civis/viewtopic.php?p=29545819#p29545819:1jsmy75i said:
Alfrik[/url]":1jsmy75i]
Almost every share had granted EVERYONE full access.
This is normally the "right" way to handle share security. You give Everyone access to the share itself, but then you use NTFS permissions to restrict what they can/can't touch on the filesystem.
The ONLY share I grant EVERYONE access to is the roaming profile directory for Citrix, because for some reason the system starts to grab the users profile before it has a valid kerberos ticket (or at least it can't use the ticket yet because the HKCU hive isn't loaded yet?), all others get DOMAIN USERS or the specific security group applied, EVERYONE is a security nightmare as it includes unauthenticated users and has been responsible for a variety of privileged escalation vulnerabilities over the years.
 

Ciconia

Ars Praetorian
568
Subscriptor
I am not a big fan of using EVERYONE on the share permissions but I go with Domain Users, Domain Computers or something similarly large for shares. The real security is the NTFS permissions. I also have an odd setup with multiple trusts, not all two-way, nor all that trustworthy so EVERYONE is kinda bad for me since potentially includes those domains. I only restrict share permissions when I am trying to decommission a share and need to keep regular people out but still let admin accounts connect. Don't worry about the share permissions too much.
 

SomeHandleThatStartsWithS

Ars Praefectus
5,365
Subscriptor++
[url=http:/civis/viewtopic.php?p=29550195#p29550195:1axxezzd said:
Ciconia[/url]":1axxezzd]I am not a big fan of using EVERYONE on the share permissions but I go with Domain Users, Domain Computers or something similarly large for shares. The real security is the NTFS permissions. I also have an odd setup with multiple trusts, not all two-way, nor all that trustworthy so EVERYONE is kinda bad for me since potentially includes those domains. I only restrict share permissions when I am trying to decommission a share and need to keep regular people out but still let admin accounts connect. Don't worry about the share permissions too much.


This, I use Authenticated Users, and grant them full control. Then I use NTFS perms to get the real lock downs.
 

ZPrime

Ars Legatus Legionis
18,847
Subscriptor++
[url=http:/civis/viewtopic.php?p=29549325#p29549325:i4a7xc9x said:
afidel[/url]":i4a7xc9x]
EVERYONE is a security nightmare as it includes unauthenticated users
Yeah, but it doesn't matter if the filesystem doesn't allow Everyone. Just because you can enumerate the share doesn't really get you much else.

I never put Everyone on the FS... and weren't the Everyone security bugs fixed a long time ago? I believe that in a 2008R2 domain, "Everyone" doesn't include unauthenticated users either.
 
Status
Not open for further replies.