[Samba] Problem migrating Shares.

joel.rosental at iaesp.edu.ve joel.rosental at iaesp.edu.ve
Sun Dec 10 22:27:38 GMT 2006


Hello everyone, i'm new to samba and am migrating a Windows 2000 PDC to a Debian "Sarge" GNU/Linux Samba PDC Server.

I already vampired the PDC and had no problems following the Howto Collection's instruction, but i'm having some problems when try to migrate shares from it.

These are actual Win2k PDC's shares:

prueba:/etc/samba#  net rpc share -S PDC -U JROSENTAL
Password:
E$
Cursos No Conducentes
IPC$
D$
ADMIN$
SYSVOL
C$
correo

When i try to migrate shares like this, it gives me this error:

prueba:/etc/samba# net rpc share migrate all correo -S PDC --acls --attrs --timestamps -U JROSENTAL
Password:
migrating: [correo], path: E:\OCTG_IAES, comment: , including share-ACLs

cannot add share: WERR_ACCESS_DENIED

user "JROSENTAL" is member of Domain Admins group.

This is my smb.conf:


[global]
        workgroup = MYDOMAIN
        netbios name = PDCPRUEBA
        server string = Samba Server
        map to guest = Bad User
        passdb backend = tdbsam
        pam password change = Yes
        passwd chat = *New*Password* %n\n *Re-enter*new*password* %n\n *Password*changed*
        security = user
        passwd program = /usr/bin/passwd %u
        username map = /etc/samba/smbusers
        unix password sync = Yes
        name resolve order = wins lmhosts bcast hosts
        time server = Yes
        add user script = /usr/sbin/useradd -m %u
        delete user script = /usr/sbin/userdel -r %u
        add group script = /etc/samba/smbgrpadd.sh "%g"
        delete group script = /usr/sbin/groupdel %g
        add user to group script = /usr/sbin/usermod -G %g %u
        add machine script = /usr/sbin/useradd -s /bin/false %u
        add share command = /usr/share/doc/samba-doc/examples/scripts/perl/modify_samba_config.pl
        delete share command = /usr/share/doc/samba-doc/examples/scripts/perl/modify_samba_config.pl
        logon script = scripts\logon.bat
        logon path =
        logon drive = H:
        logon home = \\%L\%U\.9xprofile
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = No
        wins server = yes
        force unknown acl user = yes
        enable privileges = true
[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        inherit permissions = Yes
        browseable = No

[groups]
        comment = All groups
        path = /home/groups
        read only = No
        inherit permissions = Yes


[correo]
        comment = Share de correo
        path = /var/lib/samba/shares/correo
        browseable = yes
        writeable = yes

[netlogon]
        path = /var/lib/samba/netlogon
        read only = No
        guest ok = Yes




More information about the samba mailing list