[Samba] Samba with LDAP Authentication
Hello All, I want to authenticate existing LDAP users to samba shares. From what i have been reading, it seems like there are two ways to achieve this 1. Configure samba to use plaintext passwords (encrypt passwords = no in smb.conf) and configure clients to send unencrypted passwords. 2. Use smbpasswd utility to add users. Using this utility the user's samba password will be different from the LDAP password. I don't want to use plaintext authentication so cannot use the first method described here. I also want the samba password to be the same as the LDAP password and must be in sync. Is there anyway to achieve this? Can anyone please point me in the right direction? I would really appreciate your help. Thanks, Amit -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Weird issue with samba 3.4.7
Hello All, I have samba version 3.3.2 installed on a system running Ubuntu Server 9.04 (32-bit). The users trying to mount the samba shares authenticate over the LDAP server. Here is how my configuration files look like, 1. /etc/samba/smb.conf [global] server string = %h server (Samba, Ubuntu) map to guest = Bad User obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . unix password sync = Yes syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 dns proxy = No usershare allow guests = Yes panic action = /usr/share/samba/panic-action %d passdb backend = ldapsam:ldaps://ldap1.xetus.com ldap suffix = dc=xetus,dc=com 2. /etc/nsswitch.conf passwd: files ldap group: files ldap shadow: files ldap hosts: files dns networks:files protocols:db files services: db files ethers:db files rpc: db files netgroup: nis 3. /etc/pam.d/common-auth auth[success=2 default=ignore] pam_unix.so nullok_secure auth[success=1 default=ignore] pam_ldap.so use_first_pass authrequisite pam_deny.so authrequiredpam_permit.so 4. /etc/pam.d/common-account account [success=2 new_authtok_reqd=done default=ignore]pam_unix.so account [success=1 default=ignore] pam_ldap.so account requisite pam_deny.so account requiredpam_permit.so 5. /etc/pam.d/common-password passwordrequisite pam_cracklib.so retry=3 minlen=8 difok=3 password[success=2 default=ignore] pam_unix.so obscure use_authtok try_first_pass sha512 password[success=1 user_unknown=ignore default=die] pam_ldap.so use_authtok try_first_pass passwordrequisite pam_deny.so passwordrequiredpam_permit.so passwordoptionalpam_smbpass.so nullok use_authtok use_first_pass 6. /etc.pam.d/common-session session [default=1] pam_permit.so session requisite pam_deny.so session requiredpam_permit.so session requiredpam_unix.so session optionalpam_ldap.so session optionalpam_ck_connector.so nox11 session requiredpam_mkhomedir.so umask=0022 skel=/etc/skel I have another system running Ubuntu Server 10.04 (64-bit) where samba version 3.4.7 is installed (using apt-get). The /etc/nsswitch.conf and all the /etc/pam.d/common-{auth, ccount,password,session} match the respective files from Ubuntu Server 9.04 system (described earlier). Other relevant packages installed on both the systems are winbind, libpam-smbpass and smbldap-tools. My question is, why does ldap authentication works with samba version 3.3.2 and not with samba version 3.4.7 even though the directives in the configuration files are the same? Am i missing a step here. Can anyone point me in the right direction on this issue. I would appreciate all your time and help. Thanks in advance. - Amit -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Weird issue with samba 3.4.7
Hello Chris, Thank you for your response. I appreciate it. Are you using a custom cert for your ldap server? - Yes i am using a custom cert for the ldap connection If so, do you have the root cert installed and do your ldap configuration files have the right tls_cacertfile entries? - I have the root cert installed and the samba host has the right tls_certificate entries - Is your ldap password password properly configured on the 10.04 host? - Yes the ldap password is properly configured on the samba 10.04 host. When i add the following directives to the smb.conf file and run smbpasswd -W to write the password to the secrets.tdb file, samba is able to connect to the LDAP server (verified through logs) and do a user lookup. Now users trying to mount the shares are authenticated successfully only if they have previously logged in to the system (via ssh), else i get errors (in logs) such as NT_STATUS_WRONG_PASSWORD. I am stuck here. For now, I am reading how authentication in samba works. Thanks, Amit On Oct 26, 2011, at 12:22 PM, Chris Perry wrote: On Wed, Oct 26, 2011 at 2:59 PM, Amit More am...@xetus.com wrote: Hello All, I have samba version 3.3.2 installed on a system running Ubuntu Server 9.04 (32-bit). The users trying to mount the samba shares authenticate over the LDAP server. Here is how my configuration files look like, Your /etc/nsswitch.conf and pam.d configurations look identical to my 10.04 64bit config, other than the fact that I don't have the pam_smbpass.so in password or pam_mkhomerdir.so in session, so I don't think your problem lies there. I would check your ldap configuration to make sure that works properly before investigating the samba config. In that regard a few questions come to mind: Are you using a custom cert for your ldap server? If so, do you have the root cert installed and do your ldap configuration files have the right tls_cacertfile entries? Is your ldap password password properly configured on the 10.04 host? -Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.4.7 with LDAP authentication
Hello Miguel, Thanks for your response. I used ldapsearch to querry the LDAP server from the system running samba and got the following output, Querry used: ldapsearch -LLL -x -D cn=root,dc=xetus,dc=com -W -H ldap://172.16.1.58; -b ou=people,dc=xetus,dc=com (uid=amore) Output: dn: cn=Amit More,ou=people,dc=xetus,dc=com givenName:: QW1pdCA= sn: More cn: Amit More uid: amore userPassword:: e01ENX1JRWZ1eVpaMkhscVJFUE8vTndGMkNnPT0= uidNumber: 5004 gidNumber: 5001 homeDirectory: /home/users/amore loginShell: /bin/bash objectClass: inetOrgPerson objectClass: posixAccount objectClass: hostObject objectClass: top host: fileserver i have also confirmed this using phpldapadmin. Now, when i issue pdbedit -L -u amore command i get the following output, doing parameter security = user doing parameter encrypt passwords = true doing parameter passdb backend = ldapsam:ldap://ldap1.xetus.com/ doing parameter ldap admin dn = cn=root,dc=xetus,dc=com doing parameter ldap user suffix = ou=people doing parameter ldap group suffix = ou=groups doing parameter ldap machine suffix = ou=people doing parameter ldap suffix = dc=xetus,dc=com doing parameter ldap ssl = no doing parameter obey pam restrictions = yes doing parameter unix password sync = yes doing parameter passwd program = /usr/bin/passwd %u doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . doing parameter pam password change = yes doing parameter map to guest = bad user doing parameter usershare allow guests = yes pm_process() returned Yes smbldap_search_domain_info: Searching for:[((objectClass=sambaDomain)(sambaDomainName=FILESERVER))] smbldap_open_connection: connection opened ldap_connect_system: successful connection to the LDAP server The LDAP server is successfully connected ldapsam_getsampwnam: Unable to locate user [amore] count=0 Username not found! I am not able to figure out where i am going wrong. Thanks, Amit On Oct 7, 2011, at 6:33 AM, Miguel Medalha wrote: User Search failed! There's something seriously wrong with your LDAP configuration. Are you sure that the OUs exist and are in the proper place? Can you use some LDAP client (LAM,phpldapadmin, LDAPAdmin, Apache Directory Studio, etc) ro inspect the LDAP database? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba 3.4.7 with LDAP authentication
: version 0.7.13 Samba and OpenLDAP are running on two different systems. LDAP users can ssh into the machine running samba without any issues. Can anybody point me in the right direction? I would appreciate all your time and help. Thanks, Amit -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.4.7 with LDAP authentication
Thank you for your response. I appreciate it. I changed the following directives, passdb backend = ldapsam:ldap://ldap1.example.com/ ldap user suffix = ou=people ldap group suffix = ou=groups Added the following, ldap admin dn = cn=root,dc=example,dc=com ldap machine suffix = ou=people LDAP users are still not able to authenticate to the samba share. The error is the same. Heres an extract from the log file (/var/log/samba/user.log) [2011/10/06 13:48:38, 3] auth/auth.c:222(check_ntlm_password) check_ntlm_password: Checking password for unmapped user [FILESERVER]\[amore]@[MACBOOKPRO-1B99] with the new password interface [2011/10/06 13:48:38, 3] auth/auth.c:225(check_ntlm_password) check_ntlm_password: mapped user is: [FILESERVER]\[amore]@[MACBOOKPRO-1B99] [2011/10/06 13:48:38, 3] smbd/sec_ctx.c:210(push_sec_ctx) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2011/10/06 13:48:38, 3] smbd/uid.c:428(push_conn_ctx) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2011/10/06 13:48:38, 3] smbd/sec_ctx.c:310(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2011/10/06 13:48:38, 2] lib/smbldap.c:890(smbldap_open_connection) smbldap_open_connection: connection opened [2011/10/06 13:48:38, 3] lib/smbldap.c:1101(smbldap_connect_system) ldap_connect_system: successful connection to the LDAP server [2011/10/06 13:48:38, 4] lib/smbldap.c:1177(smbldap_open) The LDAP server is successfully connected [2011/10/06 13:48:38, 4] passdb/pdb_ldap.c:1600(ldapsam_getsampwnam) ldapsam_getsampwnam: Unable to locate user [amore] count=0 [2011/10/06 13:48:38, 3] smbd/sec_ctx.c:418(pop_sec_ctx) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2011/10/06 13:48:38, 3] auth/auth_sam.c:282(check_sam_security) check_sam_security: Couldn't find user 'amore' in passdb. [2011/10/06 13:48:38, 2] auth/auth.c:320(check_ntlm_password) check_ntlm_password: Authentication for user [amore] - [amore] FAILED with error NT_STATUS_NO_SUCH_USER [2011/10/06 13:48:38, 3] smbd/sesssetup.c:42(do_map_to_guest) No such user amore [FILESERVER] - using guest account [2011/10/06 13:48:38, 4] passdb/pdb_ldap.c:2550(ldapsam_getgroup) ldapsam_getgroup: Did not find group, filter was ((objectClass=sambaGroupMapping)(gidNumber=65534)) [2011/10/06 13:48:38, 3] smbd/sec_ctx.c:210(push_sec_ctx) Thanks, Amit On Oct 6, 2011, at 1:27 PM, Miguel Medalha wrote: ldap user suffix = ou=people,dc=example,dc=com ldap group suffix = ou=groups,dc=example,dc=com ldap suffix = dc=example,dc=com Since your suffix is already in ldap suffix, the other entries should be: ldap user suffix = ou=people ldap group suffix = ou=groups Don't you need the entry ldap machine suffix? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 3.4.7 with LDAP authentication
the output of `pdbedit -L` is doing parameter security = user doing parameter encrypt passwords = true doing parameter passdb backend = ldapsam:ldap://ldap1.xetus.com/ doing parameter ldap admin dn = cn=root,dc=xetus,dc=com doing parameter ldap user suffix = ou=people doing parameter ldap group suffix = ou=groups doing parameter ldap machine suffix = ou=people doing parameter ldap suffix = dc=xetus,dc=com doing parameter ldap ssl = no doing parameter obey pam restrictions = yes doing parameter unix password sync = yes doing parameter passwd program = /usr/bin/passwd %u doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . doing parameter pam password change = yes doing parameter map to guest = bad user doing parameter usershare allow guests = yes pm_process() returned Yes smbldap_search_domain_info: Searching for:[((objectClass=sambaDomain)(sambaDomainName=FILESERVER))] smbldap_open_connection: connection opened ldap_connect_system: successful connection to the LDAP server The LDAP server is successfully connected smbldap_search_paged: base = [dc=xetus,dc=com], filter = [((uid=*)(objectclass=sambaSamAccount))],scope = [2], pagesize = [1024] smbldap_search_paged: search was successful User Search failed! On Oct 6, 2011, at 2:38 PM, Miguel Medalha wrote: [2011/10/06 13:48:38, 4] passdb/pdb_ldap.c:1600(ldapsam_getsampwnam) ldapsam_getsampwnam: Unable to locate user [amore] count=0 [2011/10/06 13:48:38, 3] auth/auth_sam.c:282(check_sam_security) check_sam_security: Couldn't find user 'amore' in passdb. [2011/10/06 13:48:38, 2] auth/auth.c:320(check_ntlm_password) check_ntlm_password: Authentication for user [amore] - [amore] FAILED with error NT_STATUS_NO_SUCH_USER [2011/10/06 13:48:38, 3] smbd/sesssetup.c:42(do_map_to_guest) No such user amore [FILESERVER] - using guest account [2011/10/06 13:48:38, 4] passdb/pdb_ldap.c:2550(ldapsam_getgroup) ldapsam_getgroup: Did not find group, filter was ((objectClass=sambaGroupMapping)(gidNumber=65534)) Are you sure that the LDAP database is correct? Are the user and group names in the correct places? What is the output of pdbedit -L ? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Issue with change password on windows dialog
Have you installed 'libpam-smbpass ? Here is the link for your reference https://help.ubuntu.com/10.04/serverguide/C/samba-fileprint-security.html Thanks, Amit More On Thu, 2011-03-24 at 03:36 +0900, TAKAHASHI Motonobu wrote: Your error is probably caused by the PAM setting. Set debug option to PAM modules and look at syslog files. Anyway, if you enable pam password change = yes, both passwd program and passwd chat parameters will be ignored. --- TAKAHASHI Motonobu mo...@samba.gr.jp From: Markus Scharitzer markus.scharit...@gmail.com Date: Wed, 23 Mar 2011 13:53:16 +0100 Hi everybody! I am having an issue regarding my samba/pam configuration. I am trying to sync my unix/samba passwords, but everything i found online doesn't help. My System runs Gentoo/Samba 3.5.8 as PDC(roaming profiles host and so on) , and WinXP Clients. Domainjoin and Login work fine. But I want to change the Passwords from the Windows interface. When I try to change the password using the Windows change password dialog. I get an error saying that i don't have permissions to do so. It works fine from the Unixshell. Samba log looks like: [2011/03/23 12:06:05.149471, 2] auth/auth.c:304(check_ntlm_password) check_ntlm_password: authentication for user [xx] - [xx] - [xx] succeeded [2011/03/23 12:06:05.152839, 0] auth/pampass.c:699(smb_pam_chauthtok) PAM: User not known to PAM [2011/03/23 12:06:05.152863, 2] auth/pampass.c:77(smb_pam_error_handler) smb_pam_error_handler: PAM: Password Change Failed : User not known to the underlying authentication module [2011/03/23 12:06:05.152873, 0] auth/pampass.c:861(smb_pam_passchange) smb_pam_passchange: PAM: Password Change Failed for user xx! [2011/03/23 12:06:05.156622, 0] auth/pampass.c:699(smb_pam_chauthtok) PAM: User not known to PAM [2011/03/23 12:06:05.156637, 2] auth/pampass.c:77(smb_pam_error_handler) smb_pam_error_handler: PAM: Password Change Failed : User not known to the underlying authentication module [2011/03/23 12:06:05.156650, 0] auth/pampass.c:861(smb_pam_passchange) smb_pam_passchange: PAM: Password Change Failed for user xx! [2011/03/23 12:06:05.162118, 0] auth/pampass.c:699(smb_pam_chauthtok) PAM: User not known to PAM [2011/03/23 12:06:05.162133, 2] auth/pampass.c:77(smb_pam_error_handler) smb_pam_error_handler: PAM: Password Change Failed : User not known to the underlying authentication module [2011/03/23 12:06:05.162143, 0] auth/pampass.c:861(smb_pam_passchange) smb_pam_passchange: PAM: Password Change Failed for xx! [2011/03/23 12:06:05.165908, 0] auth/pampass.c:699(smb_pam_chauthtok) PAM: User not known to PAM [2011/03/23 12:06:05.165923, 2] auth/pampass.c:77(smb_pam_error_handler) smb_pam_error_handler: PAM: Password Change Failed : User not known to the underlying authentication module [2011/03/23 12:06:05.165932, 0] auth/pampass.c:861(smb_pam_passchange) smb_pam_passchange: PAM: Password Change Failed for user xx! my smb.conf looks like: unix password sync = yes pam password change = yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Re*ype*new*password* %n\n \ *passwd:*all*authentication*tokens*updated*successfully* my pam-files look like: samba: @include system-auth @include system-password auth required pam_smbpass.so nodelay account include system-auth session include system-auth password required pam_smbpass.so nodelay smbconf=/etc/samba/smb.conf system-auth auth required pam_env.so auth required pam_unix.so try_first_pass likeauth nullok auth optional pam_permit.so auth optional pam_smbpass.so migrate account required pam_unix.so account optional pam_permit.so password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3 password required pam_unix.so try_first_pass use_authtok nullok sha512 shadow password optional pam_permit.so password required pam_smbpass.so nullok use_authok try_first_pass session required pam_limits.so session required pam_env.so session required pam_unix.so session optional pam_permit.so system-password: password requisite pam_unix.so nullok obscure min=4 max=8 md5 password required pam_smbpass.so nullok try_first_pass Thanks kindly! Best regards, -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Mac OS X user having problems connecting to samba running on Ubuntu Server
Hi all, Doing a bit of research on samba and hostname lead me to find the actual cause of the problem. If you don't specify the netbios name = directive in the samba configuration(smb.conf) file, samba uses hostname as the netbios name (ref: http://www.justlinux.com/forum/archive/index.php/t-126124.html read cowanrl's comment) and the maximum length of a netbios name is 16 characters. However, Microsoft limits the netbios name to 15 characters (ref: http://support.microsoft.com/kb/163409). In my case i had not specified the netbios name = directive in smb.conf file and the hostname was more than 16 characters. Adding netbios name = to something less than 15 characters did the trick. My hostname is more than 16 characters. Hope this helps some of you out there. Thanks, Amit More On Mon, 2011-03-21 at 18:16 -0700, Amit More wrote: Hello all, After spending some time looking into the problem, I have found out that changing the hostname of the machine on which samba was running to be 16(or less) characters long did the trick. With internalfileserver(which is 18 characters long) as hostname Mac users were not able to connect to the share via connect to server(apple + k) application but could connect via the command line. Changing the hostname to fileserver(which is 10 characters long) allowed Mac users to connect to the share via connect to server application as well as via the command line. I am not able to figure this out. I will share it with samba users once i find something useful. Thanks, Amit More On Thu, 2011-03-17 at 18:51 -0700, Amit More wrote: Hello all, I have installed samba version 3.3.2 on Ubuntu 9.04 server 32-bit following the documentation https://help.ubuntu.com/9.10/serverguide/C/samba-fileserver.html Windows and Ubuntu users can see and mount the shares with no problem at all. Mac OS 10.6.x users can connect to samba from terminal using smbclient, but they are refused connection when they try to connect via finder (ie using apple + k). The error Mac users get is “wrong username or password”. However, they can connect via finder only when they prefix the username with any domain name. They can pass any arbitrary domain name before the username to connect to the samba share. To be more clear here is an example smb://server.domain.com/File_share username: arbitrary-domain-name\username Also, Mac OS X users having problem connecting to samba running on Ubuntu server are able to mount the shares from Windows Server 2003 via finder. I have set the following parameters in my /etc/samba/smb.conf file workgroup = WORKGROUP server string = %h server (Samba, Ubuntu) dns proxy = no security = user encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s* \spassword:* %n\n *password\supdated\ssuccessfully* . map to guest = bad user usershare allow guests = yes [share] comment = Ubuntu File Server Share path = /srv/samba/share browsable = yes guest ok = no read only = no create mask = 0755 Things that I have tried: 1. Adding public = yes in share 2. Setting encryption = false I am new to samba and have been doing research for a long time to get this working. Is there any workaround for the problem that I am facing. I would appreciate all your help. Thanks in advance, Amit More -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Mac OS X user having problems connecting to samba running on Ubuntu Server
Hello all, After spending some time looking into the problem, I have found out that changing the hostname of the machine on which samba was running to be 16(or less) characters long did the trick. With internalfileserver(which is 18 characters long) as hostname Mac users were not able to connect to the share via connect to server(apple + k) application but could connect via the command line. Changing the hostname to fileserver(which is 10 characters long) allowed Mac users to connect to the share via connect to server application as well as via the command line. I am not able to figure this out. I will share it with samba users once i find something useful. Thanks, Amit More On Thu, 2011-03-17 at 18:51 -0700, Amit More wrote: Hello all, I have installed samba version 3.3.2 on Ubuntu 9.04 server 32-bit following the documentation https://help.ubuntu.com/9.10/serverguide/C/samba-fileserver.html Windows and Ubuntu users can see and mount the shares with no problem at all. Mac OS 10.6.x users can connect to samba from terminal using smbclient, but they are refused connection when they try to connect via finder (ie using apple + k). The error Mac users get is “wrong username or password”. However, they can connect via finder only when they prefix the username with any domain name. They can pass any arbitrary domain name before the username to connect to the samba share. To be more clear here is an example smb://server.domain.com/File_share username: arbitrary-domain-name\username Also, Mac OS X users having problem connecting to samba running on Ubuntu server are able to mount the shares from Windows Server 2003 via finder. I have set the following parameters in my /etc/samba/smb.conf file workgroup = WORKGROUP server string = %h server (Samba, Ubuntu) dns proxy = no security = user encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s* \spassword:* %n\n *password\supdated\ssuccessfully* . map to guest = bad user usershare allow guests = yes [share] comment = Ubuntu File Server Share path = /srv/samba/share browsable = yes guest ok = no read only = no create mask = 0755 Things that I have tried: 1. Adding public = yes in share 2. Setting encryption = false I am new to samba and have been doing research for a long time to get this working. Is there any workaround for the problem that I am facing. I would appreciate all your help. Thanks in advance, Amit More -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Mac OS X user having problems connecting to samba running on Ubuntu Server
Hello all, I have installed samba version 3.3.2 on Ubuntu 9.04 server 32-bit following the documentation https://help.ubuntu.com/9.10/serverguide/C/samba-fileserver.html Windows and Ubuntu users can see and mount the shares with no problem at all. Mac OS 10.6.x users can connect to samba from terminal using smbclient, but they are refused connection when they try to connect via finder (ie using apple + k). The error Mac users get is “wrong username or password”. However, they can connect via finder only when they prefix the username with any domain name. They can pass any arbitrary domain name before the username to connect to the samba share. To be more clear here is an example smb://server.domain.com/File_share username: arbitrary-domain-name\username Also, Mac OS X users having problem connecting to samba running on Ubuntu server are able to mount the shares from Windows Server 2003 via finder. I have set the following parameters in my /etc/samba/smb.conf file workgroup = WORKGROUP server string = %h server (Samba, Ubuntu) dns proxy = no security = user encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s* \spassword:* %n\n *password\supdated\ssuccessfully* . map to guest = bad user usershare allow guests = yes [share] comment = Ubuntu File Server Share path = /srv/samba/share browsable = yes guest ok = no read only = no create mask = 0755 Things that I have tried: 1. Adding public = yes in share 2. Setting encryption = false I am new to samba and have been doing research for a long time to get this working. Is there any workaround for the problem that I am facing. I would appreciate all your help. Thanks in advance, Amit More -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Fw: [Samba] HP Laserjet Printer Installation
Dear all, Can any body help m on this to resolve my issue permanently. I m almost done, but one bug is creating problem unable to resolve it as per mail reply from one of our colgn niranjan.ashok. Following command is not working on my system ie $ svn co http://svn.easysw.com/public/cups/branches/branch-1.3/. Its showing error as could not resolve hostname, host not found. Following is the actual scenarion :- I have a very good query related to printer sharing using samba. Following is the scenario... I had installed HP laserjet 9040Dn printer on redhat Enterprise linux 5. Shared it using samba. Used winbind protocol to integrate linux with windows AD 2003. Now i am able to see printer in Active directory as well as linux computer account in AD. But unable to set option lpadmin -p printer -o job-quota-period=604800 -o job-page-limit=100 Going after lot of forums, i found that printer should support job-page-limit option. Whatever drivers installed for printer are current drivers ie also from HP site only. HP doesant support linux OS. So no support from there. Following is the o/p of lpoptions -l command for the above printer. As per problem description , it seems it is a cups issue than samba issue . When you set the limits using lpadmin command, does the limit show in /etc/cups/printers.conf ? ie. when you run lpadmin -p printer -o job-quota-period=604800 -o job-page-limit=100 does these limits show in /etc/cups/printers.conf in the printer definition section ? Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing - Forwarded by Amit Anjarlekar/MUM/TCS on 05/08/2009 01:40 PM - mallapadi niranjan niranjan.as...@g To mail.com amit.anjarle...@tcs.com cc 05/07/2009 04:49 PMSubject Re: [Samba] HP Laserjet Printer Installation Hi amit I am sorry , due to my other commitments, i cannot at present give you a step by step guide in my previous post, i told to run svn command $ svn co http://svn.easysw.com/public/cups/branches/branch-1.3/ svn is the command and co is to checkout the branch, So on the system in question, you need to run the above command. if in case you still have issues, take this issue to cups mailing list, bye niranjan On Tue, May 5, 2009 at 4:44 PM, amit.anjarle...@tcs.com wrote: Hi mallapadi, Thanks for replying my mail till date. I just want to conclude now as how do i fix this bug? If i go to following URL, lot of files folders are present. Do u have a simple procedure for doing this activity. Actually i m also new to linux thats why unable to conclude as how do i go for the same? http://svn.easysw.com/public/cups/branches/branch-1.3/ Pls guide step by step procedure if possible to resolve the issue. Thanks regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing mallapadi niranjan niranjan.as...@g To mail.com amit.anjarle...@tcs.com cc 04/28/2009 11:47 AM Subject Re: [Samba] HP Laserjet Printer Installation Hi, The FC10 cups package too doesn't have the fix , As i have
Re: Fw: [Samba] HP Laserjet Printer Installation
How do i do that. Pls guide. Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing Volker Lendecke Volker.Lendecke@ SerNet.DE To amit.anjarle...@tcs.com 05/08/2009 03:10 cc PMsamba@lists.samba.org Subject Re: Fw: [Samba] HP Laserjet Printer Please respond to Installation volker.lende...@s erNet.DE On Fri, May 08, 2009 at 02:38:06PM +0530, amit.anjarle...@tcs.com wrote: Can any body help m on this to resolve my issue permanently. I m almost done, but one bug is creating problem unable to resolve it as per mail reply from one of our colgn niranjan.ashok. Following command is not working on my system ie $ svn co http://svn.easysw.com/public/cups/branches/branch-1.3/. Its showing error as could not resolve hostname, host not found. Following is the actual scenarion :- I have a very good query related to printer sharing using samba. This is not a Samba problem, you should fix your network setup. Volker [attachment attbhi2l.dat deleted by Amit Anjarlekar/MUM/TCS] ForwardSourceID:NT00023F1A =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: Fw: [Samba] HP Laserjet Printer Installation
Hi team, Pls guide as i m in desperate need of the same. I m getting different soln's each time. Confused!!! Pls guide as i m new to linux. Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing Amit Anjarlekar/MUM/TC S To volker.lende...@sernet.de 05/08/2009 03:14 cc PMsamba@lists.samba.org Subject Re: Fw: [Samba] HP Laserjet Printer Installation(Document link: Amit Anjarlekar) How do i do that. Pls guide. Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing Volker Lendecke Volker.Lendecke@ SerNet.DE To amit.anjarle...@tcs.com 05/08/2009 03:10 cc PMsamba@lists.samba.org Subject Re: Fw: [Samba] HP Laserjet Printer Please respond to Installation volker.lende...@s erNet.DE On Fri, May 08, 2009 at 02:38:06PM +0530, amit.anjarle...@tcs.com wrote: Can any body help m on this to resolve my issue permanently. I m almost done, but one bug is creating problem unable to resolve it as per mail reply from one of our colgn niranjan.ashok. Following command is not working on my system ie $ svn co http://svn.easysw.com/public/cups/branches/branch-1.3/. Its showing error as could not resolve hostname, host not found. Following is the actual scenarion :- I have a very good query related to printer sharing using samba. This is not a Samba problem, you should fix your network setup. Volker [attachment attbhi2l.dat deleted by Amit Anjarlekar/MUM/TCS] ForwardSourceID:NT00023F1A ForwardSourceID:NT00023F1E =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: Fw: [Samba] HP Laserjet Printer Installation
Hi Charles, I think u have taken wrong meaning of word 'new-to-linux'. I have cleared RHCE having good knowledge of all the applications used in linux including samba. I tried a lot got different suggestions, but unable to conclude. So finally written as confused!! Please guide me as per my problem if anybody have any idea. Thanks Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing Charles Marcus cmar...@media-br okers.com To amit.anjarle...@tcs.com 05/08/2009 05:59 cc PMsamba@lists.samba.org Subject Re: Fw: [Samba] HP Laserjet Printer Installation On 5/8/2009, amit.anjarle...@tcs.com (amit.anjarle...@tcs.com) wrote: Pls guide as i m new to linux. Sorry, I feel your pain, but this is not a 'new-to-linux' group, this is for discussing problems with samba. You need to learn how to for help in the appropriate place - in this case, a place for basic linux help/questions... A good place to start is the user forums/lists for your linux distribution. -- Best regards, Charles ForwardSourceID:NT00023F4A =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: Fw: [Samba] HP Laserjet Printer Installation
Ok Charles, Thr is mistake from my side.. But can u have any soln for the same, because i desperately want this.. Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing Charles Marcus cmar...@media-br okers.com To amit.anjarle...@tcs.com 05/08/2009 08:52 cc PMsamba@lists.samba.org Subject Re: Fw: [Samba] HP Laserjet Printer Installation On 5/8/2009, amit.anjarle...@tcs.com (amit.anjarle...@tcs.com) wrote: I think u have taken wrong meaning of word 'new-to-linux'. I have cleared RHCE having good knowledge of all the applications used in linux including samba. Well... again, not to be rude, but when you say you are new to linux (your words, not mine), how else is one to take it other than you are new to linux? I understand English is not your native language, but ... ?? -- Best regards, Charles ForwardSourceID:NT00023F7E =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] HP Laserjet Printer Installation
Hi , After upgrading to latest version, still lpadmin with quota command not working. Any idea or any file needs to edit? Kindly suggest. Following is scrnshot for ur ref.. I tried by installing fedora 10 as it has the latest cups version. Name: cups Relocations: (not relocatable) Version : 1.3.9 Vendor: Fedora Project Release : 2.fc10Build Date: Tue 21 Oct 2008 03:58:44 PM IST Install Date: Wed 22 Apr 2009 10:10:50 AM IST Build Host: x86-4.fedora.phx.redhat.com Group : System Environment/DaemonsSource RPM: cups-1.3.9-2.fc10.src.rpm Size: 10653448 License: GPLv2 Signature : DSA/SHA1, Tue 28 Oct 2008 10:24:22 PM IST, Key ID bf226fcc4ebfc273 Packager: Fedora Project URL : http://www.cups.org/ Summary : Common Unix Printing System Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing Amit Anjarlekar/MUM/TC S To mallapadi niranjan 04/14/2009 03:42 niranjan.as...@gmail.com, PMsamba@lists.samba.org cc Subject Re: [Samba] HP Laserjet Printer Installation(Document link: Amit Anjarlekar) Hi, Also i m not able to find PID file for cups as well PID no. for cups using command ps -ef | grep cups Following is the o/p for rpm -qi cups command Name: cups Relocations: (not relocatable) Version : 1.2.4 Vendor: Red Hat, Inc. Release : 11.5.el5 Build Date: Tue 12 Dec 2006 05:02:44 PM IST Install Date: Sat 07 Mar 2009 11:59:04 AM IST Build Host: ls20-bc1-13.build.redhat.com Group : System Environment/DaemonsSource RPM: cups-1.2.4-11.5.el5.src.rpm Size: 8201990 License: GPL Signature : DSA/SHA1, Wed 17 Jan 2007 10:28:48 PM IST, Key ID 5326810137017186 Packager: Red Hat, Inc. http://bugzilla.redhat.com/bugzilla URL : http://www.cups.org/ Summary : Common Unix Printing System Description : The Common UNIX Printing System provides a portable printing layer for UNIX® operating systems. It has been developed by Easy Software Products to promote a standard printing solution for all UNIX vendors and users. CUPS provides the System V and Berkeley command-line interfaces. Not updating to latest one too.. But below file shows updated status vi /etc/cups/printers.conf # Printer configuration file for CUPS v1.4b2 # Written by cupsd on 2009-04-14 14:36 Please let m know anything can b added in this case.. Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing Amit Anjarlekar/MUM/TC S To mallapadi niranjan 04/14/2009 01:15 niranjan.as...@gmail.com PM cc
Re: [Samba] HP Laserjet Printer Installation
Hi, Also i m not able to find PID file for cups as well PID no. for cups using command ps -ef | grep cups Following is the o/p for rpm -qi cups command Name: cups Relocations: (not relocatable) Version : 1.2.4 Vendor: Red Hat, Inc. Release : 11.5.el5 Build Date: Tue 12 Dec 2006 05:02:44 PM IST Install Date: Sat 07 Mar 2009 11:59:04 AM IST Build Host: ls20-bc1-13.build.redhat.com Group : System Environment/DaemonsSource RPM: cups-1.2.4-11.5.el5.src.rpm Size: 8201990 License: GPL Signature : DSA/SHA1, Wed 17 Jan 2007 10:28:48 PM IST, Key ID 5326810137017186 Packager: Red Hat, Inc. http://bugzilla.redhat.com/bugzilla URL : http://www.cups.org/ Summary : Common Unix Printing System Description : The Common UNIX Printing System provides a portable printing layer for UNIX® operating systems. It has been developed by Easy Software Products to promote a standard printing solution for all UNIX vendors and users. CUPS provides the System V and Berkeley command-line interfaces. Not updating to latest one too.. But below file shows updated status vi /etc/cups/printers.conf # Printer configuration file for CUPS v1.4b2 # Written by cupsd on 2009-04-14 14:36 Please let m know anything can b added in this case.. Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing Amit Anjarlekar/MUM/TCS 04/14/2009 01:15 PM To mallapadi niranjan niranjan.as...@gmail.com cc Subject Re: [Samba] HP Laserjet Printer Installation Hi niranjan, Thanks for the support .. Can u just guide as where do i chk init script that you are using point to the newly compiled cupsd? Log file i m not getting anything related to this. Pls advise. Thanks in advance.. Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing mallapadi niranjan niranjan.as...@gmail.com 04/13/2009 10:37 PM To amit.anjarle...@tcs.com cc Subject Re: [Samba] HP Laserjet Printer Installation Hi amit Also one thing i forgot to mention ie after installation of latest cups service cups restart is showing following error: cups: restarted scheduler. [ OK ] Cups service not starting. Can u guide as what may b the reason. I followed the procedure from INSTALL.txt file. Does the init script that you are using point to the newly compiled cupsd Also, it can be possible that cupsd process is already running and you are trying to start the cupsd process again. check what messages are reported in /var/log/cups/error.log or appropriate error log file. Regards Niranjan On Mon, Apr 13, 2009 at 3:07 PM, amit.anjarle...@tcs.com wrote: Hi, Its not reflecting in /etc/cups/printers.conf file . Even if i am manually adding the entry, is also not working. Pls suggest. Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty.IT Services Business Solutions Outsourcing mallapadi niranjan niranjan.as...@gmail.com 04/13/2009 02:04 PM To amit.anjarle...@tcs.com cc Subject Re: [Samba] HP Laserjet Printer Installation Hi Amit On Mon, Apr 13, 2009 at 1:18 PM, amit.anjarle...@tcs.com wrote: Hi all, I have a very good query related to printer sharing using samba. Following is the scenario... I had installed HP laserjet 9040Dn printer on redhat Enterprise linux 5. Shared it using samba. Used winbind protocol to integrate linux with windows AD 2003. Now i am able to see printer in Active directory as well as linux computer account in AD. But unable to set option lpadmin -p printer -o job-quota-period=604800 -o job-page-limit=100 Going after lot of forums, i found that printer should support job-page-limit option. Whatever drivers installed for printer are current drivers ie also from HP site only. HP doesant support linux OS. So no support from there. Following is the o/p of lpoptions -l command for the above printer. As per problem description , it seems it is a cups issue than samba issue . When you set the limits using lpadmin command, does the limit show in /etc/cups/printers.conf ? ie. when you run lpadmin -p printer
[Samba] HP Laserjet Printer Installation
Hi all, I have a very good query related to printer sharing using samba. Following is the scenario... I had installed HP laserjet 9040Dn printer on redhat Enterprise linux 5. Shared it using samba. Used winbind protocol to integrate linux with windows AD 2003. Now i am able to see printer in Active directory as well as linux computer account in AD. But unable to set option lpadmin -p printer -o job-quota-period=604800 -o job-page-limit=100 Going after lot of forums, i found that printer should support job-page-limit option. Whatever drivers installed for printer are current drivers ie also from HP site only. HP doesant support linux OS. So no support from there. Following is the o/p of lpoptions -l command for the above printer. HPOption_Tray1/Tray 1: True *False HPOption_2000_Sheet_Tray/2000-Sheet Input Tray (Tray 4): True *False HPOption_Duplexer/Duplex Unit: True *False HPOption_Disk/Printer Disk: *None RAMDisk HardDisk HPOption_MBM_Mixed/Accessory Output Bins: *Standard MBMStaplerStacker MBMStacker HPFinisher HPMultiBinMailbox HPMailboxMode/Mailbox Mode: *PrintersDefault Standard MBMode StackerMode SeparatorMode SorterCollatorMode InstalledMemory/Total Printer Memory: *64-127MB 128-255MB 256-383MB 384-512MB HPOption_PaperPolicy/Fit to Page: *PromptUser NearestSizeAdjust NearestSizeNoAdjust HPJobRetentionOption/Job Retention: HPJobRetentionQuickCopy HPJobRetentionProof HPJobRetentionStore *HPJobRetentionOff HPUserName/User Name: *FileSharingName Forms Set HPJobName/Job Name: *DocName Set HPwmSwitch/Watermark/Overlay: *Off Watermark Overlay HPwmPages/Watermark Pages: *AllPages FirstPage HPwmTextMessage/Watermark Text: *Draft CompanyConfidential CompanyProprietary CompanyPrivate Confidential Copy Copyright FileCopy Final ForInternalUse Preliminary Proof ReviewCopy Sample TopSecret Urgent Set HPwmFontName/Watermark Font: CourierB *HelveticaB TimesB HPwmFontSize/Watermark Size (points): pt24 pt30 pt36 pt42 *pt48 pt54 pt60 pt66 pt72 pt78 pt84 pt90 HPwmTextAngle/Watermark Angle: Deg90 Deg75 Deg60 *Deg45 Deg30 Deg15 Deg0 DegN15 DegN30 DegN45 DegN60 DegN75 DegN90 HPwmTextStyle/Watermark Style: Thin *Medium Thick Halo Fill HPwmBrightness/Watermark Intensity: Darkest Darker Dark MediumDark *Medium MediumLight Light Lighter Lightest OutputBin/Output Destination: *PrinterDefault Upper Left StackerFaceUp Stacker UStapler HPBooklet HP8BinMB HPStaplerOptions/Finishing Options: *PrintersDefault 1diagonal 1parallel 2parallel 3parallel 6parallel HPBooklet HPMailboxOptions/Mailbox Options: *PrintersDefault Bin1 Bin2 Bin3 Bin4 Bin5 Bin6 Bin7 Bin8 Bin1_8 HPEdgeToEdge/Edge-To-Edge Printing: *False True HPRotate180/Rotate Page 180 deg: *False True Collate/Collate: *True False PageSize/Media Size: *Letter LetterSmall Legal LegalSmall Executive HalfLetter w612h935 Tabloid 12X18 A3 RA3 A4 A4Small A5 B5 B4 w612h936 DoublePostcard w774h1116 w558h774 EnvISOB5 Env10 EnvC5 EnvDL EnvMonarch Custom PageRegion/PageRegion: Letter LetterSmall Legal LegalSmall Executive HalfLetter w612h935 Tabloid 12X18 A3 RA3 A4 A4Small A5 B5 B4 w612h936 DoublePostcard w774h1116 w558h774 EnvISOB5 Env10 EnvC5 EnvDL EnvMonarch InputSlot/Media Source: Tray1 *Tray2 Tray3 Tray4Optional ManualFeed/Tray 1 (Manual): True *False MediaType/Media Type: *Unspecified Plain Preprinted Letterhead Transparency Prepunched Labels Bond Recycled Color CardStock164 Rough Envelope Duplex/Duplex: *None DuplexNoTumble DuplexTumble HPHalftone/Levels of Gray: *PrinterDefault Enhanced Standard Resolution/Printer Resolution: 600x600dpi *600x600x2dpi HPEconoMode/EconoMode: *PrinterDefault True False Smoothing/Resolution Enhancement: *PrinterDefault None Light Medium Dark In this i am not able to find job-page-limit option. Any idea as how do i set ? Any setting @ printer end or anything drivers update @ redhat end? Kindly suggest? Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] HP Laserjet Printer Installation
Hi, Its not reflecting in /etc/cups/printers.conf file . Even if i am manually adding the entry, is also not working. Pls suggest. Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing mallapadi niranjan niranjan.as...@gmail.com 04/13/2009 02:04 PM To amit.anjarle...@tcs.com cc Subject Re: [Samba] HP Laserjet Printer Installation Hi Amit On Mon, Apr 13, 2009 at 1:18 PM, amit.anjarle...@tcs.com wrote: Hi all, I have a very good query related to printer sharing using samba. Following is the scenario... I had installed HP laserjet 9040Dn printer on redhat Enterprise linux 5. Shared it using samba. Used winbind protocol to integrate linux with windows AD 2003. Now i am able to see printer in Active directory as well as linux computer account in AD. But unable to set option lpadmin -p printer -o job-quota-period=604800 -o job-page-limit=100 Going after lot of forums, i found that printer should support job-page-limit option. Whatever drivers installed for printer are current drivers ie also from HP site only. HP doesant support linux OS. So no support from there. Following is the o/p of lpoptions -l command for the above printer. As per problem description , it seems it is a cups issue than samba issue . When you set the limits using lpadmin command, does the limit show in /etc/cups/printers.conf ? ie. when you run lpadmin -p printer -o job-quota-period=604800 -o job-page-limit=100 does these limits show in /etc/cups/printers.conf in the printer definition section ? Printer test Info test DeviceURI socket://10.65.63.223 State Idle StateTime 1239611318 Accepting Yes Shared Yes JobSheets none none QuotaPeriod 604800 PageLimit 100 KLimit 0 OpPolicy default ErrorPolicy stop-printer /Printer If not then it's a cups issue . What is the version of cups you are using ? rpm -q cups HPOption_Tray1/Tray 1: True *False HPOption_2000_Sheet_Tray/2000-Sheet Input Tray (Tray 4): True *False HPOption_Duplexer/Duplex Unit: True *False HPOption_Disk/Printer Disk: *None RAMDisk HardDisk HPOption_MBM_Mixed/Accessory Output Bins: *Standard MBMStaplerStacker MBMStacker HPFinisher HPMultiBinMailbox HPMailboxMode/Mailbox Mode: *PrintersDefault Standard MBMode StackerMode SeparatorMode SorterCollatorMode InstalledMemory/Total Printer Memory: *64-127MB 128-255MB 256-383MB 384-512MB HPOption_PaperPolicy/Fit to Page: *PromptUser NearestSizeAdjust NearestSizeNoAdjust HPJobRetentionOption/Job Retention: HPJobRetentionQuickCopy HPJobRetentionProof HPJobRetentionStore *HPJobRetentionOff HPUserName/User Name: *FileSharingName Forms Set HPJobName/Job Name: *DocName Set HPwmSwitch/Watermark/Overlay: *Off Watermark Overlay HPwmPages/Watermark Pages: *AllPages FirstPage HPwmTextMessage/Watermark Text: *Draft CompanyConfidential CompanyProprietary CompanyPrivate Confidential Copy Copyright FileCopy Final ForInternalUse Preliminary Proof ReviewCopy Sample TopSecret Urgent Set HPwmFontName/Watermark Font: CourierB *HelveticaB TimesB HPwmFontSize/Watermark Size (points): pt24 pt30 pt36 pt42 *pt48 pt54 pt60 pt66 pt72 pt78 pt84 pt90 HPwmTextAngle/Watermark Angle: Deg90 Deg75 Deg60 *Deg45 Deg30 Deg15 Deg0 DegN15 DegN30 DegN45 DegN60 DegN75 DegN90 HPwmTextStyle/Watermark Style: Thin *Medium Thick Halo Fill HPwmBrightness/Watermark Intensity: Darkest Darker Dark MediumDark *Medium MediumLight Light Lighter Lightest OutputBin/Output Destination: *PrinterDefault Upper Left StackerFaceUp Stacker UStapler HPBooklet HP8BinMB HPStaplerOptions/Finishing Options: *PrintersDefault 1diagonal 1parallel 2parallel 3parallel 6parallel HPBooklet HPMailboxOptions/Mailbox Options: *PrintersDefault Bin1 Bin2 Bin3 Bin4 Bin5 Bin6 Bin7 Bin8 Bin1_8 HPEdgeToEdge/Edge-To-Edge Printing: *False True HPRotate180/Rotate Page 180 deg: *False True Collate/Collate: *True False PageSize/Media Size: *Letter LetterSmall Legal LegalSmall Executive HalfLetter w612h935 Tabloid 12X18 A3 RA3 A4 A4Small A5 B5 B4 w612h936 DoublePostcard w774h1116 w558h774 EnvISOB5 Env10 EnvC5 EnvDL EnvMonarch Custom PageRegion/PageRegion: Letter LetterSmall Legal LegalSmall Executive HalfLetter w612h935 Tabloid 12X18 A3 RA3 A4 A4Small A5 B5 B4 w612h936 DoublePostcard w774h1116 w558h774 EnvISOB5 Env10 EnvC5 EnvDL EnvMonarch InputSlot/Media Source: Tray1 *Tray2 Tray3 Tray4Optional ManualFeed/Tray 1 (Manual): True *False MediaType/Media Type: *Unspecified Plain Preprinted Letterhead Transparency Prepunched Labels Bond Recycled Color CardStock164 Rough Envelope Duplex/Duplex: *None DuplexNoTumble DuplexTumble HPHalftone/Levels of Gray: *PrinterDefault Enhanced Standard Resolution/Printer Resolution: 600x600dpi *600x600x2dpi
Re: [Samba] HP Laserjet Printer Installation
Hi, Updated to CUPS v1.4b2 version, but still /etc/cups/printers.conf file is not updating as well quota setting not working.. Any luck, pls suggest... Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing mallapadi niranjan niranjan.as...@gmail.com 04/13/2009 03:24 PM To amit.anjarle...@tcs.com cc Subject Re: [Samba] HP Laserjet Printer Installation On Mon, Apr 13, 2009 at 3:07 PM, amit.anjarle...@tcs.com wrote: Hi, Its not reflecting in /etc/cups/printers.conf file . Even if i am manually adding the entry, is also not working. Pls suggest. Then it could be a bug with cups, try latest cups form cups.org Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty.IT Services Business Solutions Outsourcing mallapadi niranjan niranjan.as...@gmail.com 04/13/2009 02:04 PM To amit.anjarle...@tcs.com cc Subject Re: [Samba] HP Laserjet Printer Installation Hi Amit On Mon, Apr 13, 2009 at 1:18 PM, amit.anjarle...@tcs.com wrote: Hi all, I have a very good query related to printer sharing using samba. Following is the scenario... I had installed HP laserjet 9040Dn printer on redhat Enterprise linux 5. Shared it using samba. Used winbind protocol to integrate linux with windows AD 2003. Now i am able to see printer in Active directory as well as linux computer account in AD. But unable to set option lpadmin -p printer -o job-quota-period=604800 -o job-page-limit=100 Going after lot of forums, i found that printer should support job-page-limit option. Whatever drivers installed for printer are current drivers ie also from HP site only. HP doesant support linux OS. So no support from there. Following is the o/p of lpoptions -l command for the above printer. As per problem description , it seems it is a cups issue than samba issue . When you set the limits using lpadmin command, does the limit show in /etc/cups/printers.conf ? ie. when you run lpadmin -p printer -o job-quota-period=604800 -o job-page-limit=100 does these limits show in /etc/cups/printers.conf in the printer definition section ? Printer test Info test DeviceURI socket://10.65.63.223 State Idle StateTime 1239611318 Accepting Yes Shared Yes JobSheets none none QuotaPeriod 604800 PageLimit 100 KLimit 0 OpPolicy default ErrorPolicy stop-printer /Printer If not then it's a cups issue . What is the version of cups you are using ? rpm -q cups HPOption_Tray1/Tray 1: True *False HPOption_2000_Sheet_Tray/2000-Sheet Input Tray (Tray 4): True *False HPOption_Duplexer/Duplex Unit: True *False HPOption_Disk/Printer Disk: *None RAMDisk HardDisk HPOption_MBM_Mixed/Accessory Output Bins: *Standard MBMStaplerStacker MBMStacker HPFinisher HPMultiBinMailbox HPMailboxMode/Mailbox Mode: *PrintersDefault Standard MBMode StackerMode SeparatorMode SorterCollatorMode InstalledMemory/Total Printer Memory: *64-127MB 128-255MB 256-383MB 384-512MB HPOption_PaperPolicy/Fit to Page: *PromptUser NearestSizeAdjust NearestSizeNoAdjust HPJobRetentionOption/Job Retention: HPJobRetentionQuickCopy HPJobRetentionProof HPJobRetentionStore *HPJobRetentionOff HPUserName/User Name: *FileSharingName Forms Set HPJobName/Job Name: *DocName Set HPwmSwitch/Watermark/Overlay: *Off Watermark Overlay HPwmPages/Watermark Pages: *AllPages FirstPage HPwmTextMessage/Watermark Text: *Draft CompanyConfidential CompanyProprietary CompanyPrivate Confidential Copy Copyright FileCopy Final ForInternalUse Preliminary Proof ReviewCopy Sample TopSecret Urgent Set HPwmFontName/Watermark Font: CourierB *HelveticaB TimesB HPwmFontSize/Watermark Size (points): pt24 pt30 pt36 pt42 *pt48 pt54 pt60 pt66 pt72 pt78 pt84 pt90 HPwmTextAngle/Watermark Angle: Deg90 Deg75 Deg60 *Deg45 Deg30 Deg15 Deg0 DegN15 DegN30 DegN45 DegN60 DegN75 DegN90 HPwmTextStyle/Watermark Style: Thin *Medium Thick Halo Fill HPwmBrightness/Watermark Intensity: Darkest Darker Dark MediumDark *Medium MediumLight Light Lighter Lightest OutputBin/Output Destination: *PrinterDefault Upper Left StackerFaceUp Stacker UStapler HPBooklet HP8BinMB HPStaplerOptions/Finishing Options: *PrintersDefault 1diagonal 1parallel 2parallel 3parallel 6parallel HPBooklet HPMailboxOptions/Mailbox Options: *PrintersDefault Bin1 Bin2 Bin3 Bin4 Bin5 Bin6 Bin7 Bin8 Bin1_8 HPEdgeToEdge/Edge-To-Edge Printing: *False True HPRotate180/Rotate Page 180 deg: *False True Collate/Collate: *True False PageSize
Re: [Samba] HP Laserjet Printer Installation
Hi all, Also one thing i forgot to mention ie after installation of latest cups service cups restart is showing following error: cups: restarted scheduler. [ OK ] Cups service not starting. Can u guide as what may b the reason. I followed the procedure from INSTALL.txt file. Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing Amit Anjarlekar/MUM/TCS 04/13/2009 07:54 PM To mallapadi niranjan niranjan.as...@gmail.com, samba@lists.samba.org cc Subject Re: [Samba] HP Laserjet Printer Installation Hi, Updated to CUPS v1.4b2 version, but still /etc/cups/printers.conf file is not updating as well quota setting not working.. Any luck, pls suggest... Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing mallapadi niranjan niranjan.as...@gmail.com 04/13/2009 03:24 PM To amit.anjarle...@tcs.com cc Subject Re: [Samba] HP Laserjet Printer Installation On Mon, Apr 13, 2009 at 3:07 PM, amit.anjarle...@tcs.com wrote: Hi, Its not reflecting in /etc/cups/printers.conf file . Even if i am manually adding the entry, is also not working. Pls suggest. Then it could be a bug with cups, try latest cups form cups.org Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty.IT Services Business Solutions Outsourcing mallapadi niranjan niranjan.as...@gmail.com 04/13/2009 02:04 PM To amit.anjarle...@tcs.com cc Subject Re: [Samba] HP Laserjet Printer Installation Hi Amit On Mon, Apr 13, 2009 at 1:18 PM, amit.anjarle...@tcs.com wrote: Hi all, I have a very good query related to printer sharing using samba. Following is the scenario... I had installed HP laserjet 9040Dn printer on redhat Enterprise linux 5. Shared it using samba. Used winbind protocol to integrate linux with windows AD 2003. Now i am able to see printer in Active directory as well as linux computer account in AD. But unable to set option lpadmin -p printer -o job-quota-period=604800 -o job-page-limit=100 Going after lot of forums, i found that printer should support job-page-limit option. Whatever drivers installed for printer are current drivers ie also from HP site only. HP doesant support linux OS. So no support from there. Following is the o/p of lpoptions -l command for the above printer. As per problem description , it seems it is a cups issue than samba issue . When you set the limits using lpadmin command, does the limit show in /etc/cups/printers.conf ? ie. when you run lpadmin -p printer -o job-quota-period=604800 -o job-page-limit=100 does these limits show in /etc/cups/printers.conf in the printer definition section ? Printer test Info test DeviceURI socket://10.65.63.223 State Idle StateTime 1239611318 Accepting Yes Shared Yes JobSheets none none QuotaPeriod 604800 PageLimit 100 KLimit 0 OpPolicy default ErrorPolicy stop-printer /Printer If not then it's a cups issue . What is the version of cups you are using ? rpm -q cups HPOption_Tray1/Tray 1: True *False HPOption_2000_Sheet_Tray/2000-Sheet Input Tray (Tray 4): True *False HPOption_Duplexer/Duplex Unit: True *False HPOption_Disk/Printer Disk: *None RAMDisk HardDisk HPOption_MBM_Mixed/Accessory Output Bins: *Standard MBMStaplerStacker MBMStacker HPFinisher HPMultiBinMailbox HPMailboxMode/Mailbox Mode: *PrintersDefault Standard MBMode StackerMode SeparatorMode SorterCollatorMode InstalledMemory/Total Printer Memory: *64-127MB 128-255MB 256-383MB 384-512MB HPOption_PaperPolicy/Fit to Page: *PromptUser NearestSizeAdjust NearestSizeNoAdjust HPJobRetentionOption/Job Retention: HPJobRetentionQuickCopy HPJobRetentionProof HPJobRetentionStore *HPJobRetentionOff HPUserName/User Name: *FileSharingName Forms Set HPJobName/Job Name: *DocName Set HPwmSwitch/Watermark/Overlay: *Off Watermark Overlay HPwmPages/Watermark Pages: *AllPages FirstPage HPwmTextMessage/Watermark Text: *Draft CompanyConfidential CompanyProprietary CompanyPrivate Confidential Copy Copyright FileCopy Final ForInternalUse Preliminary Proof ReviewCopy Sample TopSecret Urgent Set HPwmFontName/Watermark Font: CourierB *HelveticaB TimesB HPwmFontSize
[Samba] Fw: Query - How do i configure CIFS protocol for sharing a printer to windows client
Hi team, Anybody have idea on below issue. Pls suggest.. Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing - Forwarded by Amit Anjarlekar/MUM/TCS on 04/02/2009 01:42 PM - Michael Adam ob...@samba.org 04/02/2009 01:38 PM Please respond to ob...@samba.org To amit.anjarle...@tcs.com cc Steve French smfre...@gmail.com, sfre...@samba.org Subject Re: Query - How do i configure CIFS protocol for sharing a printer to windows client As Steve already pointed out: Please direct such questions / discussions to the samba@lists.samba.org mailing list. Or to samba-techni...@lists.samba.org if it is related to development of Samba. You can subscribe to our mailing lists under https://lists.samba.org/mailman/ Cheers - Michael amit.anjarle...@tcs.com wrote: Hi Steve, Thanks for replying.. I wl just clarify the things much better... Mine quota settings for local users on samba server is working.. How do i get same applied to samba users? I had integrated linux client with AD using winbind... But now how to configure username map variable, means what exactly i have to do before putting this entry in smb.conf? I want my ads users to get linux shared printer mapped with ads login only with quota restriction enabled using windows login... So that they dont have to give extra password for getting access to samba printer.. How do i go for the same? I had configured cups for printer sharing.. Pls let m know for any further clarification.. Thanks Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing Steve French smfre...@gmail.com 04/01/2009 10:09 PM To amit.anjarle...@tcs.com cc sfre...@samba.org, ob...@samba.org Subject Re: Query - How do i configure CIFS protocol for sharing a printer to windows client Sounds like a better question for the samba mailing list, but it isn't clear whether you have problems with configuring smb printing from a Linux client (you say both Linux client and Windows client). Presumably you really have a question about how to configure Samba server for printing and configuring Samba server security settings which are better asked on the mailing list after you have looked through Samba server documentation. -- Forwarded message -- From: amit.anjarle...@tcs.com Date: Wed, Apr 1, 2009 at 3:09 AM Subject: Query - How do i configure CIFS protocol for sharing a printer to windows client To: sfre...@samba.org, ob...@samba.org Hi team, I am working on print quota project . I want my linux shared printer which has quota set should be accessed by windows client without password. I integrated my linux client in wndows AD. How do i configure next steps? Pls let me know if u have any solution. Regards Amit Sudhir Anjarlekar Asst. Systems Engr. Tata Consultancy Services Mailto: amit.anjarle...@tcs.com Website: http://www.tcs.com Experience certainty.IT Services Business Solutions Outsourcing =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -- Thanks, Steve ForwardSourceID:NT000213DE =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -- Michael Adam m...@sernet.de ob...@samba.org SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone
[Samba] help needed: connecting with similar windows-unix usernames?
Hello all samba'ers I'm trying to configure samba for Windows (active-directory) authentication, with every Windows-user having a similar unix username. I've created the users in both sides but I couldn't configure the smb.conf file (either with or without SWAT) to make it work. I'm using XP clients with a Win2K3 as the domain server and Solaris 9 as the samba server. Everything works fine when I use the 'security = share' option so I believe the physical connection is ok. 1. Do I actually need to use 'security = user', or should I use 'security = server? 2. I've created the smbpasswd(5) file and edited it with smbpasswd(8), and synchronized users+passwords with the relevant ones at /etc/passwd and /etc/shadow. Do I actually need the smbpasswd(5)? 3. Is it feasible without using winbind? 4. Does any of you have some smb.conf sample for connecting using similar windows-unix usernames? 5. Do I need to use the 'username map' option even if the usernames are similar? Here is a part of the [global] section at my smb.conf, each line suffiixed (here, not actually in the file itself) with my description: [global] workgroup = GIS' windows workgroup to 'contain' the samba server null passwords = yes ' preferred, not a must valid users = minhal, +pcgis' pcgis is a group on unix. am I right? or does this parameter meant to be for windows groups? write list = minhal ' this user should have write-permission on shared directories regardless of their mode Here is another section of my smb.conf for defining a samba share: [home1] path = /home1 read only = no guest ok = yes ' not necessary, just for the test Now what am I missing? what have I done wrong? Thanks and regards, Amit Zvigoren Systematics Technologies -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Question about policies [OT?]
Yea, that is possible. First of all find the registry hive/key over any of your XP client, which controlls the 'firewall' then create a new custom ADM file to provide you the power to control the firewall settings from policy editor (search google for how to create custom adm files ~~ http://www.google.co.in/search?hl=enq=how+to+create+adm+filesbtnG=Google+Searchmeta=). Now import your first customised ADM file in policy editor then disable firewall from there. Save all your changes to a filename as NTCONFIG.POL. Place it in your netlogon share its all done. Let your XP clients log off n log on for changes to take effect. With the same way you can control any registry setting. But make sure you revert back the setting in policy editor to get that effect off from clients as these changes are tattooed to your box need to revert back precisely for reverse effect. Regards Amit.. From: Koenraad Lelong [EMAIL PROTECTED] To: samba samba@lists.samba.org Subject: [Samba] Question about policies [OT?] Date: Fri, 17 Feb 2006 08:37:48 +0100 Hi, I'm using samba 3 as a domain controller. For some XP-pro laptops I would like to disable the firewall when they are logged in on our network (I don't like it but I have to). Is this possible with Windows policies ? If so, does someone know about good reading material about policies ? I do have Mastering Windows XP professional but that's absolutely no help. Thanks for any thoughts. Regards, Koenraad Lelong. -- 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
Re: [Samba] File-name Mangling issue...
Thanks Chris... But even with mangled names = yes , any file-name created with characters more than 8 is not getting converted into 8.3 schema automatically even while i copy paste it from windows or i save a new file with notepad over samba share. I think there have to be some else configuration lines other than these below mentioned ones to do the needfull.. -- case sensitive = no default case = upper preserve case = no short preserve case = no mangled names = yes -- It doesnt work even if with mangled names = no The only thing i want is for my long file-names to be converted into 8.3 filename schema. Thanks regards Amit sharma From: Chris Lounsbury [EMAIL PROTECTED] To: Amit Sharma [EMAIL PROTECTED] Subject: Re: [Samba] File-name Mangling issue... Date: Tue, 20 Dec 2005 12:42:21 -0700 Amit The only thing I see wrong here is that you forgot the s on your mangled names parameter. You have it as mangled name Chris P.S. You shouldn't need to recompile for this I don't think Amit Sharma [EMAIL PROTECTED] 12/20/2005 12:32 PM I want all the file-names to be stored on a samba share from my XP clients to be automatically converted to 8.3 syntax, so that i do not have any further problem while transporting those files over to other networks/servers like netware. As for now i am using these below mentioned lines to support file-name mangling over my samba. - #I do not want my filenames to be case sensitive, hence case sensitive = no #I want all file names to be saved as in upper case, hence default case = upper #I do not want user input file-name case to be preserved, hence preserve case = no #I do not even want the case of files which conform to 8.3 syntax to be preserved, hence short preserve case = no # I am not sure exactly what does this key/value pairs do, even though its the default value.. mangled name = yes - First thing : But whenever i testparm my smb.conf, i get the error of Unknown parameter encountered: mangled name Ignoring unknown parameter mangled name As per the smb.conf man page : The name mangling (if enabled) allows a file to be copied between UNIX directories from Windows/DOS while retaining the long UNIX filename. Default: mangled names = yes Second thing : What does it mean by if enabled ? Do i need to recompile my samba for mangling support if yes, what exactly do i need to mention as when compiling samba ? Can any one enlighten up this issue a bit or tell me where did i went wrong? I am using samba-3.0.10-1.4E. Thanks regards ..amit.. -- 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
RE: [Samba] Removing the comments listing
Does anyone know how to remove the browse list comments listing? In other words, in our instance, when you browse the my network places, both the resource name and comments are lengthy Samba 3.0.13. listings. As per the man page of smb.conf, That is because server string = samba %v is the default value to be displayed in the browse listing. You could change it to your required needs. But even though in my case, i am using samba as a PDC changing server string = Linux doesnt reflect over to my XP clients. I use logon scripts for my users to provide mappings of share with 'net use' command. Even after changing server string = Linux , i still gets samba version in the browse listings drive mappings. Can any one be of some help to me on this ? Regards ..Amit.. P.S. testparm doesnt produce any errors. From: Allan Levene [EMAIL PROTECTED] To: samba@lists.samba.org Subject: [Samba] Removing the comments listing Date: Mon, 19 Dec 2005 16:39:16 -0500 MIME-Version: 1.0 Received: from lists.samba.org ([66.70.73.150]) by bay0-mc3-f14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 19 Dec 2005 19:43:33 -0800 Received: from dp.samba.org (localhost [127.0.0.1])by lists.samba.org (Postfix) with ESMTP id A6563163DACfor [EMAIL PROTECTED]; Tue, 20 Dec 2005 03:42:49 + (GMT) Received: from mout.perfora.net (mout.perfora.net [217.160.230.40])by lists.samba.org (Postfix) with ESMTP id 485D7162C31for samba@lists.samba.org; Mon, 19 Dec 2005 21:39:17 + (GMT) Received: from [216.235.137.99] (helo=allanxp)by mrelay.perfora.net (node=mrelayus1) with ESMTP (Nemesis),id 0MKp2t-1EoSiy0C2r-0003fd; Mon, 19 Dec 2005 16:39:17 -0500 X-Message-Info: JGTYoYF78jHg2E4EzxGlX5Ia/yET1FlcLCuKUcqgqUg= X-Original-To: samba@lists.samba.org Delivered-To: samba@lists.samba.org Organization: steamsauna X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Thread-Index: AcYE5KjldhgKJrrbRy6q/qQZfUP5Tg== X-Provags-ID: perfora.net [EMAIL PROTECTED]:d4d574e95bedbe331f264695492f592e X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on dp.samba.org X-Spam-Level: ** X-Spam-Status: No, score=2.1 required=3.8 tests=BAYES_50,HTML_80_90,HTML_MESSAGE,RCVD_IN_BLARS_RBL autolearn=no version=3.0.4 X-Mailman-Approved-At: Tue, 20 Dec 2005 03:37:36 + X-Content-Filtered-By: Mailman/MimeDel 2.1.5 X-BeenThere: samba@lists.samba.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General questions regarding Samba samba.lists.samba.org List-Unsubscribe: https://lists.samba.org/mailman/listinfo/samba,mailto:[EMAIL PROTECTED] List-Archive: http://lists.samba.org/archive/samba List-Post: mailto:samba@lists.samba.org List-Help: mailto:[EMAIL PROTECTED] List-Subscribe: https://lists.samba.org/mailman/listinfo/samba,mailto:[EMAIL PROTECTED] Errors-To: [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 20 Dec 2005 03:43:34.0052 (UTC) FILETIME=[8D5A2640:01C60517] Does anyone know how to remove the browse list comments listing? In other words, in our instance, when you browse the my network places, both the resource name and comments are lengthy Samba 3.0.13. listings. Thanks, -- 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] File-name Mangling issue...
I want all the file-names to be stored on a samba share from my XP clients to be automatically converted to 8.3 syntax, so that i do not have any further problem while transporting those files over to other networks/servers like netware. As for now i am using these below mentioned lines to support file-name mangling over my samba. - #I do not want my filenames to be case sensitive, hence case sensitive = no #I want all file names to be saved as in upper case, hence default case = upper #I do not want user input file-name case to be preserved, hence preserve case = no #I do not even want the case of files which conform to 8.3 syntax to be preserved, hence short preserve case = no # I am not sure exactly what does this key/value pairs do, even though its the default value.. mangled name = yes - First thing : But whenever i testparm my smb.conf, i get the error of Unknown parameter encountered: mangled name Ignoring unknown parameter mangled name As per the smb.conf man page : The name mangling (if enabled) allows a file to be copied between UNIX directories from Windows/DOS while retaining the long UNIX filename. Default: mangled names = yes Second thing : What does it mean by if enabled ? Do i need to recompile my samba for mangling support if yes, what exactly do i need to mention as when compiling samba ? Can any one enlighten up this issue a bit or tell me where did i went wrong? I am using samba-3.0.10-1.4E. Thanks regards ..amit.. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Using multiple password servers in smb.conf
Hi all, I've trying to use multiple password servers in my smb.conf. I'm using net utility for authenticating to a AD server. The behavious I see on 3.0.4 version of net utility is as following: 1: It tries to connect to first password server. 2: If first password server is down, it keeps on retrying for 3 min. 3: After three minutes, it tries second password server. 4: If second password server is down it tries three times. 5: It then tries third password server. I was wondering is there a way I can prevent it from hanging for three minutes on the first password server? Your help is truly appreciated. thanks Amit -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
svn commit: lorikeet r437 - in trunk/sangria/src/LatestDesign: cgi classes/AccountManager classes/GroupManager classes/ParmMethodClasses classes/ServerObjects classes/UserPrivileges config docs test
Author: amit Date: 2005-08-26 14:39:42 + (Fri, 26 Aug 2005) New Revision: 437 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=437 Log: Copyright notice and license notice included in the files. Directory permission for the newly created share path set to all writable Added: trunk/sangria/src/LatestDesign/test/group_test.py Removed: trunk/sangria/src/LatestDesign/test/incomplete_group_test.py Modified: trunk/sangria/src/LatestDesign/cgi/cgi_lib.py trunk/sangria/src/LatestDesign/cgi/fileshare.cgi trunk/sangria/src/LatestDesign/cgi/fileshare_result.cgi trunk/sangria/src/LatestDesign/cgi/groups.cgi trunk/sangria/src/LatestDesign/cgi/groups_result.cgi trunk/sangria/src/LatestDesign/cgi/index.cgi trunk/sangria/src/LatestDesign/cgi/manager.cgi trunk/sangria/src/LatestDesign/cgi/printshare.cgi trunk/sangria/src/LatestDesign/cgi/printshare_result.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig_result.cgi trunk/sangria/src/LatestDesign/cgi/users.cgi trunk/sangria/src/LatestDesign/cgi/users_result.cgi trunk/sangria/src/LatestDesign/classes/AccountManager/AccountManagerClass.py trunk/sangria/src/LatestDesign/classes/AccountManager/MachineTrustAccountClass.py trunk/sangria/src/LatestDesign/classes/GroupManager/GroupManagerClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/BasicClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/BrowseClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/CommentClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/FilenameHandlingClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/LDAPclass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/LockingClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/LogFileClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/LogonClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/MiscellaneousClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/PrintingClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/ProtocolClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/SecurityClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/TuningClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/VFSmoduleClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/WINSclass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/WinbindClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/FileShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/PrintShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py trunk/sangria/src/LatestDesign/classes/UserPrivileges/UserPrivilegesClass.py trunk/sangria/src/LatestDesign/config/config.py trunk/sangria/src/LatestDesign/docs/HOW-TO.TXT trunk/sangria/src/LatestDesign/test/accounts_test.py trunk/sangria/src/LatestDesign/test/fileshare_test.py trunk/sangria/src/LatestDesign/test/printshare_test.py trunk/sangria/src/LatestDesign/test/server_test.py trunk/sangria/src/LatestDesign/test/setserver_params.py Changeset: Sorry, the patch is too large (5279 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=437
svn commit: lorikeet r436 - in trunk/sangria/src/LatestDesign: cgi classes/AccountManager classes/ServerObjects config docs test
Author: amit Date: 2005-08-23 10:45:44 + (Tue, 23 Aug 2005) New Revision: 436 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=436 Log: admin access to the CGIs fixed up with admin account and general account test is provided for general access to CGIs Removed: trunk/sangria/src/LatestDesign/classes/AccountManager/New_AccountManagerClass.py Modified: trunk/sangria/src/LatestDesign/cgi/.htaccess trunk/sangria/src/LatestDesign/cgi/.htpasswd trunk/sangria/src/LatestDesign/cgi/cgi_lib.py trunk/sangria/src/LatestDesign/cgi/fileshare_result.cgi trunk/sangria/src/LatestDesign/cgi/groups.cgi trunk/sangria/src/LatestDesign/cgi/groups_result.cgi trunk/sangria/src/LatestDesign/cgi/manager.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig_result.cgi trunk/sangria/src/LatestDesign/cgi/users_result.cgi trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py trunk/sangria/src/LatestDesign/config/config.py trunk/sangria/src/LatestDesign/docs/HOW-TO.TXT trunk/sangria/src/LatestDesign/test/incomplete_group_test.py Changeset: Sorry, the patch is too large (1737 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=436
svn commit: lorikeet r434 - in trunk/sangria: . src/LatestDesign/cgi src/LatestDesign/classes/AccountManager src/LatestDesign/classes/GroupManager src/LatestDesign/classes/ServerObjects src/LatestDesi
Author: amit Date: 2005-08-22 10:03:03 + (Mon, 22 Aug 2005) New Revision: 434 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=434 Log: further modifications in the CGI scripts to include drop downs for the section parameter changes Removed: trunk/sangria/docs/ Modified: trunk/sangria/src/LatestDesign/cgi/cgi_lib.py trunk/sangria/src/LatestDesign/cgi/fileshare.cgi trunk/sangria/src/LatestDesign/cgi/fileshare_result.cgi trunk/sangria/src/LatestDesign/cgi/manager.cgi trunk/sangria/src/LatestDesign/cgi/printshare.cgi trunk/sangria/src/LatestDesign/cgi/printshare_result.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig_result.cgi trunk/sangria/src/LatestDesign/classes/AccountManager/New_AccountManagerClass.py trunk/sangria/src/LatestDesign/classes/GroupManager/GroupManagerClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py trunk/sangria/src/LatestDesign/classes/UserPrivileges/UserPrivilegesClass.py Changeset: Sorry, the patch is too large (431 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=434
svn commit: lorikeet r432 - in trunk/sangria/src/LatestDesign: cgi classes/ServerObjects parser test
Author: amit Date: 2005-08-21 06:44:08 + (Sun, 21 Aug 2005) New Revision: 432 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=432 Log: fixed the proper import paths in ServerObjects folder files Added: trunk/sangria/src/LatestDesign/parser/loadparm.c trunk/sangria/src/LatestDesign/test/accounts_test.py Modified: trunk/sangria/src/LatestDesign/cgi/cgi_lib.py trunk/sangria/src/LatestDesign/cgi/manager.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig_result.cgi trunk/sangria/src/LatestDesign/classes/ServerObjects/FileShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/PrintShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py trunk/sangria/src/LatestDesign/parser/generate_parm_table.py trunk/sangria/src/LatestDesign/parser/smbparm.py Changeset: Sorry, the patch is too large (5343 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=432
svn commit: lorikeet r433 - in trunk/sangria/src/LatestDesign/docs: .
Author: amit Date: 2005-08-21 07:12:30 + (Sun, 21 Aug 2005) New Revision: 433 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=433 Log: modified HOW-TO.txt Modified: trunk/sangria/src/LatestDesign/docs/HOW-TO.TXT Changeset: Modified: trunk/sangria/src/LatestDesign/docs/HOW-TO.TXT === --- trunk/sangria/src/LatestDesign/docs/HOW-TO.TXT 2005-08-21 06:44:08 UTC (rev 432) +++ trunk/sangria/src/LatestDesign/docs/HOW-TO.TXT 2005-08-21 07:12:30 UTC (rev 433) @@ -13,9 +13,9 @@ /test /docs +2 fix up the configuration paths ... in the file ../config/config.py - -2 fix up writeable permission for (apache or www depending on the WebServer Configuration). +3 fix up writeable permission for (apache or www depending on the WebServer Configuration). chown www.www -R /etc/samba/ @@ -29,7 +29,7 @@ -3 for the usage of .htaccess and .htpasswd (directory access authentication) +4 for the usage of .htaccess and .htpasswd (directory access authentication) a) configure the WebServer accordingly. @@ -45,7 +45,7 @@ Password = root -3 http://my.computer.name/cgi-bin/cgi/index.cgi +5 http://my.computer.name/cgi-bin/cgi/index.cgi
svn commit: lorikeet r430 - in trunk/sangria/src/LatestDesign: cgi docs
Author: amit Date: 2005-08-20 07:19:31 + (Sat, 20 Aug 2005) New Revision: 430 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=430 Log: import path fixed in printshare_result.cgi Modified: trunk/sangria/src/LatestDesign/cgi/printshare_result.cgi trunk/sangria/src/LatestDesign/docs/HOW-TO.TXT Changeset: Modified: trunk/sangria/src/LatestDesign/cgi/printshare_result.cgi === --- trunk/sangria/src/LatestDesign/cgi/printshare_result.cgi2005-08-19 13:36:29 UTC (rev 429) +++ trunk/sangria/src/LatestDesign/cgi/printshare_result.cgi2005-08-20 07:19:31 UTC (rev 430) @@ -8,7 +8,7 @@ sys.stderr = sys.stdout -sys.path.append('/home/amit/test/new/classes/ServerObjects') +sys.path.append('../classes/ServerObjects') from PrintShareClass import PrintShare form = cgi.FieldStorage() Modified: trunk/sangria/src/LatestDesign/docs/HOW-TO.TXT === --- trunk/sangria/src/LatestDesign/docs/HOW-TO.TXT 2005-08-19 13:36:29 UTC (rev 429) +++ trunk/sangria/src/LatestDesign/docs/HOW-TO.TXT 2005-08-20 07:19:31 UTC (rev 430) @@ -45,13 +45,11 @@ Password = root -3 open your browser +3 http://my.computer.name/cgi-bin/cgi/index.cgi -4 http://my.computer.name/cgi-bin/cgi/index.cgi - Regarding the CGI - Scripts index.cgi would have the following options
svn commit: lorikeet r428 - in trunk/sangria/src/LatestDesign: . cgi classes/AccountManager classes/GroupManager classes/ServerObjects config docs test
Author: amit Date: 2005-08-19 13:03:46 + (Fri, 19 Aug 2005) New Revision: 428 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=428 Log: new test files added and CGI scripts updated to make them run under apache web server Added: trunk/sangria/src/LatestDesign/cgi/.htaccess trunk/sangria/src/LatestDesign/cgi/.htpasswd trunk/sangria/src/LatestDesign/classes/AccountManager/New_AccountManagerClass.py trunk/sangria/src/LatestDesign/config/ trunk/sangria/src/LatestDesign/config/config.py trunk/sangria/src/LatestDesign/test/fileshare_test.py trunk/sangria/src/LatestDesign/test/printshare_test.py trunk/sangria/src/LatestDesign/test/server_test.py trunk/sangria/src/LatestDesign/test/setserver_params.py Removed: trunk/sangria/src/LatestDesign/test/test.py Modified: trunk/sangria/src/LatestDesign/cgi/cgi_lib.py trunk/sangria/src/LatestDesign/cgi/fileshare_result.cgi trunk/sangria/src/LatestDesign/cgi/smb.conf trunk/sangria/src/LatestDesign/classes/GroupManager/GroupManagerClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py trunk/sangria/src/LatestDesign/docs/HOW-TO.TXT Changeset: Sorry, the patch is too large (976 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=428
svn commit: lorikeet r424 - in trunk/sangria/src: . LatestDesign LatestDesign/cgi LatestDesign/docs LatestDesign/test
Author: amit Date: 2005-08-17 17:04:33 + (Wed, 17 Aug 2005) New Revision: 424 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=424 Log: cgi workable for apache but with slight consideration Added: trunk/sangria/src/LatestDesign/cgi/smb.conf trunk/sangria/src/LatestDesign/docs/ trunk/sangria/src/LatestDesign/docs/HOW-TO.TXT trunk/sangria/src/LatestDesign/test/smb.conf Removed: trunk/sangria/src/HOW-TO.TXT Modified: trunk/sangria/src/LatestDesign/cgi/cgi_lib.py Changeset: Sorry, the patch is too large (613 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=424
svn commit: lorikeet r423 - in trunk/sangria/src: . LatestDesign/cgi
Author: amit Date: 2005-08-17 00:50:57 + (Wed, 17 Aug 2005) New Revision: 423 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=423 Log: HOW-TO.TXT added and few CGI scripts modified to include Server Restart and Refresh functionality Added: trunk/sangria/src/HOW-TO.TXT Modified: trunk/sangria/src/LatestDesign/cgi/cgi_lib.py trunk/sangria/src/LatestDesign/cgi/index.cgi trunk/sangria/src/LatestDesign/cgi/manager.cgi Changeset: Added: trunk/sangria/src/HOW-TO.TXT === --- trunk/sangria/src/HOW-TO.TXT2005-08-15 23:39:22 UTC (rev 422) +++ trunk/sangria/src/HOW-TO.TXT2005-08-17 00:50:57 UTC (rev 423) @@ -0,0 +1,111 @@ +CGI HOW-TO + + +Steps For the classes Fix Up + +1 create directory ( /home/amit/test ) +2 Have a smb.conf (for testing) on the directory ( /home/amit/test ) +3 create directory ( /home/amit/test/new ) +4 Put the folders and their contents ( classes , parser , test which are the folders within ../sangria/src/LatestDesign/ ) from the repository to ( /home/amit/test/new ) +5 Check if ( /home/amit/test/new/test/test.py ) works fine It should + + +Steps For the CGI setup + + +Have'nt tried with a different account +I have used Root to execute all scripts so far ... because much of the wrapped up commands need root permissions + +1 put the (cgi) folder within the cgi-bin location in the system. +2 dos2unix ./cgi/* +3 chmod 777 ./cgi/* +4 start off with ( ./cgi/index.cgi ) and there you are. ( you need to login as ROOT ) + +I had a different case. +As apache was very sensitive to file formats and I was using IDLE in windows for editing the files and It was rather difficult to hack apache to make it able to run CGIs as root I had this ( webmin webserver ) + +so I would put all my cgi scripts to + + /home/amit/webmin-1.220/samba/pythong/ + +and I would start with + + http://192.168.177.133:1/samba/pythong/index.cgi + +this was where and I would log in to the webmin using ( root ) account and then start off with + + + + +Regarding the CGI - Scripts + +index.cgi would have the following options + + +(A) Server Management + +1 server manager + + SetServerType + Add Global Params + Change Global Params + +2 fileshare manager + + Add file share + Remove file Share + Add Prameters to a file share + Modify a file share + +3 printshare manager + + Set Print Style + Add Print Share + Remove Print Share + Modify Print Share + +4 start from scratch (erases out all the settings to start with a new smb.conf file) +5 view smb.conf +6 test smb.conf +7 Restart Server +8 Refresh Server + + + +(B) User Management + +1 Unix Users + + Add / Remove + +2 Samba Users + + Add Samba User + Enable Samba User + Disable Samba User + Remove Samba User + Change Samba Password + + +(C) Group Management + +1 Unix Groups + + Add Unix Group + Remove Unix Group + List All Users in a Unix Group + Add a User To Unix Group + Remove User From Unix Group + +2 Samba Groups + + Add Samba Group + Remove Samba Group + Modify Samba Group + Map Widows Group To Unix Group + Modify Windows Group mapping + Remove Windows Group mapping + + +Hope this Helps. +Amit Modified: trunk/sangria/src/LatestDesign/cgi/cgi_lib.py === --- trunk/sangria/src/LatestDesign/cgi/cgi_lib.py 2005-08-15 23:39:22 UTC (rev 422) +++ trunk/sangria/src/LatestDesign/cgi/cgi_lib.py 2005-08-17 00:50:57 UTC (rev 423) @@ -45,7 +45,7 @@ trtd a href=manager.cgi?from=filesharemanagerfilesharemanager /a /td/tr trtd a href=manager.cgi?from=printsharemanager printsharemanager/a /td/tr trtd a href=manager.cgi?from=testsmbconf Test Config /a /td/tr - + /table Modified: trunk/sangria/src/LatestDesign/cgi/index.cgi === --- trunk/sangria/src/LatestDesign/cgi/index.cgi2005-08-15 23:39:22 UTC (rev 422) +++ trunk/sangria/src/LatestDesign/cgi/index.cgi2005-08-17 00:50:57 UTC (rev 423) @@ -23,11 +23,15 @@ td width=18%a href=manager.cgi?from=filesharemanagerFileShare Manager/a/td td width=18%a href=manager.cgi?from=printsharemanagerPrint Share Manager/a/td td width=18%a href=manager.cgi?from=startfromscratchStart From Scratch/a/td + + /tr + tr td width=18%a href=manager.cgi?from=showsmbconfShow smb.conf/a/td td width=24%a href=manager.cgi?from
svn commit: lorikeet r420 - in trunk/sangria/src/LatestDesign: classes classes/ServerObjects classes/UserPrivileges test
Author: amit Date: 2005-08-15 17:18:42 + (Mon, 15 Aug 2005) New Revision: 420 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=420 Log: class UserPrivileges added . Methods to start , restart and stop the daemons aka server added in ServerClass.py Added: trunk/sangria/src/LatestDesign/classes/UserPrivileges/ trunk/sangria/src/LatestDesign/classes/UserPrivileges/UserPrivilegesClass.py Modified: trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py trunk/sangria/src/LatestDesign/test/test.py Changeset: Modified: trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py === --- trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py 2005-08-15 02:14:38 UTC (rev 419) +++ trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py 2005-08-15 17:18:42 UTC (rev 420) @@ -112,10 +112,7 @@ return p_list else: return None - - - - + def ListOptionsInShare(self , shareName): return self.Parser.services[string.upper(shareName)]['_order_'] @@ -192,41 +189,46 @@ def RefreshServer(self): - ''' to be implemented at last ''' -pass + cmd = smbcontrol smbd reload-config +( status, cmd_output ) = commands.getstatusoutput( cmd ) +if status: +return 0 +return 1 + + +def StopDaemon(self , Daemon): + +cmd = pidof %s%Daemon +( status, cmd_output ) = commands.getstatusoutput( cmd ) +daemon_pids = string.split( cmd_output ) -def RestartServer(self): -self.StopServers() -self.StartServers() +for pid in daemon_pids: +cmd = kill -9 %s %pid +commands.getstatusoutput( cmd ) + +def StartDaemon(self , Daemon): -def StopServers(self): +cmd = %s/%s -D%(self.ServerPath , Daemon) +( status, cmd_output ) = commands.getstatusoutput( cmd ) +if status: +return 0 +return 1 + -list_of_commands = [] -list_of_commands.append(%s/smbd stop %self.ServerPath) -list_of_commands.append(%s/smbd stop %self.ServerPath) -list_of_commands.append(%s/winbindd stop%self.ServerPath) +def StopServer(self): -for cmd1 in list_of_commands: -( status, cmd_output ) = commands.getstatusoutput( cmd1 ) -if status: -print cmd_output -return 0 -return 1 +for daemon in ['smbd' , 'nmbd' , 'winbindd']: +self.StopDaemon(daemon) + +def StartServer(self): +for daemon in ['smbd' , 'nmbd' , 'winbindd']: +self.StartDaemon(daemon) -def StartServers(self): -list_of_commands = [] -list_of_commands.append(%s/smbd start %self.ServerPath) -list_of_commands.append(%s/smbd start %self.ServerPath) -list_of_commands.append(%s/winbindd start %self.ServerPath) +def RestartServer(self): +self.StopServer() +self.StartServer() + -for cmd1 in list_of_commands: -( status, cmd_output ) = commands.getstatusoutput( cmd1 ) -if status: -print cmd_output -return 0 -return 1 - - def RemoveShare(self, delShareName ): ''' the sharename is supplied as input ''' if not self.Parser.isService(delShareName): @@ -258,10 +260,10 @@ ( status, cmd_output ) = commands.getstatusoutput( cmd ) output_list = string.split(cmd_output,'\n') if status: -output_list.append( Error in Server Configuration ) +output_list.append(font color = red Error in Server Configuration /font) return output_list else: -output_list.append( Congratulations ! Server Tested OK) +output_list.append(font color = red Congratulations ! Server Tested OK /font) return output_list def CleanGlobalParameters(self , ParamList ): @@ -341,7 +343,8 @@ # here we have to ensure that the server also joins the domain net join -Uroot%djlajf self.CommitChanges() -self.RestartServer() +self.RestartServer() + # now join the domain .. ExtraParamTupleList would be having the necessary details for domain joining if 'WORKGROUP' in self.ListOptionsInShare('GLOBAL'): Added: trunk/sangria/src/LatestDesign/classes/UserPrivileges/UserPrivilegesClass.py === --- trunk/sangria/src/LatestDesign/classes/UserPrivileges/UserPrivilegesClass.py 2005-08-15 02:14:38 UTC (rev 419
svn commit: lorikeet r421 - in trunk/sangria/src/LatestDesign: classes/AccountManager test
Author: amit Date: 2005-08-15 18:11:12 + (Mon, 15 Aug 2005) New Revision: 421 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=421 Log: Class added for handling Machine Trust Accounts Added: trunk/sangria/src/LatestDesign/classes/AccountManager/MachineTrustAccountClass.py Modified: trunk/sangria/src/LatestDesign/classes/AccountManager/AccountManagerClass.py trunk/sangria/src/LatestDesign/test/test.py Changeset: Modified: trunk/sangria/src/LatestDesign/classes/AccountManager/AccountManagerClass.py === --- trunk/sangria/src/LatestDesign/classes/AccountManager/AccountManagerClass.py 2005-08-15 17:18:42 UTC (rev 420) +++ trunk/sangria/src/LatestDesign/classes/AccountManager/AccountManagerClass.py 2005-08-15 18:11:12 UTC (rev 421) @@ -4,26 +4,6 @@ -class UserPrivileges: - -def __init__(self, UserName): -self.UserName = UserName - -def SetUserRight(self, Right): -''' -Here we fix up the privileges for the user .. (self.UserName) -here code to set the right -but before proceeding it sould be clear that server had to be set to - -enable privileges = yes -and restarted .. - -do that in INIT ... -''' -pass - - - class User: def SetPassword(self, UserPassword): Added: trunk/sangria/src/LatestDesign/classes/AccountManager/MachineTrustAccountClass.py === --- trunk/sangria/src/LatestDesign/classes/AccountManager/MachineTrustAccountClass.py 2005-08-15 17:18:42 UTC (rev 420) +++ trunk/sangria/src/LatestDesign/classes/AccountManager/MachineTrustAccountClass.py 2005-08-15 18:11:12 UTC (rev 421) @@ -0,0 +1,29 @@ + +import sys,os,commands +import string + + +class MachineTrustAccount: + +def __init__(self): +pass + +def AddMachineAccount(self , ClientMachineName , UnixGroupToJoin , UnixPassword , SmbPassword): + +''' ClientMachineName = NetBIOS name ''' + +cmd = useradd -p \%s\ -g \%s\ -d /dev/null -c \%s\ -s /bin/false \%s$\ %( UnixPassword , UnixGroupToJoin , ClientMachineName , ClientMachineName) +print cmd +( status, cmd_output ) = commands.getstatusoutput( cmd ) +if status: +print here +return 0 + +## fix up samba password + +cmd = smbpasswd -a -m \%s\ %(ClientMachineName) +( status, cmd_output ) = commands.getstatusoutput( cmd ) +if status: +return 0 + +return 1 Modified: trunk/sangria/src/LatestDesign/test/test.py === --- trunk/sangria/src/LatestDesign/test/test.py 2005-08-15 17:18:42 UTC (rev 420) +++ trunk/sangria/src/LatestDesign/test/test.py 2005-08-15 18:11:12 UTC (rev 421) @@ -16,6 +16,8 @@ from AccountManagerClass import SambaUser from GroupManagerClass import GroupManager +from MachineTrustAccountClass import MachineTrustAccount + from UserPrivilegesClass import UserPrivileges @@ -25,8 +27,13 @@ s = Server(/home/amit/test/smb.conf , /usr/sbin/) -s.RestartServer() +# add machine trust account +m = MachineTrustAccount() +ret = m.AddMachineAccount('teromachine' , 'helohelo' , 'regmi' , 'sambaregmi') +print ret +##s.RestartServer() + ##priv = UserPrivileges(s) ##priv.GrantUserPrivilege(pant , root , amit , SeMachineAccountPrivilege)
svn commit: lorikeet r414 - in trunk/sangria/src/LatestDesign: cgi classes/ServerObjects
Author: amit Date: 2005-08-14 10:59:53 + (Sun, 14 Aug 2005) New Revision: 414 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=414 Log: updated CGI scripts and few newly added Added: trunk/sangria/src/LatestDesign/cgi/printshare.cgi trunk/sangria/src/LatestDesign/cgi/printshare_result.cgi Removed: trunk/sangria/src/LatestDesign/cgi/commit.cgi Modified: trunk/sangria/src/LatestDesign/cgi/cgi_lib.py trunk/sangria/src/LatestDesign/cgi/fileshare.cgi trunk/sangria/src/LatestDesign/cgi/fileshare_result.cgi trunk/sangria/src/LatestDesign/cgi/groups.cgi trunk/sangria/src/LatestDesign/cgi/groups_result.cgi trunk/sangria/src/LatestDesign/cgi/manager.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig_result.cgi trunk/sangria/src/LatestDesign/cgi/users.cgi trunk/sangria/src/LatestDesign/cgi/users_result.cgi trunk/sangria/src/LatestDesign/classes/ServerObjects/FileShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/PrintShareClass.py Changeset: Sorry, the patch is too large (1511 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=414
svn commit: lorikeet r415 - in trunk/sangria/src/LatestDesign: cgi classes/ServerObjects test
Author: amit Date: 2005-08-14 16:40:43 + (Sun, 14 Aug 2005) New Revision: 415 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=415 Log: CGI scripts updated further Modified: trunk/sangria/src/LatestDesign/cgi/cgi_lib.py trunk/sangria/src/LatestDesign/cgi/fileshare.cgi trunk/sangria/src/LatestDesign/cgi/manager.cgi trunk/sangria/src/LatestDesign/cgi/printshare.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig_result.cgi trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py trunk/sangria/src/LatestDesign/test/test.py Changeset: Sorry, the patch is too large (828 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=415
svn commit: lorikeet r416 - in trunk/sangria/src/LatestDesign: cgi classes/ServerObjects
Author: amit Date: 2005-08-14 17:31:09 + (Sun, 14 Aug 2005) New Revision: 416 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=416 Log: CGI script updated for Print Share Handling Modified: trunk/sangria/src/LatestDesign/cgi/printshare.cgi trunk/sangria/src/LatestDesign/cgi/printshare_result.cgi trunk/sangria/src/LatestDesign/classes/ServerObjects/PrintShareClass.py Changeset: Modified: trunk/sangria/src/LatestDesign/cgi/printshare.cgi === --- trunk/sangria/src/LatestDesign/cgi/printshare.cgi 2005-08-14 16:40:43 UTC (rev 415) +++ trunk/sangria/src/LatestDesign/cgi/printshare.cgi 2005-08-14 17:31:09 UTC (rev 416) @@ -100,6 +100,15 @@ /SELECT /td /tr +tr +td Printable : /td +td +SELECT name=printable size=1 +option selected value=yesyes/option +option value=nono/option +/SELECT +/td +/tr /table brbrhr input name=secret type=hidden value=printshareadd @@ -193,7 +202,7 @@ /tr /table brbrhr -input name=secret type=hidden value=printsharemodify +input name=secret type=hidden value=printsharemodifyselect input type=submit name=submit value=modify /form Modified: trunk/sangria/src/LatestDesign/cgi/printshare_result.cgi === --- trunk/sangria/src/LatestDesign/cgi/printshare_result.cgi2005-08-14 16:40:43 UTC (rev 415) +++ trunk/sangria/src/LatestDesign/cgi/printshare_result.cgi2005-08-14 17:31:09 UTC (rev 416) @@ -0,0 +1,110 @@ +#!/usr/bin/python + +print Content-type: text/html +print + + +import cgi , sys ,operator,string +sys.stderr = sys.stdout + + +sys.path.append('/home/amit/test/new/classes/ServerObjects') +from PrintShareClass import PrintShare + +form = cgi.FieldStorage() + + +from cgi_lib import HTML + +html = HTML() +print html.HEADER + + +call_source = form[secret].value + +if call_source == printingstyle: + +if form.has_key('printingstyle'): +html.s.SetPrintStyle(form['printingstyle'].value) + +print html.SUCCESS +html.s.CommitChanges() + + +if call_source == printshareadd: +# populate the FileShare object and add it to the Server +if form['sharename'].value: +p_share = PrintShare(form['sharename'].value) + +for form_key in form.keys(): +if not ( form_key == 'secret' or form_key == 'submit' or form_key == 'sharename'): +if form[form_key].value: +p_share.Store[form_key] = [ form[form_key].value , None ] + +for key in p_share.Store.keys(): +print key + +html.s.AddShare(p_share) +print html.SUCCESS +html.s.CommitChanges() + + +if call_source == printshareremove: +if form.has_key('sharename'): +ret = html.s.RemoveShare(form['sharename'].value) +if ret: +print html.SUCCESS +else: +print html.FAILURE +else: +print html.FAILURE + + +if call_source == printsharemodifyselect: + +print brbr +tr To See what has been set already View the Smb.conf file /trbrhr +tr b Share Parameters Set /b /trbrhr +form action=printshare_result.cgi method=post + +share = form[share].value +if share: +html.PrintSection(html.s.GetOptionValueInShare(share) ) +print brhr +input name=secret type=hidden value=printsharemodifysave +input name=share type=hidden value=%s +input type=submit name=submit value=save +/form %share +else: +html.FAILURE + + +if call_source == printshareaddparameters: +# add all the parameters in loop ... +# (parameter0 --- value0) + +for i in range(7): +option_index = parameter%d%i +value_index = value%d%i +# set the options if they have been filled .. not NULL +if form.has_key(option_index) or form.has_key(value_index): +if form[option_index].value and form[value_index].value: +html.s.SetOptionValuePairInService(form['share'].value , form[option_index].value , form[value_index].value , None) +html.s.CommitChanges() +print html.SUCCESS +html.s.CommitChanges() + + + +if call_source == printsharemodifysave: +for form_key in form.keys(): +if not ( form_key == 'secret' or form_key == 'submit' or form_key == 'share'): +print form_key , form[form_key].value
svn commit: lorikeet r404 - in trunk/sangria/src/LatestDesign: cgi classes/GroupManager classes/ServerObjects parser test
Author: amit Date: 2005-08-10 16:36:29 + (Wed, 10 Aug 2005) New Revision: 404 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=404 Log: cgi_lib.py added which includes common methods used in the cgi scripts and many classes updated with more methode Modified: trunk/sangria/src/LatestDesign/cgi/cgi_lib.py trunk/sangria/src/LatestDesign/cgi/manager.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig.cgi trunk/sangria/src/LatestDesign/classes/GroupManager/GroupManagerClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/FileShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/PrintShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py trunk/sangria/src/LatestDesign/parser/SambaConfig.py trunk/sangria/src/LatestDesign/test/test.py Changeset: Sorry, the patch is too large (688 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=404
svn commit: lorikeet r398 - in trunk/sangria/src/LatestDesign/cgi: .
Author: amit Date: 2005-08-08 17:25:29 + (Mon, 08 Aug 2005) New Revision: 398 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=398 Log: new cgi scripts added which include cgi_lib.py having the common methods for html generation in the scripts Added: trunk/sangria/src/LatestDesign/cgi/cgi_lib.py trunk/sangria/src/LatestDesign/cgi/fileshare.cgi trunk/sangria/src/LatestDesign/cgi/fileshare_result.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig.cgi trunk/sangria/src/LatestDesign/cgi/serverconfig_result.cgi Modified: trunk/sangria/src/LatestDesign/cgi/commit.cgi trunk/sangria/src/LatestDesign/cgi/groups.cgi trunk/sangria/src/LatestDesign/cgi/groups_result.cgi trunk/sangria/src/LatestDesign/cgi/manager.cgi trunk/sangria/src/LatestDesign/cgi/users.cgi trunk/sangria/src/LatestDesign/cgi/users_result.cgi Changeset: Sorry, the patch is too large (2231 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=398
svn commit: lorikeet r395 - in trunk/sangria/src/LatestDesign/cgi: .
Author: amit Date: 2005-08-07 02:15:10 + (Sun, 07 Aug 2005) New Revision: 395 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=395 Log: more cgi scripts added for users and group management Added: trunk/sangria/src/LatestDesign/cgi/commit.cgi trunk/sangria/src/LatestDesign/cgi/groups_result.cgi Modified: trunk/sangria/src/LatestDesign/cgi/groups.cgi trunk/sangria/src/LatestDesign/cgi/index.cgi trunk/sangria/src/LatestDesign/cgi/manager.cgi trunk/sangria/src/LatestDesign/cgi/users.cgi trunk/sangria/src/LatestDesign/cgi/users_result.cgi Changeset: Sorry, the patch is too large (1587 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=395
svn commit: lorikeet r396 - in trunk/sangria/src/LatestDesign/classes: AccountManager GroupManager
Author: amit Date: 2005-08-07 02:19:00 + (Sun, 07 Aug 2005) New Revision: 396 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=396 Log: Accountmanager and Groupmanager classes modified Modified: trunk/sangria/src/LatestDesign/classes/AccountManager/AccountManagerClass.py trunk/sangria/src/LatestDesign/classes/GroupManager/GroupManagerClass.py Changeset: Sorry, the patch is too large (330 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=396
svn commit: lorikeet r397 - in trunk/sangria/src/LatestDesign/cgi: .
Author: amit Date: 2005-08-07 05:46:12 + (Sun, 07 Aug 2005) New Revision: 397 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=397 Log: removing files which were not necessary Removed: trunk/sangria/src/LatestDesign/cgi/list_sambauser.cgi trunk/sangria/src/LatestDesign/cgi/listsmb_groups.cgi Changeset: Deleted: trunk/sangria/src/LatestDesign/cgi/list_sambauser.cgi === --- trunk/sangria/src/LatestDesign/cgi/list_sambauser.cgi 2005-08-07 02:19:00 UTC (rev 396) +++ trunk/sangria/src/LatestDesign/cgi/list_sambauser.cgi 2005-08-07 05:46:12 UTC (rev 397) @@ -1,55 +0,0 @@ -#!/usr/bin/python - -print Content-type: text/html -print - -import cgi , sys -sys.stderr = sys.stdout - -# edit_sambauser.cgi -# Edit an existing samba user -# here initially the list of samba users in the system should be shown ... - -form = cgi.FieldStorage() - -import sys,operator -sys.path.append('/home/amit/test/new/classes/ServerObjects') -sys.path.append('/home/amit/test/new/classes/AccountManager') -sys.path.append('/home/amit/test/new/classes/GroupManager') - - -from ServerClass import Server -from FileShareClass import FileShare -from AccountManagerClass import AccountManager -from AccountManagerClass import UserAccount -from GroupManagerClass import GroupManager - -g = AccountManager(/etc/passwd, /usr/bin/mksmbpasswd.sh, /etc/samba/smbpasswd) -smbusrlist = g.ListSambaUserAccounts() -print htmlbody bgcolor=#6696am -print form action=save_euser.cgi -print table width=100% - -# to print in different cols ... print first 10 in first ... next in another and so on .. - - -print tr td b The Samba Users List /b /td/tr -print table border = 1 width = 100% -print tr -for i in range(0,len(smbusrlist)): -if not ( operator.mod(i,4) == 0): - print td%s/td %smbusrlist[i] -else: - print /trtrtd%s/td %smbusrlist[i] - -print /tr -print /table - -print /table -print /body/html - - - - - - Deleted: trunk/sangria/src/LatestDesign/cgi/listsmb_groups.cgi ===
svn commit: lorikeet r394 - in trunk/sangria/src/LatestDesign: . cgi classes/AccountManager classes/GroupManager
Author: amit Date: 2005-08-05 10:20:12 + (Fri, 05 Aug 2005) New Revision: 394 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=394 Log: cgi scripts added and GroupManager class updated Added: trunk/sangria/src/LatestDesign/cgi/ trunk/sangria/src/LatestDesign/cgi/groups.cgi trunk/sangria/src/LatestDesign/cgi/index.cgi trunk/sangria/src/LatestDesign/cgi/list_sambauser.cgi trunk/sangria/src/LatestDesign/cgi/listsmb_groups.cgi trunk/sangria/src/LatestDesign/cgi/manager.cgi trunk/sangria/src/LatestDesign/cgi/users.cgi trunk/sangria/src/LatestDesign/cgi/users_result.cgi Modified: trunk/sangria/src/LatestDesign/classes/AccountManager/AccountManagerClass.py trunk/sangria/src/LatestDesign/classes/GroupManager/GroupManagerClass.py Changeset: Sorry, the patch is too large (1635 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=394
svn commit: lorikeet r393 - in trunk/sangria/src/LatestDesign: classes classes/AccountManager classes/ServerObjects test
Author: amit Date: 2005-08-04 08:57:40 + (Thu, 04 Aug 2005) New Revision: 393 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=393 Log: updated files with elaborated testing on the GroupManagerClass Added: trunk/sangria/src/LatestDesign/classes/AccountManager/ trunk/sangria/src/LatestDesign/classes/AccountManager/AccountManagerClass.py Removed: trunk/sangria/src/LatestDesign/classes/ServerObjects/AccountsClass.py Modified: trunk/sangria/src/LatestDesign/classes/ServerObjects/FileShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/PrintShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py trunk/sangria/src/LatestDesign/test/test.py Changeset: Sorry, the patch is too large (808 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=393
svn commit: lorikeet r392 - in trunk/sangria/src/LatestDesign/classes: . GroupManager
Author: amit Date: 2005-08-04 04:22:51 + (Thu, 04 Aug 2005) New Revision: 392 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=392 Log: new class added to manage the group. creation , deletion ang group mapping if possible Added: trunk/sangria/src/LatestDesign/classes/GroupManager/ trunk/sangria/src/LatestDesign/classes/GroupManager/GroupManagerClass.py Changeset: Added: trunk/sangria/src/LatestDesign/classes/GroupManager/GroupManagerClass.py === --- trunk/sangria/src/LatestDesign/classes/GroupManager/GroupManagerClass.py 2005-08-02 19:34:41 UTC (rev 391) +++ trunk/sangria/src/LatestDesign/classes/GroupManager/GroupManagerClass.py 2005-08-04 04:22:51 UTC (rev 392) @@ -0,0 +1,207 @@ + +import sys,os,commands +import string + + +class GroupManager: + +def __init__(self, GroupFile): +self.GroupFile = GroupFile + +### method for UNIX group Handling ... + +def AddUnixGroup(self, GroupName): +''' add a user group ''' + +cmd = groupadd %s %(GroupName) +( status, cmd_output ) = commands.getstatusoutput( cmd ) +if status: +print cmd_output +return 0 + +return 1 + +def ListUnixGroups(self): + +list = [] +groupFile = file(self.GroupFile , 'r+') +line = groupFile.readline() +while line: +split = string.split(line , ':') +list.append(split[0]) +line = groupFile.readline() +groupFile.close() +return list + + +def CheckIfUnixGroupExist(self, GroupName): +for name in self.ListUnixGroups(): +if name == GroupName: +return 1 +return 0 + + +def RemoveUnixGroup(self, GroupName): + +cmd = groupdel %s %(GroupName) +( status, cmd_output ) = commands.getstatusoutput( cmd ) +if status: +print cmd_output +return 0 + +return 1 + + +def AddUserToUnixGroup(self, UserName , GroupName): +cmd = usermod -G %s %s%( GroupName , UserName) +( status, cmd_output ) = commands.getstatusoutput( cmd ) +if status: +print cmd_output +return 0 +return 1 + +def RemoveUserFromUnixGroup(self, UserName , GroupName): +''' delete the userName from the line corresponding to the GroupName in /etc/group +or +know all users in that group and then delete the group and add the group for all other users ... +''' + +ret = self.CheckIfUnixGroupExist(GroupName) +if not ret: +return 0 + +users_in_group = self.ListUsersInUnixGroup(GroupName) +if not users_in_group: +return 0 +ret = self.RemoveUnixGroup(GroupName) +if ret: +ret = self.AddUnixGroup(GroupName) + +for user in users_in_group: +if not user == UserName: +self.AddUserToUnixGroup(user, GroupName) + +def ListUsersInUnixGroup(self , GroupName): +''' the slash n at the end is giving problems ''' +ret = self.CheckIfUnixGroupExist(GroupName) +if not ret: +return 0 +list = [] +groupFile = file(self.GroupFile , 'r+') +line = groupFile.readline() +while line: +split = string.split(line , ':') +if split[0] == GroupName: +resplit = string.split(split[3] , ',') +for i in range(0 , len(resplit)): +list.append(string.strip(resplit[i])) +return list +line = groupFile.readline() +groupFile.close() +return 0 + + + +### methods for SAMBA group Handling ... + +def GetMaxRID(self): +''' returns the maximum RID value ''' + +cmd = net maxrid +( status, cmd_output ) = commands.getstatusoutput( cmd ) +if status: +print cmd_output +return 0 + +split = string.split(cmd_output , :) +rid = string.atoi(split[1]) +return rid + + +def AddSambaGroup(self, sambagroupnameORntgroup , unixgroup , type = None ): +'''{rid=int|sid=string} unixgroup=string [type={domain|local}] [ntgroup=string] [comment=string]''' + +rid = self.GetMaxRID() + 1 +cmd = net groupmap add ntgroup=\%s\ unixgroup=\%s\ rid=%d%(sambagroupnameORntgroup,unixgroup , rid) +if type: +cmd = cmd+ type=%s%type + +( status, cmd_output ) = commands.getstatusoutput( cmd ) +if status: +print cmd_output +return 0 + +return 1 + + +def ModifySambaGroup(self, sambagroupnameORntgroup , unixgroup=None , type=None
svn commit: lorikeet r390 - in trunk/sangria/src/LatestDesign: classes/ParmMethodClasses classes/ServerObjects parser test
Author: amit Date: 2005-08-02 06:16:42 + (Tue, 02 Aug 2005) New Revision: 390 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=390 Log: more methods added to the Server Share and Printer classes . A bug fixed in SambaConfig.py wherein While Deleting a share in DelService method the entry of the service name in self.services_order was not getting removed Modified: trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/BasicClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/BrowseClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/FilenameHandlingClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/LDAPclass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/LockingClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/LogFileClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/LogonClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/MiscellaneousClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/PrintingClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/ProtocolClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/SecurityClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/TuningClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/VFSmoduleClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/WINSclass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/WinbindClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/FileShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/PrintShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py trunk/sangria/src/LatestDesign/parser/SambaConfig.py trunk/sangria/src/LatestDesign/test/test.py Changeset: Sorry, the patch is too large (821 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=390
svn commit: lorikeet r388 - in trunk/sangria/src: . LatestDesign LatestDesign/classes LatestDesign/classes/ParmMethodClasses LatestDesign/classes/ServerObjects LatestDesign/parser LatestDesign/test
Author: amit Date: 2005-08-01 13:50:33 + (Mon, 01 Aug 2005) New Revision: 388 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=388 Log: new design. commiting for the third ime becouse somehow the commit failed . 20 different classes added to manage the Server using various objects . everything added within LatestDesign folder. I tried to remove the contents of src folder before commiting but failed Added: trunk/sangria/src/LatestDesign/ trunk/sangria/src/LatestDesign/classes/ trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/ trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/BasicClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/BrowseClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/CommentClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/FilenameHandlingClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/LDAPclass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/LockingClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/LogFileClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/LogonClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/MiscellaneousClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/PrintingClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/ProtocolClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/SecurityClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/TuningClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/VFSmoduleClass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/WINSclass.py trunk/sangria/src/LatestDesign/classes/ParmMethodClasses/WinbindClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/ trunk/sangria/src/LatestDesign/classes/ServerObjects/AccountsClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/FileShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/PrintShareClass.py trunk/sangria/src/LatestDesign/classes/ServerObjects/ServerClass.py trunk/sangria/src/LatestDesign/parser/ trunk/sangria/src/LatestDesign/parser/SambaConfig.py trunk/sangria/src/LatestDesign/parser/SambaParm.py trunk/sangria/src/LatestDesign/parser/generate_parm_table.py trunk/sangria/src/LatestDesign/parser/smbparm.py trunk/sangria/src/LatestDesign/test/ trunk/sangria/src/LatestDesign/test/modify_samba_config.py trunk/sangria/src/LatestDesign/test/test.py Changeset: Sorry, the patch is too large (3223 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=388
svn commit: lorikeet r389 - in trunk/sangria/src: .
Author: amit Date: 2005-08-01 14:01:01 + (Mon, 01 Aug 2005) New Revision: 389 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=389 Log: organizing the tree structure Removed: trunk/sangria/src/Accounts.py trunk/sangria/src/Comment.py trunk/sangria/src/FileAndPrintService.py trunk/sangria/src/SambaConfig.py trunk/sangria/src/SambaParm.py trunk/sangria/src/classes/ trunk/sangria/src/generate_parm_table.py trunk/sangria/src/modify_samba_config.py trunk/sangria/src/smbparm.py trunk/sangria/src/test.py Changeset: Sorry, the patch is too large (1489 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=389
svn commit: lorikeet r386 - in trunk/sangria/src: . classes
Author: amit Date: 2005-07-31 13:59:57 + (Sun, 31 Jul 2005) New Revision: 386 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=386 Log: new classes worked out to handle the various aspects of the server configurations in Object Oriented way Added: trunk/sangria/src/classes/ trunk/sangria/src/classes/BasicClass.py trunk/sangria/src/classes/BrowseClass.py trunk/sangria/src/classes/FilenameHandlingClass.py trunk/sangria/src/classes/ProtocolClass.py trunk/sangria/src/classes/TuningClass.py Modified: trunk/sangria/src/SambaConfig.py Changeset: Sorry, the patch is too large (542 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=386
svn commit: lorikeet r387 - in trunk/sangria/src/classes: .
Author: amit Date: 2005-07-31 17:52:05 + (Sun, 31 Jul 2005) New Revision: 387 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=387 Log: some more classes added Added: trunk/sangria/src/classes/LdapClass.py trunk/sangria/src/classes/LockingClass.py trunk/sangria/src/classes/LogFileClass.py trunk/sangria/src/classes/LogonClass.py trunk/sangria/src/classes/MiscellaneousClass.py trunk/sangria/src/classes/PrintingClass.py trunk/sangria/src/classes/SecurityClass.py trunk/sangria/src/classes/VFSmoduleClass.py trunk/sangria/src/classes/WINSclass.py trunk/sangria/src/classes/WinbindClass.py Modified: trunk/sangria/src/classes/BasicClass.py trunk/sangria/src/classes/BrowseClass.py trunk/sangria/src/classes/FilenameHandlingClass.py trunk/sangria/src/classes/ProtocolClass.py trunk/sangria/src/classes/TuningClass.py Changeset: Sorry, the patch is too large (1856 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=387
svn commit: lorikeet r385 - in trunk/sangria/src: .
Author: amit Date: 2005-07-29 09:38:56 + (Fri, 29 Jul 2005) New Revision: 385 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=385 Log: different classes put into different files and the new class handling the user accounts added Added: trunk/sangria/src/Accounts.py trunk/sangria/src/Comment.py trunk/sangria/src/FileAndPrintService.py trunk/sangria/src/test.py Removed: trunk/sangria/src/new_make_smb_conf.py Changeset: Sorry, the patch is too large (678 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=385
svn commit: lorikeet r384 - in trunk/sangria/src: .
Author: amit Date: 2005-07-29 04:02:30 + (Fri, 29 Jul 2005) New Revision: 384 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=384 Log: Things work fine now with the new file. All functions tested Added: trunk/sangria/src/new_make_smb_conf.py Removed: trunk/sangria/src/new_make_smb_conf.py Modified: trunk/sangria/src/SambaConfig.py Changeset: Sorry, the patch is too large (652 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=384
svn commit: lorikeet r382 - in trunk/sangria/src: .
Author: amit Date: 2005-07-27 12:49:08 + (Wed, 27 Jul 2005) New Revision: 382 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=382 Log: latest approach of mine .. there is a bug .. read only = no is being set on and on don't know how ... trying to figure it out Added: trunk/sangria/src/new_make_smb_conf.py Changeset: Sorry, the patch is too large (334 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=382
svn commit: lorikeet r383 - in trunk/sangria/src: .
Author: amit Date: 2005-07-27 12:57:52 + (Wed, 27 Jul 2005) New Revision: 383 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=383 Log: better I remove the old files off the repository Removed: trunk/sangria/src/make_smb_conf.py trunk/sangria/src/smb_tools.py Changeset: Sorry, the patch is too large (806 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=383
svn commit: lorikeet r381 - in trunk/sangria/src: .
Author: amit Date: 2005-07-24 09:33:08 + (Sun, 24 Jul 2005) New Revision: 381 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=381 Log: amit regmi Modified: trunk/sangria/src/make_smb_conf.py trunk/sangria/src/smb_tools.py Changeset: Modified: trunk/sangria/src/make_smb_conf.py === --- trunk/sangria/src/make_smb_conf.py 2005-07-23 09:43:19 UTC (rev 380) +++ trunk/sangria/src/make_smb_conf.py 2005-07-24 09:33:08 UTC (rev 381) @@ -407,6 +407,11 @@ print the share is already there def SetPathOfShare(self, shareName , pathOfShare, serverObject): +''' set the path and include the basic permissions +like ... +read-only = yes +browesable = yes +''' x = serverObject # check if the path exists ... If it does not ... create .. it if( not os.path.isdir(pathOfShare)): @@ -420,7 +425,9 @@ x.AddService(shareToAdd , ['##','## added by modify.py ','##']) x.SetServiceOption(shareName , path , pathOfShare) x.SetServiceOption(shareName , comment ,no comment) -x.SetServiceOption(shareName , read only ,no) +x.SetServiceOption(shareName , read only ,no) +x.SetServiceOption(shareName , browesable ,yes) + def deleteShare(self, shareToDelete , serverObject): ''' here we delete the share if present already in the smb.conf file ''' Modified: trunk/sangria/src/smb_tools.py === --- trunk/sangria/src/smb_tools.py 2005-07-23 09:43:19 UTC (rev 380) +++ trunk/sangria/src/smb_tools.py 2005-07-24 09:33:08 UTC (rev 381) @@ -49,11 +49,47 @@ return return_str +def listUnixUserAccountsInPasswd(self , pathOfPasswdFile ): +''' +returns a LIST of the Unix user names +returns 0 on failure +returns -1 on Access Denied +''' + +splitted_output1 = [] +return_list1 = [] +if (self.Am_I_Root()): +cmd1 = cat %s %pathOfPasswdFile +( status1, cmd_output1 ) = commands.getstatusoutput( cmd1 ) +if status1: +print system error \n +print cmd_output1 +return 0 + +else: +# the output obtained is a string as a whole +splitted_output1 = string.split(cmd_output1,'\n') +for line1 in splitted_output1: +# again split and chuck out the first split ... +temp1 = string.split(line1 , :) +return_list1.append(temp1[0]) +#print temp1[0] + +return return_list1 + +else: +print You don't have root access +return -1 + + + def listUserAccountsInSmbpasswd(self): -''' returns a LIST of the user names on -0 on failure and ''' +returns a LIST of the user names on Samba +returns 0 on failure +returns -1 on Access Denied +''' splitted_output1 = [] return_list1 = [] @@ -79,6 +115,7 @@ else: print You don't have root access +return -1 @@ -101,6 +138,7 @@ else: print You don't have root access +return -1 def serverRefresh(self): @@ -120,6 +158,7 @@ return 1 else: print You don't have root access +return -1 def SMBmountPath(self, mountSourcePath , mountDestPath , loginName , loginPassword): ''' mount a given path to a location mentioned .. @@ -140,6 +179,7 @@ else: print You don't have root access +return -1 def SMBumountPath(self, umountPath ): @@ -161,8 +201,72 @@ else: print You don't have root access +return -1 +def addSambaAccount( self, SMBaccountID , SMBpassword ): + +''' it is assumed that the SMBaccountID is already there as a Unix User account +here we also update the smbpasswd database so as to include each unix users +as a potential accounts for samba''' +if (self.Am_I_Root()): +cmd3 = cat /etc/passwd | /usr/bin/mksmbpasswd.sh /etc/samba/smbpasswd +( status3, cmd_output3 ) = commands.getstatusoutput( cmd3 ) +if status3: +print cmd_output3 +else: +print /etc/samba/smbpasswd updated successfully + +cmd3 = smbpasswd %s %s %(SMBaccountID, SMBpassword
svn commit: lorikeet r380 - in trunk/sangria/src: .
Author: amit Date: 2005-07-23 09:43:19 + (Sat, 23 Jul 2005) New Revision: 380 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=380 Log: amit regmi Added: trunk/sangria/src/make_smb_conf.py trunk/sangria/src/smb_tools.py Modified: trunk/sangria/src/SambaConfig.py Changeset: Sorry, the patch is too large (751 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=380
[Samba] installation error while installing through rpm
I am trying to install samba-3.0.14a on RHL 9. I had installed samba-2.2.7a earlier which I tried to remove before installing samba-3.0.14a through rpm. I got the following error message. If anybody can help me please reply file /etc/rc.d/init.d/winbind from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /etc/samba/smb.conf from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /lib/libnss_winbind.so.2 from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /lib/libnss_wins.so.2 from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /lib/security/pam_winbind.so from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /usr/bin/smbpasswd from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /usr/bin/testparm from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /usr/bin/testprns from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /usr/bin/wbinfo from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /usr/sbin/winbindd from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /usr/share/man/man1/testparm.1.gz from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /usr/share/man/man1/testprns.1.gz from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /usr/share/man/man1/wbinfo.1.gz from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /usr/share/man/man5/lmhosts.5.gz from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /usr/share/man/man5/smb.conf.5.gz from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /usr/share/man/man8/smbpasswd.8.gz from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /usr/share/man/man8/winbindd.8.gz from install of samba-3.0.14a-1 conflicts with file from package samba-common-2.2.7a-6 file /sbin/mount.smb from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /sbin/mount.smbfs from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/bin/nmblookup from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/bin/rpcclient from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/bin/smbcacls from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/bin/smbclient from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/bin/smbmnt from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/bin/smbprint from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/bin/smbspool from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/bin/smbtar from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/share/man/man1/nmblookup.1.gz from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/share/man/man1/rpcclient.1.gz from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/share/man/man1/smbcacls.1.gz from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/share/man/man1/smbclient.1.gz from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/share/man/man1/smbtar.1.gz from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/share/man/man8/smbmnt.8.gz from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/share/man/man8/smbmount.8.gz from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/share/man/man8/smbspool.8.gz from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 file /usr/share/man/man8/smbumount.8.gz from install of samba-3.0.14a-1 conflicts with file from package samba-client-2.2.7a-6 Thanks a lot for any help or comments, Amit Brahmbhatt -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] The account is not authorized to login from this station
I have a simple smb.conf file: [global] hosts allow = ALL [tmp] user = root comment = temporary files path = /tmp read only = yes root = amits command: net use f: \\smbserver\tmp user, password error: System error 1240 has occured. The account is not authorized to login from this station I could test everything else successfully from the diagnosis.txt file. Thanks, -amit -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] smbd processes hanging around (fwd)
Can somebody help with this ? -- Forwarded message -- Date: Mon, 11 Nov 2002 14:32:40 -0500 (EST) From: amit deshmukh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: smbd processes hanging around Hi All, I am using Samba 2.2.3a as PDC to Windows NT 4.0 workstations. The PDC works fine except for the fact that the user processes (smbd) that are spawned, stay for a while even after the user logs off. The behavior of these processes is such that it is initially owened by user 'nobody' as soon as user logs off and then the process is owned by 'root'. The process eventually goes off after around 40 mins or sometime it does not go at all. I did look at samba logs for the machines that are as follows [2002/11/02 04:08:07, 0] rpc_server/srv_netlog.c:api_net_sam_logon(206) api_net_sam_logon: Failed to marshall NET_R_SAM_LOGON. [2002/11/02 04:08:07, 0] rpc_server/srv_pipe.c:api_rpcTNP(1200) api_rpcTNP: api_netlog_rpc: NET_SAMLOGON failed. I read it from the mailing list that relocating the private directory would saove this problems.. but it doesn't seem to work for me. Can anybody help me with this ? thanks in advance regds Amit -- Amit Deshmukh -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] print job not deleting
I faced the same problem. I think done_jobs is printcap parameter and not lpd.conf. Also try compling lprng with --with-done-jobs=0. I did that and it worked for me Amit -- Amit Deshmukh Graduate Student (EECS) University of Toledo. Contact Address ~~~ 2952, Kendale Drive, Apt #202, Toledo OH 43606 Ph. 419-471-9789 -- On Tue, 11 Jun 2002, Van Sickler, Jim wrote: You're using LPRng...it's a feature that appeared in 3.8.10/3.8.12. Not fixed yet... If you Cancel the Paused job, it goes away. (The job has already been printed by the time it's listed as Paused). Patrick the LPRng list are aware of it. Jim -Original Message- From: Wise, Gene [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 3:53 PM To: '[EMAIL PROTECTED]' Subject: [Samba] print job not deleting Has anyone seen this? When we print using Samba, the printjob stays in the queue after prints Also in the LPD.conf is set to : save_when_done@ done_jobs=0 done_jobs_max_age=1 We're using Redhat 7.3. Samba 2.2.4-1 Any help would great, Gene Wise -- 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 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing Question
Can anybody help with this ? attched is my conf file -- Amit Deshmukh Graduate Student (EECS) University of Toledo. Contact Address ~~~ 2952, Kendale Drive, Apt #202, Toledo OH 43606 Ph. 419-471-9789 -- On Fri, 17 May 2002, amit deshmukh wrote: I am not using -M option. I am just passing %M with -R for some accounting stuff on printing side. I tried removing that also. Still it won't work. I am not geting the reason why it doesn't call 'print command' for notmal users. I tried using a dummy script. But even the script won't get called. I think there is some problem with smb.conf. But I don't know what. I am using lanpan style printing as in samba 2.0.*. I am attaching my smb.conf. See if u have any clues with that.. rgds Amit -- Amit Deshmukh Graduate Student (EECS) University of Toledo. Contact Address ~~~ 2952, Kendale Drive, Apt #202, Toledo OH 43606 Ph. 419-471-9789 -- On Thu, 16 May 2002, Joel Hammer wrote: Could it be the improper option -M is preventing lpr from running? Joel On Thu, May 16, 2002 at 02:50:56PM -0400, amit deshmukh wrote: Can anybody help with this ? -- Forwarded message -- Date: Thu, 16 May 2002 11:58:10 -0400 (EDT) From: amit deshmukh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Samba] Printing Question Hi, I am using Samba with LPRng. I have in my configuration print command = /usr/local/lprng/current/bin/lpr -P%p %s -R%M The permissions for lpr are -rwsr-xr-x. I am using samba as PDC. With this setup, when I login as a root in the domain, I can print properly. When I login as a normal user in the domain from an NT machine, I do not get any prints. The smbprn print spool file gets created in /servers/samba/printers folder (which is writable as required by samba printing docs). When I looked into the samba log for a normal user, I do not see a call made to lpr (which I usually see when it is done from a root accnt). What I can conclude with this is that if there is any problem then it is to do with 'lpr' permissions. But, as mentioned earlier these permissions are enough for printing (a normal user can print from a unix machine directly).. Can anybody help me with this ? thanks in advance rgds Amit -- Amit Deshmukh Graduate Student (EECS) University of Toledo. Contact Address ~~~ 2952, Kendale Drive, Apt #202, Toledo OH 43606 Ph. 419-471-9789 -- -- 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 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba [global] interfaces = X.Y.Z.W bind interfaces only= true workgroup = MY_PDC server string = Samba2.2 hosts allow = A.B.C. E.F.G. deadtime= 0 # idle time out getwd cache = yes create mode = 0600 disable spoolss = yes printing = lprng load printers = yes log file= /usr/local/servers/samba/log/log.%m max log size= 1000 utmp= true utmp directory = /var/adm/ wtmp directory = /var/adm/ security= user smb passwd file = /usr/local/servers/samba/private/passwd encrypt passwords = yes username= 0 # See speed.txt and the manual pages for details socket options = TCP_NODELAY # Use only if you have an NT server on your network that has been # configured at install time to be a primary domain controller. ; domain controller = NT-Domain-Controller-SMBName # Samba to be a domain logon server for Windows95 workstations. domain logons = yes debug level = 3 # debug level = 2 logon drive = u: logon path = \\%L\Profiles\default dns proxy = no netbios name = abcde domain admin group =adeshmuk root # Share Definitions
Re: [Samba] Printing Question
I am not using -M option. I am just passing %M with -R for some accounting stuff on printing side. I tried removing that also. Still it won't work. I am not geting the reason why it doesn't call 'print command' for notmal users. I tried using a dummy script. But even the script won't get called. I think there is some problem with smb.conf. But I don't know what. I am using lanpan style printing as in samba 2.0.*. I am attaching my smb.conf. See if u have any clues with that.. rgds Amit -- Amit Deshmukh Graduate Student (EECS) University of Toledo. Contact Address ~~~ 2952, Kendale Drive, Apt #202, Toledo OH 43606 Ph. 419-471-9789 -- On Thu, 16 May 2002, Joel Hammer wrote: Could it be the improper option -M is preventing lpr from running? Joel On Thu, May 16, 2002 at 02:50:56PM -0400, amit deshmukh wrote: Can anybody help with this ? -- Forwarded message -- Date: Thu, 16 May 2002 11:58:10 -0400 (EDT) From: amit deshmukh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Samba] Printing Question Hi, I am using Samba with LPRng. I have in my configuration print command = /usr/local/lprng/current/bin/lpr -P%p %s -R%M The permissions for lpr are -rwsr-xr-x. I am using samba as PDC. With this setup, when I login as a root in the domain, I can print properly. When I login as a normal user in the domain from an NT machine, I do not get any prints. The smbprn print spool file gets created in /servers/samba/printers folder (which is writable as required by samba printing docs). When I looked into the samba log for a normal user, I do not see a call made to lpr (which I usually see when it is done from a root accnt). What I can conclude with this is that if there is any problem then it is to do with 'lpr' permissions. But, as mentioned earlier these permissions are enough for printing (a normal user can print from a unix machine directly).. Can anybody help me with this ? thanks in advance rgds Amit -- Amit Deshmukh Graduate Student (EECS) University of Toledo. Contact Address ~~~ 2952, Kendale Drive, Apt #202, Toledo OH 43606 Ph. 419-471-9789 -- -- 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 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba [global] interfaces = X.Y.Z.W bind interfaces only= true workgroup = MY_PDC server string = Samba2.2 hosts allow = A.B.C. E.F.G. deadtime= 0 # idle time out getwd cache = yes create mode = 0600 disable spoolss = yes printing = lprng load printers = yes log file= /usr/local/servers/samba/log/log.%m max log size= 1000 utmp= true utmp directory = /var/adm/ wtmp directory = /var/adm/ security= user smb passwd file = /usr/local/servers/samba/private/passwd encrypt passwords = yes username= 0 # See speed.txt and the manual pages for details socket options = TCP_NODELAY # Use only if you have an NT server on your network that has been # configured at install time to be a primary domain controller. ; domain controller = NT-Domain-Controller-SMBName # Samba to be a domain logon server for Windows95 workstations. domain logons = yes debug level = 3 # debug level = 2 logon drive = u: logon path = \\%L\Profiles\default dns proxy = no netbios name = abcde domain admin group =adeshmuk root # Share Definitions == [homes] comment = Home Directories browseable = no writable= yes create mode = 0600 directory mode = 0711 [netlogon] comment = Network Logon Service path= /usr/local/servers/samba/netlogon guest ok= no writable= no locking = no read only = yes ; share modes = no create
[Samba] Printing Question
Hi, I am using Samba with LPRng. I have in my configuration print command = /usr/local/lprng/current/bin/lpr -P%p %s -R%M The permissions for lpr are -rwsr-xr-x. I am using samba as PDC. With this setup, when I login as a root in the domain, I can print properly. When I login as a normal user in the domain from an NT machine, I do not get any prints. The smbprn print spool file gets created in /servers/samba/printers folder (which is writable as required by samba printing docs). When I looked into the samba log for a normal user, I do not see a call made to lpr (which I usually see when it is done from a root accnt). What I can conclude with this is that if there is any problem then it is to do with 'lpr' permissions. But, as mentioned earlier these permissions are enough for printing (a normal user can print from a unix machine directly).. Can anybody help me with this ? thanks in advance rgds Amit -- Amit Deshmukh Graduate Student (EECS) University of Toledo. Contact Address ~~~ 2952, Kendale Drive, Apt #202, Toledo OH 43606 Ph. 419-471-9789 -- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba