RE: [Samba] AIX starting and stopping samba from command line
We just have a script like this: VERSION=`ls /opt/pware/samba|sort|tail -n 1` /opt/pware/samba/${VERSION}/sbin/nmbd -D /opt/pware/samba/${VERSION}/sbin/smbd -D Which is called in /etc/inittab to start up Samba on boot ... nothing fancy :-) -Original Message- From: samba-bounces+claus.lund=state.vt...@lists.samba.org [mailto:samba-bounces+claus.lund=state.vt...@lists.samba.org] On Behalf Of BeefStu BeefStu Sent: Friday, June 19, 2009 9:34 AM To: samba@lists.samba.org Subject: [Samba] AIX starting and stopping samba from command line All: I am running on an AIX 5.3 platform and I am looking to see if anybody has a script similar to this (see below) that will work under AIX. My goal is, on boot up I want to have samba started automatically. Can somebody let me what I have to do (on AIX) for this to happen. #!/bin/sh # # /etc/rc.d/init.d/smb - starts and stops SMB services. # # The following files should be synbolic links to this file: # symlinks: /etc/rc.d/rc1.d/K35smb (Kills SMB services on shutdown) # /etc/rc.d/rc3.d/S91smb (Starts SMB services in multiuser mode) # /etc/rc.d/rc6.d/K35smb (Kills SMB services on reboot) # # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 # See how we were called. case "$1" in start) echo -n "Starting SMB services: " daemon smbd -D daemon nmbd -D echo touch /var/lock/subsys/smb ;; stop) echo -n "Shutting down SMB services: " killproc smbd killproc nmbd rm -f /var/lock/subsys/smb echo "" ;; *) echo "Usage: smb {start|stop}" exit 1 esac _ Microsoft brings you a new way to search the web. Try Bing(tm) now http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try bing_1x1-- 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.3.4 AD/krb5/pam build failure on AIX 5.3/6.1 UNKNOWN_CREATE_KEY_FUNCTIONS
It's been a while (probably almost a year now) since I tried building Samba against IBM's krb5 ... and I had the same luck as Bill (no luck). Eventually, I gave up and we have been (happily) using Bill's pware bundles since then. -Claus -Original Message- From: samba-bounces+claus.lund=state.vt...@lists.samba.org [mailto:samba-bounces+claus.lund=state.vt...@lists.samba.org] On Behalf Of Benjamin Huntsman Sent: Tuesday, June 09, 2009 8:32 PM To: William Jojo Cc: samba@lists.samba.org Subject: RE: [Samba] samba-3.3.4 AD/krb5/pam build failure on AIX 5.3/6.1 UNKNOWN_CREATE_KEY_FUNCTIONS Bill- Thanks for the quick response! >If it's found by the script, why isn't it listed in the any of the -I >options below? IBM puts krb5.h, etc in /usr/include. Only the libs live in /usr/krb5: $ ls /usr/krb5 COPYRIGHT README.ZH_TW README.ko_KR bin scripts README.KO_KR README.Zh_CN README.pt_BR ldif README.PT_BR README.Zh_TW README.zh_CN lib README.ZH_CN README.en_US README.zh_TW sbin $ ls /usr/include/krb5.h /usr/include/krb5.h $ >If you're using AD, you're likely going to want winbindd (and maybe >WINBIND LAM) unless there is another way you plan on mapping SIDs to >Unix user/group id values. Yes, you're right. That's my mistake. I will change that to --with-winbind. I'm not sure that adding winbind will fix the build error, but we'll see. I'm reconfiguring now... this generally takes 2 hours on our build box. Thanks again!! -Ben -- 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] What version of Samba will work with an AIX version of Unix?
http://www.bullfreeware.com/ has somewhat outdated binaries for 4.3... http://aixpdslib.seas.ucla.edu/packages/samba.html does too. And http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html I don't know of any repositories with more up-to-date versions for AIX 4.3. Depending on what features you need then it's fairly easy to compile the Samba base yourself (but there's quite a bit of work involved if you want/need the whole she-bang with all its dependencies). -Claus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Blake-Smith Sent: Tuesday, May 08, 2007 4:26 AM To: [EMAIL PROTECTED] Cc: samba@lists.samba.org Subject: [Samba] What version of Samba will work with an AIX version of Unix? Bill Many thanks for your previous email, I took a look at the link you gave me and it states that version would only work with AIX version 5.1,5.2,5.3. I have since checked our version of AIX by typing 'lslpp -h bos.rte' at the prompt and it returned:- LEVEL 4.3.3.75 I then typed 'oslevel -r' and that reutned a value of 4330-09 Is there a link to a version of Samba that will succesfully install on the my version 4.3.3.75 / 4330-09? Any information would be greatly appreciated. Many Thanks Mark -Original Message- From: William Jojo [mailto:[EMAIL PROTECTED] Sent: 01 May 2007 15:49 To: Mark Blake-Smith; samba@lists.samba.org Subject: Re: [Samba] What version of Samba will work with an AIX version of Unix? You could try here: http://us4.samba.org/samba/ftp/Binary_Packages/AIX/ Cheers, Bill Original message >Date: Tue, 1 May 2007 15:13:44 +0100 >From: "Mark Blake-Smith" <[EMAIL PROTECTED]> >Subject: [Samba] What version of Samba will work with an AIX version of Unix? >To: > >Hi all > >We are currently looking to implement a scenario where our AIX Unix >Server and Windows Server can communicate with each other using a >version of Samba. > You could try here: http://us4.samba.org/samba/ftp/Binary_Packages/AIX/ Cheers, Bill > >Kind Regards > >Mark >-- >To unsubscribe from this list go to the following URL and read the >instructions: https://lists.samba.org/mailman/listinfo/samba P Before printing, please think about the environment! This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Sandicliffe. Employees of Sandicliffe are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. Sandicliffe will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising. No employee or agent is authorized to conclude any binding agreement on behalf of Sandicliffe with another party by email without express written confirmation by a Director. Sandicliffe accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. All quotes from Sandicliffe are valid for 30 days following the date of email transmission. Finally, the recipient should check this email and any attachments for the presence of viruses. Sandicliffe is a trading name of Sandicliffe Motor Holdings Ltd. registered in England and Wales. Company registration number 04609153. Registered office Nottingham Road, Stapleford, Nottingham NG9 8AU. E-mail address [EMAIL PROTECTED] -- 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] Connection gets closed after just a few seconds "smbd/service.c:close_cnum(1150)"
I'm testing the AIX binaries for 3.0.24 and have run into a problem. Depending on how I map the share (using: \\[IP, hostname or FQDN]\[sharename]) then the connection to the server is closed after just a few seconds of inactivity. The server runs on AIX5.3 with the latest fixpack. The client is Win XP SP2. I'm currently using 3.0.22 on our production server and don't have this problem there (it's however a compiled from source and not the "pre-made binaries" from samba.org). If I use the IP address to map the share then everything works just like normal (the connection stays open for an hr). But if I use the hostname or FQDN to map the share then the connection is closed after just a few seconds of idle time. So if I map the share like this: C:\Documents and Settings\clund>net use Z: \\10.0.88.187\refprod The command completed successfully. Then everything works fine. But if I map the share like this: C:\Documents and Settings\clund>net use Z: \\tax187a\refprod The command completed successfully. Then the connection is closed within seconds. Here're the level 2 logs using the hostname to map the share. The log is identical to using the IP except for the last two entries: tax187a smbdnotice daemon 2007-05-11 14:38:07 smbd[892938]: [2007/05/11 14:38:07, 2] lib/access.c:check_access(323) tax187a smbdnotice daemon 2007-05-11 14:38:07 smbd[892938]: Allowed connection from (10.0.89.165) tax187a smbdnotice daemon 2007-05-11 14:38:07 smbd[892938]: [2007/05/11 14:38:07, 2] smbd/sesssetup.c:setup_new_vc_session(799) tax187a smbdnotice daemon 2007-05-11 14:38:07 smbd[892938]: setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. tax187a smbdnotice daemon 2007-05-11 14:38:07 smbd[892938]: [2007/05/11 14:38:07, 2] smbd/sesssetup.c:setup_new_vc_session(799) tax187a smbdnotice daemon 2007-05-11 14:38:07 smbd[892938]: setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. tax187a smbdnotice daemon 2007-05-11 14:38:11 smbd[892938]: [2007/05/11 14:38:11, 2] auth/auth.c:check_ntlm_password(309) tax187a smbdnotice daemon 2007-05-11 14:38:11 smbd[892938]: check_ntlm_password: authentication for user [clund] -> [clund] -> [clund] succeeded tax187a smbdnotice daemon 2007-05-11 14:38:11 smbd[892938]: [2007/05/11 14:38:11, 2] lib/access.c:check_access(323) tax187a smbdnotice daemon 2007-05-11 14:38:11 smbd[892938]: Allowed connection from (10.0.89.165) tax187a smbdwarning daemon 2007-05-11 14:38:12 smbd[892938]: [2007/05/11 14:38:12, 1] smbd/service.c:make_connection_snum(950) tax187a smbdwarning daemon 2007-05-11 14:38:12 smbd[892938]: tax165 (10.0.89.165) connect to service refprod initially as user refprod (uid=450, gid=202) (pid 892938) tax187a smbdnotice daemon 2007-05-11 14:38:12 smbd[892938]: [2007/05/11 14:38:12, 2] smbd/reply.c:reply_tcon_and_X(711) tax187a smbdnotice daemon 2007-05-11 14:38:12 smbd[892938]: Serving refprod as a Dfs root tax187a smbdwarning daemon 2007-05-11 14:38:14 smbd[892938]: [2007/05/11 14:38:14, 1] smbd/service.c:close_cnum(1150) tax187a smbdwarning daemon 2007-05-11 14:38:14 smbd[892938]: tax165 (10.0.89.165) closed connection to service refprod I have level 10 log files available too if anybody needs to get a look at things in that kind of detail. Thank you in advance, Claus Claus Lund Systems Developer Vermont Department of Taxes Information Systems 133 State Street Montpelier, Vermont 05633-1401 (802) 828-3735 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Performance issue on AIX when deleting files inadirectorywith a large number of files
- Original Message - From: "Jeremy Allison" <[EMAIL PROTECTED]> To: "Jeremy Allison" <[EMAIL PROTECTED]> Cc: ; "William Jojo" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, May 12, 2006 7:06 PM Subject: Re: [Samba] Performance issue on AIX when deleting files inadirectory with a large number of files > Ok - here is the patch. Bill - if you could test this on > AIX by setting the (now per-share) parameter : > > "change notify timeout = 0" > Thanks Jeremy! I should have an answer for you on Monday morning. > on the share definition that holds a large number of files, > you might find a speed up. I can see the effect it has here > when I disable the kernel and FAM based change notify. > You know, I was trying to manufacture a way to do this with DMAPI (which is supported on JFS2) and set an event on {postcreate, postdelete, postrename} and check the errno value for success, but there seems to be absolutely no way to get the lib to do signalling. It appears to be a poll/select API. BummerI wish IBM would put some of these cool Linux-only goodies in their FS. Cheers, Bill > Jeremy. > I have tested this patch (Samba 3.0.22 + Jeremy's patch) and everything seems to be solid and it solves my problem. I'll be putting it into production later this week. Thank you very much, Claus -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba