Hopefully very easy question to answer. I am trying to migrate data of of a samba server that is using winbind joined to a windows domain to another box. What samba or winbind files do I need so that this will resolve to names rather than UID and GID. For example........ drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student Thanks -- Bo Lynch
On Thu, 2009-05-21 at 14:16 -0400, Bo Lynch wrote:> Hopefully very easy question to answer. I am trying to migrate data of of > a samba server that is using winbind joined to a windows domain to another > box. What samba or winbind files do I need so that this will resolve to > names rather than UID and GID. For example........ > drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student > > Thanks-- Migrate what data exactly? Is winbindd/samba your domain controller or is it on a Active Directory Server? Caveat is you don't need winbindd. If you using winbind with AD then save your *.tdb files. Depends on your situation totally. Kerberos cache come to mind also. You smb.conf also. Just to migrate user data none of the above is needed. This answer you ? ?. As far as I know UID and GID is the only way to inter operate with AD... JohnStanley
On Thu, 2009-05-21 at 14:16 -0400, Bo Lynch wrote:> What samba or winbind files do I need so that this will resolve to > names rather than UID and GID. For example........ > drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student--- Ok lets take away AD. To use regular name authentication. Add your users to the system and put them in a group. Then use smbpassd username. That way users are authenticated by USER_NAME. You will have to change the authentication mode to security = user in smb.conf. JohnStanley
Bo Lynch wrote:> Hopefully very easy question to answer. I am trying to migrate data of of > a samba server that is using winbind joined to a windows domain to another > box. What samba or winbind files do I need so that this will resolve to > names rather than UID and GID. For example........ > drwxr-x--- 1049 10926 10005 36864 May 15 11:46 Student > >If you mean that you migrate data from one samba server to another *non* samba machine it depends how your newly machine is/will be configured. Is the samba domain ADS based ? have you used the idmap_rid feature ? (a *must* when having multiple linux/unix machines using winbind in a AD domain to have a consistent id/sid mapping accross all the samba machines instead of the 'first come, first serve' id from from idmap pool) . If not, don't forget that even if you configure winbind/samba the same way it was on the old machine, the uid/gid map will never be the same (except when using idmap_rid directly) So my advice is just to backup the permissions on the old machine (with getfacl) , rsync the data, join the new machine to the domain, and restores permissions back (with setfacl --restore) -- -- Fabian Arrotin idea=`grep -i clue /dev/brain` test -z "$idea" && echo "sorry, init 6 in progress" || sh ./answer.sh