RV: [Samba] smbpasswd -a -m
Just I need that users exists in Windows Domain Server (CAPRE-SANTIAGO) but are not all the machine in the domain. Jaime -Mensaje original- De: Mark Sarria [mailto:[EMAIL PROTECTED] Enviado el: mircoles, 15 de junio de 2005 18:35 Para: Jaime Amigo Pinilla; samba@lists.samba.org Asunto: RE: [Samba] smbpasswd -a -m Not quite sure what you want, but it sounds like you want to access your home share, without providing credentials? --mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jaime Amigo Pinilla Sent: Wednesday, June 15, 2005 2:43 PM To: samba@lists.samba.org Subject: [Samba] smbpasswd -a -m I am trying to configure Samba 2.2x with Win2K. I need that samba shares a directory in the Linux server and the users Windows access that without authentication. I created the UNIX users (etc/passwd). dic00037$:*:504:65533:DIC00037:/dev/null:/bin/false dic00024$:*:505:65533:DIC00024:/dev/null:/bin/false dic00021$:*:506:65533:DIC00021:/dev/null:/bin/false I creates the Samba users. smbpasswd -a -m dic00037 smbpasswd -a -m dic00024 smbpasswd -a -m dic00021 I'm trying to access by Windows with \\150.10.10.70, show me [homes] but I cannot access the folder. Any suggestion? Regards Jaime Attached additional information: peumo:/etc/samba # smbclient -L \\localhost -U% added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 added interface ip=150.10.10.70 bcast=150.10.255.255 nmask=255.255.0.0 Domain=[SANTIAGO] OS=[Unix] Server=[Samba 2.2.5-UL] Sharename Type Comment - --- homes Disk ComparteLinux IPC$ IPC IPC Service (Servidor Samba Linux) ADMIN$ Disk IPC Service (Servidor Samba Linux) Server Comment ---- CAPRE-SANTIAGO PEUMOServidor Samba Linux WorkgroupMaster ---- SANTIAGO CAPRE-SANTIAGO /etc/samba/smb.conf [global] workgroup = SANTIAGO netbios name = peumo server string = Servidor Samba Linux unix extensions = yes security = share encrypt passwords = yes load printers = no socket options = IPTOS_LOWDELAY TCP_NODELAY hosts allow = 150.10.12. localhost interfaces = 127.0.0.1/8 150.10.10.70/16 bind interfaces only = yes password server = CAPRE-SANTIAGO username map = /etc/samba/smbusers smb passwd file = /etc/samba/smbpasswd log level = 1 large readwrite = yes max log size = 1000 auto services = homes log file = /var/log/samba/%m.log veto files = /*.eml/*.nws/riched20.dll/*.{*}/ local master = yes [homes] path= /home/compartelinux comment = ComparteLinux volume = Disco-Linux browseable = yes writeable = yes guest ok = yes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smbpasswd -a -m
I am trying to configure Samba 2.2x with Win2K. I need that samba shares a directory in the Linux server and the users Windows access that without authentication. I created the UNIX users (etc/passwd). dic00037$:*:504:65533:DIC00037:/dev/null:/bin/false dic00024$:*:505:65533:DIC00024:/dev/null:/bin/false dic00021$:*:506:65533:DIC00021:/dev/null:/bin/false I creates the Samba users. smbpasswd -a -m dic00037 smbpasswd -a -m dic00024 smbpasswd -a -m dic00021 I'm trying to access by Windows with \\150.10.10.70, show me [homes] but I cannot access the folder. Any suggestion? Regards Jaime Attached additional information: peumo:/etc/samba # smbclient -L \\localhost -U% added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 added interface ip=150.10.10.70 bcast=150.10.255.255 nmask=255.255.0.0 Domain=[SANTIAGO] OS=[Unix] Server=[Samba 2.2.5-UL] Sharename Type Comment - --- homes Disk ComparteLinux IPC$ IPC IPC Service (Servidor Samba Linux) ADMIN$ Disk IPC Service (Servidor Samba Linux) Server Comment ---- CAPRE-SANTIAGO PEUMOServidor Samba Linux WorkgroupMaster ---- SANTIAGO CAPRE-SANTIAGO /etc/samba/smb.conf [global] workgroup = SANTIAGO netbios name = peumo server string = Servidor Samba Linux unix extensions = yes security = share encrypt passwords = yes load printers = no socket options = IPTOS_LOWDELAY TCP_NODELAY hosts allow = 150.10.12. localhost interfaces = 127.0.0.1/8 150.10.10.70/16 bind interfaces only = yes password server = CAPRE-SANTIAGO username map = /etc/samba/smbusers smb passwd file = /etc/samba/smbpasswd log level = 1 large readwrite = yes max log size = 1000 auto services = homes log file = /var/log/samba/%m.log veto files = /*.eml/*.nws/riched20.dll/*.{*}/ local master = yes [homes] path= /home/compartelinux comment = ComparteLinux volume = Disco-Linux browseable = yes writeable = yes guest ok = yes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbpasswd -a -m
Jaime Amigo Pinilla wrote: I am trying to configure Samba 2.2x with Win2K. I need that samba shares a directory in the Linux server and the users Windows access that without authentication. I created the UNIX users (etc/passwd). dic00037$:*:504:65533:DIC00037:/dev/null:/bin/false dic00024$:*:505:65533:DIC00024:/dev/null:/bin/false dic00021$:*:506:65533:DIC00021:/dev/null:/bin/false I creates the Samba users. smbpasswd -a -m dic00037 smbpasswd -a -m dic00024 smbpasswd -a -m dic00021 The above creates machine accounts which is unnecessary. This will not help. You need to read the docs about guest users. Another easy way is to create 1 samba user account and have everyone mount the drive using that account. Not very secure but that doesn't seem to be a concern for you. I'm trying to access by Windows with \\150.10.10.70, show me [homes] but I cannot access the folder. Any suggestion? Regards Jaime Attached additional information: peumo:/etc/samba # smbclient -L \\localhost -U% added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 added interface ip=150.10.10.70 bcast=150.10.255.255 nmask=255.255.0.0 Domain=[SANTIAGO] OS=[Unix] Server=[Samba 2.2.5-UL] Sharename Type Comment - --- homes Disk ComparteLinux IPC$ IPC IPC Service (Servidor Samba Linux) ADMIN$ Disk IPC Service (Servidor Samba Linux) Server Comment ---- CAPRE-SANTIAGO PEUMOServidor Samba Linux WorkgroupMaster ---- SANTIAGO CAPRE-SANTIAGO /etc/samba/smb.conf [global] workgroup = SANTIAGO netbios name = peumo server string = Servidor Samba Linux unix extensions = yes security = share encrypt passwords = yes load printers = no socket options = IPTOS_LOWDELAY TCP_NODELAY hosts allow = 150.10.12. localhost interfaces = 127.0.0.1/8 150.10.10.70/16 bind interfaces only = yes password server = CAPRE-SANTIAGO username map = /etc/samba/smbusers smb passwd file = /etc/samba/smbpasswd log level = 1 large readwrite = yes max log size = 1000 auto services = homes log file = /var/log/samba/%m.log veto files = /*.eml/*.nws/riched20.dll/*.{*}/ local master = yes [homes] path= /home/compartelinux comment = ComparteLinux volume = Disco-Linux browseable = yes writeable = yes guest ok = yes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] smbpasswd -a -m
Not quite sure what you want, but it sounds like you want to access your home share, without providing credentials? --mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jaime Amigo Pinilla Sent: Wednesday, June 15, 2005 2:43 PM To: samba@lists.samba.org Subject: [Samba] smbpasswd -a -m I am trying to configure Samba 2.2x with Win2K. I need that samba shares a directory in the Linux server and the users Windows access that without authentication. I created the UNIX users (etc/passwd). dic00037$:*:504:65533:DIC00037:/dev/null:/bin/false dic00024$:*:505:65533:DIC00024:/dev/null:/bin/false dic00021$:*:506:65533:DIC00021:/dev/null:/bin/false I creates the Samba users. smbpasswd -a -m dic00037 smbpasswd -a -m dic00024 smbpasswd -a -m dic00021 I'm trying to access by Windows with \\150.10.10.70, show me [homes] but I cannot access the folder. Any suggestion? Regards Jaime Attached additional information: peumo:/etc/samba # smbclient -L \\localhost -U% added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 added interface ip=150.10.10.70 bcast=150.10.255.255 nmask=255.255.0.0 Domain=[SANTIAGO] OS=[Unix] Server=[Samba 2.2.5-UL] Sharename Type Comment - --- homes Disk ComparteLinux IPC$ IPC IPC Service (Servidor Samba Linux) ADMIN$ Disk IPC Service (Servidor Samba Linux) Server Comment ---- CAPRE-SANTIAGO PEUMOServidor Samba Linux WorkgroupMaster ---- SANTIAGO CAPRE-SANTIAGO /etc/samba/smb.conf [global] workgroup = SANTIAGO netbios name = peumo server string = Servidor Samba Linux unix extensions = yes security = share encrypt passwords = yes load printers = no socket options = IPTOS_LOWDELAY TCP_NODELAY hosts allow = 150.10.12. localhost interfaces = 127.0.0.1/8 150.10.10.70/16 bind interfaces only = yes password server = CAPRE-SANTIAGO username map = /etc/samba/smbusers smb passwd file = /etc/samba/smbpasswd log level = 1 large readwrite = yes max log size = 1000 auto services = homes log file = /var/log/samba/%m.log veto files = /*.eml/*.nws/riched20.dll/*.{*}/ local master = yes [homes] path= /home/compartelinux comment = ComparteLinux volume = Disco-Linux browseable = yes writeable = yes guest ok = yes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smbpasswd -a -m machine fails: Failed to modify password entry
Hi, i try to create a new machine account, like i always did, but haven't done since 3.x. My backend is ldap: passdb backend = ldapsam:ldap://fileserver idmap backend = ldapsam:ldap://fileserver As root I do the following: smbpasswd -D 10 -a -m admeta - Netbios name list:- my_netbios_names[0]=FILESERVER tdb(unnamed): tdb_brlock failed (fd=3) at offset 4 rw_type=1 lck_type=13: Resource temporarily unavailable Trying to load: ldapsam:ldap://fileserver Attempting to register passdb backend ldapsam Successfully added passdb backend 'ldapsam' Attempting to register passdb backend ldapsam_compat Successfully added passdb backend 'ldapsam_compat' Attempting to register passdb backend smbpasswd Successfully added passdb backend 'smbpasswd' Attempting to register passdb backend tdbsam Successfully added passdb backend 'tdbsam' Attempting to register passdb backend guest Successfully added passdb backend 'guest' Attempting to find an passdb backend to match ldapsam:ldap://fileserver (ldapsam) Found pdb backend ldapsam Searching for:[((objectClass=sambaDomain)(sambaDomainName=BBS1_EMDEN))] smbldap_search_suffix: searching for:[((objectClass=sambaDomain)(sambaDomainName=BBS1_EMDEN))] smbldap_open_connection: ldap://fileserver smbldap_open_connection: connection opened ldap_connect_system: Binding to ldap server ldap://fileserver as cn=root,dc=bbs1-emden,dc=schule ldap_connect_system: succesful connection to the LDAP server The LDAP server is succesful connected pdb backend ldapsam:ldap://fileserver has a valid init Attempting to find an passdb backend to match guest (guest) Found pdb backend guest pdb backend guest has a valid init smbldap_search_suffix: searching for:[((uid=admeta$)(objectclass=sambaSamAccount))] ldapsam_getsampwnam: Unable to locate user [admeta$] count=0 Finding user admeta$ Trying _Get_Pwnam(), username as lowercase is admeta$ Trying _Get_Pwnam(), username as uppercase is ADMETA$ Checking combinations of 0 uppercase letters in admeta$ Get_Pwnam_internals didn't find user [admeta$]! Failed to initialise SAM_ACCOUNT for user admeta$. Failed to modify password entry for user admeta$ What do I do wrong? ldapsearch -x -D ADMIN-DN -w secret uid=admeta* says: dn: uid=admeta$,ou=hardware,dc=bbs1-emden,dc=schule objectClass: posixAccount objectClass: account cn: admeta$ uid: admeta$ uidNumber: 10090 gidNumber: 502 homeDirectory: /home/admeta loginShell: /bin/false description: machine l: ver userPassword:: e1NNRDV9VnFXV0F0Z2JBKzVyYTFLN2VwVzVIOGlUM3h3PQ== The machine is in group ou=hardware. My /etc/ldap.conf is: URI ldap://localhost:389/ BASEdc=bbs1-emden,dc=schule pam_filter objectclass=posixAccount pam_login_attribute uid nss_base_passwd ou=accounts,dc=bbs1-emden,dc=schule?one nss_base_group ou=groups,dc=bbs1-emden,dc=schule?one My smb.conf is: [global] workgroup = BBS1_EMDEN passdb backend = ldapsam:ldap://fileserver idmap backend = ldapsam:ldap://fileserver ldap suffix = dc=bbs1-emden,dc=schule ldap user suffix = ou=accounts ldap group suffix = ou=groups ldap machine suffix = ou=hardware ldap idmap suffix = ou=idmap idmap uid = 4-6 idmap gid = 4-6 ldap admin dn = cn=root,dc=bbs1-emden,dc=schule ldap ssl = off I tried various things, but I simply have no idea what might be wrong. (tried cn=admeta$, copied uid=admeta$ to ou=accounts = duplicate entries) Has anybody any idea? Thanks, Malte Mueller -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbpasswd -a -m machine fails: Failed to modify password entry
Hi, Please put the machine accounts into the People (in your case the 'accounts') container. This is a known bug in Samba-3 - it does not search the Computers (in your case 'hardware') container for computer accounts. This should solve your problem. - John T. On Sat, 27 Dec 2003 [EMAIL PROTECTED] wrote: Hi, i try to create a new machine account, like i always did, but haven't done since 3.x. My backend is ldap: passdb backend = ldapsam:ldap://fileserver idmap backend = ldapsam:ldap://fileserver As root I do the following: smbpasswd -D 10 -a -m admeta - Netbios name list:- my_netbios_names[0]=FILESERVER tdb(unnamed): tdb_brlock failed (fd=3) at offset 4 rw_type=1 lck_type=13: Resource temporarily unavailable Trying to load: ldapsam:ldap://fileserver Attempting to register passdb backend ldapsam Successfully added passdb backend 'ldapsam' Attempting to register passdb backend ldapsam_compat Successfully added passdb backend 'ldapsam_compat' Attempting to register passdb backend smbpasswd Successfully added passdb backend 'smbpasswd' Attempting to register passdb backend tdbsam Successfully added passdb backend 'tdbsam' Attempting to register passdb backend guest Successfully added passdb backend 'guest' Attempting to find an passdb backend to match ldapsam:ldap://fileserver (ldapsam) Found pdb backend ldapsam Searching for:[((objectClass=sambaDomain)(sambaDomainName=BBS1_EMDEN))] smbldap_search_suffix: searching for:[((objectClass=sambaDomain)(sambaDomainName=BBS1_EMDEN))] smbldap_open_connection: ldap://fileserver smbldap_open_connection: connection opened ldap_connect_system: Binding to ldap server ldap://fileserver as cn=root,dc=bbs1-emden,dc=schule ldap_connect_system: succesful connection to the LDAP server The LDAP server is succesful connected pdb backend ldapsam:ldap://fileserver has a valid init Attempting to find an passdb backend to match guest (guest) Found pdb backend guest pdb backend guest has a valid init smbldap_search_suffix: searching for:[((uid=admeta$)(objectclass=sambaSamAccount))] ldapsam_getsampwnam: Unable to locate user [admeta$] count=0 Finding user admeta$ Trying _Get_Pwnam(), username as lowercase is admeta$ Trying _Get_Pwnam(), username as uppercase is ADMETA$ Checking combinations of 0 uppercase letters in admeta$ Get_Pwnam_internals didn't find user [admeta$]! Failed to initialise SAM_ACCOUNT for user admeta$. Failed to modify password entry for user admeta$ What do I do wrong? ldapsearch -x -D ADMIN-DN -w secret uid=admeta* says: dn: uid=admeta$,ou=hardware,dc=bbs1-emden,dc=schule objectClass: posixAccount objectClass: account cn: admeta$ uid: admeta$ uidNumber: 10090 gidNumber: 502 homeDirectory: /home/admeta loginShell: /bin/false description: machine l: ver userPassword:: e1NNRDV9VnFXV0F0Z2JBKzVyYTFLN2VwVzVIOGlUM3h3PQ== The machine is in group ou=hardware. My /etc/ldap.conf is: URI ldap://localhost:389/ BASEdc=bbs1-emden,dc=schule pam_filter objectclass=posixAccount pam_login_attribute uid nss_base_passwd ou=accounts,dc=bbs1-emden,dc=schule?one nss_base_group ou=groups,dc=bbs1-emden,dc=schule?one My smb.conf is: [global] workgroup = BBS1_EMDEN passdb backend = ldapsam:ldap://fileserver idmap backend = ldapsam:ldap://fileserver ldap suffix = dc=bbs1-emden,dc=schule ldap user suffix = ou=accounts ldap group suffix = ou=groups ldap machine suffix = ou=hardware ldap idmap suffix = ou=idmap idmap uid = 4-6 idmap gid = 4-6 ldap admin dn = cn=root,dc=bbs1-emden,dc=schule ldap ssl = off I tried various things, but I simply have no idea what might be wrong. (tried cn=admeta$, copied uid=admeta$ to ou=accounts = duplicate entries) Has anybody any idea? Thanks, Malte Mueller -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- John H Terpstra Email: [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba