Wow, I guess I didn't realize it could be that simple! So would I be able to modify permissions on a folder from a Windows XP machine (logged in under Administrator) as if it was a Windows file server?
I know you can't modify Samba's share permissions using MMC like you could if it was a Windows Server, but we usually just give Everyone full access to the shares and let the ACL file permissions take care of security.
So as long as we could change those ACL permissions easily (like we do now) or at worst have a gui on the server that can do it, we should be all set.
Main Topics
Browse All Topics





by: it4sohoPosted on 2009-08-14 at 10:11:40ID: 25100213
If CentOS and Samba were setup correctly, then you should be able to copy the files from the old Windows Server to the CentOS/Samba server (using CIFS) and preserve the permissions automatically.
(In other words, you've already got the Samba server on the AD domain, so it should have no problem mapping the AD groups to Linux groups automagically (actually, the winbindd daemon assigns a unique GID for each AD user and group that it encounters that is not otherwise mapped into the Linux system).
Now, for the "special" groups, like Domain Admins and Domain Users, I recommend mapping them to "real" POSIX accounts:
- Add POSIX groups for "admins" and "users"
- Map those groups to the Domain Admins & Domain Groups as here:
net groupmap add ntgroup="Domain Admins" unixgroup=admins rid=512 type=d
net groupmap add ntgroup="Domain Users" unixgroup=users rid=513 type=d
The problem many *nix admins run into is that they want to do everything from the *nix side -- and in this case, that's a problem... just copy the files FROM the old server to the new one (using Windows). Now the issue with just a "straight copy" is that the copier will be the owner of everything copied --- unless you use ntbackup (or some other backup program)... so, follow these steps:
On the old (Win) server, use ntbackup to backup the shared files to file X.bkp
When completed, again on the OLD server, use ntbackup to restore those files -- but this time to the network share folder on the NEW server (a mounted [mapped] drive works best for ntbackup!)
ntbackup's restore function should allow you to restore all of the permisions, and winbindd on the samba side should automagically create the *nix version of a user/group id for each file.
Good luck!
Dan
IT4SOHO