[Samba] How to share the tape drive in samba server for windows user
Hello All, I have installed RedHat Linux-9 and configured has domian controller for windows users. I have HP's tape drive in this Machine. Is it possible to share this tape drive to all the windows users to this tape drive using Samba? Regards, Sathi -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba PDC + LDAP
Hello All, I was successfully added the machine name and username using the smbldap tool but My windows machine was unable to contact the domain server. But when I add the same user using smbpasswd command it adds to ldap server and now I was able to contact the domain server. I don't want to do this because I have to add that user as machine user also. [EMAIL PROTECTED] sathi]# /usr/local/samba/bin/smbpasswd -a test New SMB password: Retype new SMB password: User test does not exist in system password file (usually /etc/passwd). Cannot add account without a valid local system user. Failed to modify password entry for user test [EMAIL PROTECTED] sbin]# /usr/sbin/useradd test [EMAIL PROTECTED] sbin]# /usr/local/samba/bin/smbpasswd -a test New SMB password: Retype new SMB password: ldap_connect_system: Binding to ldap server as cn=Manager, dc=xxx, dc=com ldap_connect_system: Binding to ldap server as cn=Manager, dc=xxx, dc=com Password changed for user test. [EMAIL PROTECTED] sbin]# Is it possible to add the user only in LDAP and authenticate the clients? Regards, Sathi Sathi schrieb: # ./smbldap-useradd.pl -w test ldapadd: update failed: uid=test$,ou=Computers,dc=xxx,dc=com ldap_add: Object class violation (65) additional info: no structural object class provided ./smbldap-useradd.pl: error while adding posix account to machine test$ It's not a bug, it's a feature. ;) Starting with OpenLDAP 2.1 (or 2.0 with schemacheck=on IIRC), every object must have exactly one structural class. If only auxiliary classes or more than one structural class are provided, OpenLDAP will refuse to create the desired object and shows the above error message. You should change your smbldap_tools.pm and add a structural object class that fits your needs. I have chosen to use the device object class for the domain computers: from smbldap_tools.pm: --- snip --- sub add_posix_machine { my ($user, $uid, $gid) = @_; my $tmpldif = dn: uid=$user,$computersdn objectclass: top objectclass: device - add this objectclass: posixAccount cn: $user uid: $user uidNumber: $uid gidNumber: $gid homeDirectory: /dev/null loginShell: /bin/false description: Computer --- snip --- and in sub add_samba_machine_mkntpwd: --- snip --- dn: uid=$user,$computersdn changetype: modify objectclass: top objectclass: device - add this objectclass: posixAccount objectClass: sambaAccount pwdLastSet: 0 logonTime: 0 logoffTime: 2147483647 kickoffTime: 2147483647 pwdCanChange: 0 pwdMustChange: 2147483647 acctFlags: [W ] lmpassword: $lmpassword ntpassword: $ntpassword rid: $rid primaryGroupID: 0 --- snip --- cu, Uwe -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] File permission for group
Thanks guys its working fine Regards, Sathi - Original Message - From: Patrick Nelson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 06, 2003 11:52 PM Subject: RE: [Samba] File permission for group Chris McKeever wrote: - I think I had the same problem. It wound up being a smb.conf change: force directory mode force create mode and then you can put the masks that you want I am rather new to this and apologize if this is not correct -Original Message- From: Sathi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 3:42 AM To: [EMAIL PROTECTED] Subject: [Samba] File permission for group Hello All, I am running samba-2.2.4 as PDC. I created a share in samba as given below [Share] comment = Share path = /Store/share valid users = @share create mask = 0777 directory mode = 0775 browseable = yes writable = yes If a user from share group creates a file in the folder /Store/share only that yours can access that file.If another user from same group tries to access the file he gets access denied. How to configure Share so that all the users in the group can have full access to a file which was created by one the user in the same group - when a file is created with the absence of force user and/or force group, it will use the %u and their default group. So if the user who connects is sathi then the created file or directory will have ownership of sathi and group of sathi. If everyone is in this group they will be able to see it. Your answer would be to include the line: [Share] comment = Share path = /Store/share valid users = @share create mask = 0777 directory mode = 0775 browseable = yes writable = yes force group = the group with everyone in it -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] File permission for group
Hello All, I am running samba-2.2.4 as PDC. I created a share in samba as given below [Share] comment = Share path = /Store/share valid users = @share create mask = 0777 directory mode = 0775 browseable = yes writable = yes If a user from share group creates a file in the folder /Store/share only that yours can access that file.If another user from same group tries to access the file he gets access denied. How to configure Share so that all the users in the group can have full access to a file which was created by one the user in the same group Adv thanks and Regards, Sathi -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] winbindd with Windows 2000
Hello All, Thanks for people how suggested some solutions to this problem but none of suggestion works. I found in the document that winbindd will supports NTLMv1. I am using WIN2000 server and i did not found any version information. How to find NTLM version in WIN2000 server. Sorryfor this question as it seems off topic but it will help me to solve problemi am facing in configuring winbindd. Thanks and Regards, Sathi - Original Message - From: Sathi To: [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 3:18 PM Subject: [Samba] winbindd with Windows 2000 Hello All, I configured samba-winbindd for squid proxy authentication. I was able to add the machine to windows 2000 server.but wbinfo -t returns error Can anybody helps me to solve the problem after seeing the setup and error message Following is the setup i made ]# vi smb.conf # Global parameters[global] workgroup = KOVAITEST netbios name = FIREWALL server string = Linux workstation security = DOMAIN encrypt passwords = Yes password server = kovai-x30kwi8z3 winbind uid = 1-2 winbind gid = 1-2 template shell = /bin/bash winbind separator = + winbind cache time = 10 winbind use default domain = Yes ]# ./smbpasswd -j KOVAITEST -r kovai-x30kwi8z3 -UAdministrator%win2000Joined domain KOVAITEST. ]# ./wbinfo -tCould not check secret IN LOG.winbindd ]# tail -f log.winbindd [2003/01/23 15:10:41, 10] nsswitch/winbindd_cm.c:cm_open_connection(334) returning negative open_connection_cache entry for KOVAITEST, KOVAI-X30KWI8Z3[2003/01/23 15:10:41, 3] nsswitch/winbindd_cm.c:get_connection_from_cache(435) Could not open a connection to KOVAITEST for \PIPE\lsarpc (NT_STATUS_LOGON_FAILURE)[2003/01/23 15:10:51, 1] nsswitch/winbindd_util.c:init_domain_list(143) Retrying startup domain sid fetch for KOVAITEST[2003/01/23 15:10:51, 10] nsswitch/winbindd_cm.c:cm_get_dc_name(108) get_dc_name_cache entry expired for KOVAITEST[2003/01/23 15:10:51, 10] nsswitch/winbindd_cm.c:cm_get_dc_name(130) Creating get_dc_name_cache entry for KOVAITEST[2003/01/23 15:10:51, 3] libsmb/namequery.c:resolve_lmhosts(768) resolve_lmhosts: Attempting lmhosts lookup for name kovai-x30kwi8z30x20[2003/01/23 15:10:51, 4] libsmb/namequery.c:startlmhosts(474) startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error was No such file or directory[2003/01/23 15:10:51, 10] libsmb/nmblib.c:parse_nmb(471) parse_nmb: packet id = 10137[2003/01/23 15:10:51, 5] libsmb/nmblib.c:read_packet(719) Received a packet of len 355 from (172.16.1.251) port 137[2003/01/23 15:10:51, 4] libsmb/nmblib.c:debug_nmb_packet(107) nmb packet from 172.16.1.251(137) header: id=10137 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=KOVAITEST1c rr_type=33 rr_class=1 ttl=0 answers 0 char .KOVAI-X30KWI8Z3 hex 0C4B4F5641492D5833304B5749385A33 answers 10 char .D.KOVAI-X30KWI8 hex 0044004B4F5641492D5833304B574938 answers 20 char Z3 D.KOVAITEST hex 5A332044004B4F564149544553542020 answers 30 char ...KOVAITEST hex 2020202000C4004B4F56414954455354 answers 40 char ...KOVAITE hex 2020202020201CC4004B4F5641495445 answers 50 char ST .D.KOVAI hex 53542020202020201B44004B4F564149 answers 60 char -X30KWI8Z3.D.INe hex 2D5833304B5749385A33034400494E65 answers 70 char t~Services ...K hex 747E536572766963657320201CC4004B answers 80 char OVAITEST .. hex 4F564149544553542020202020201EC4 answers 90 char .IS~VAI-X30KWI8Z hex 0049537E5641492D5833304B5749385A answers a0 char 3D.KOVAITEST hex 3344004B4F5641495445535420202020 answers b0 char .D...__MSBROWS hex 20201D440001025F5F4D5342524F5753 answers c0 char E__ADMINISTR hex 455F5F0201C40041444D494E49535452 answers d0 char ATOR .D...[8... hex 41544F5220200344065B3899A800 answers e0 char hex answers f0 char hex answers 100 char ... hex 00[2003/01/23 15:10:51, 3] nsswitch/winbindd_cm.c:cm_get_dc_name(205) cm_get_dc_name: Returning DC KOVAI-X30KWI8Z3 (172.16.1.251) for domain KOVAITEST Thanks and Regards, Sathi
[Samba] winbindd with Windows 2000
Hello All, I configured samba-winbindd for squid proxy authentication. I was able to add the machine to windows 2000 server.but wbinfo -t returns error Can anybody helps me to solve the problem after seeing the setup and error message Following is the setup i made ]# vi smb.conf # Global parameters[global] workgroup = KOVAITEST netbios name = FIREWALL server string = Linux workstation security = DOMAIN encrypt passwords = Yes password server = kovai-x30kwi8z3 winbind uid = 1-2 winbind gid = 1-2 template shell = /bin/bash winbind separator = + winbind cache time = 10 winbind use default domain = Yes ]# ./smbpasswd -j KOVAITEST -r kovai-x30kwi8z3 -UAdministrator%win2000Joined domain KOVAITEST. ]# ./wbinfo -tCould not check secret IN LOG.winbindd ]# tail -f log.winbindd [2003/01/23 15:10:41, 10] nsswitch/winbindd_cm.c:cm_open_connection(334) returning negative open_connection_cache entry for KOVAITEST, KOVAI-X30KWI8Z3[2003/01/23 15:10:41, 3] nsswitch/winbindd_cm.c:get_connection_from_cache(435) Could not open a connection to KOVAITEST for \PIPE\lsarpc (NT_STATUS_LOGON_FAILURE)[2003/01/23 15:10:51, 1] nsswitch/winbindd_util.c:init_domain_list(143) Retrying startup domain sid fetch for KOVAITEST[2003/01/23 15:10:51, 10] nsswitch/winbindd_cm.c:cm_get_dc_name(108) get_dc_name_cache entry expired for KOVAITEST[2003/01/23 15:10:51, 10] nsswitch/winbindd_cm.c:cm_get_dc_name(130) Creating get_dc_name_cache entry for KOVAITEST[2003/01/23 15:10:51, 3] libsmb/namequery.c:resolve_lmhosts(768) resolve_lmhosts: Attempting lmhosts lookup for name kovai-x30kwi8z30x20[2003/01/23 15:10:51, 4] libsmb/namequery.c:startlmhosts(474) startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error was No such file or directory[2003/01/23 15:10:51, 10] libsmb/nmblib.c:parse_nmb(471) parse_nmb: packet id = 10137[2003/01/23 15:10:51, 5] libsmb/nmblib.c:read_packet(719) Received a packet of len 355 from (172.16.1.251) port 137[2003/01/23 15:10:51, 4] libsmb/nmblib.c:debug_nmb_packet(107) nmb packet from 172.16.1.251(137) header: id=10137 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=KOVAITEST1c rr_type=33 rr_class=1 ttl=0 answers 0 char .KOVAI-X30KWI8Z3 hex 0C4B4F5641492D5833304B5749385A33 answers 10 char .D.KOVAI-X30KWI8 hex 0044004B4F5641492D5833304B574938 answers 20 char Z3 D.KOVAITEST hex 5A332044004B4F564149544553542020 answers 30 char ...KOVAITEST hex 2020202000C4004B4F56414954455354 answers 40 char ...KOVAITE hex 2020202020201CC4004B4F5641495445 answers 50 char ST .D.KOVAI hex 53542020202020201B44004B4F564149 answers 60 char -X30KWI8Z3.D.INe hex 2D5833304B5749385A33034400494E65 answers 70 char t~Services ...K hex 747E536572766963657320201CC4004B answers 80 char OVAITEST .. hex 4F564149544553542020202020201EC4 answers 90 char .IS~VAI-X30KWI8Z hex 0049537E5641492D5833304B5749385A answers a0 char 3D.KOVAITEST hex 3344004B4F5641495445535420202020 answers b0 char .D...__MSBROWS hex 20201D440001025F5F4D5342524F5753 answers c0 char E__ADMINISTR hex 455F5F0201C40041444D494E49535452 answers d0 char ATOR .D...[8... hex 41544F5220200344065B3899A800 answers e0 char hex answers f0 char hex answers 100 char ... hex 00[2003/01/23 15:10:51, 3] nsswitch/winbindd_cm.c:cm_get_dc_name(205) cm_get_dc_name: Returning DC KOVAI-X30KWI8Z3 (172.16.1.251) for domain KOVAITEST Thanks and Regards, Sathi