Re: [Samba] Running a login script
Hi JJ, thanks for the response. Does this mean we create and store a script on the Windows PC ? We actually want to automatically run a script which resides on the Samba server - once the user has logged in we want to automatically to map drives etc. Regards Mike - Original Message - From: Jean-Jacques Moulis [EMAIL PROTECTED] To: Mike Stewart [EMAIL PROTECTED], samba@lists.samba.org Sent: 19 March 2008 07:06:32 o'clock (GMT) Europe/London Subject: Re: [Samba] Running a login script On Tue, 18 Mar 2008 11:46:58 + (GMT) Mike Stewart [EMAIL PROTECTED] wrote: MS Hello all, MS We are trying to find a way to run login scripts for our users but all the How-To files seem rather complicated :-( MS We have been using Samba for several years and all our users have Windows 2000 PCs, Samba accounts etc. They log into their Windows with a username/password OK. The Samba server is set up with the same username/password combination as their PCs so they don't have to supply username/password again and drive mappings are saved by Windows. A very simple system which has proved easy to maintain. MS We are trying now to introduce Generic PCs which any user can access (hot desking I think it is called). So, we want the Samba server to prompt the user for a username/password combination when they click on the desktop shortcut to the server (we've accomplished that part easily) and then automatically run a login script to map their drives - that's the part we are struggling to find a solution to. MS All the examples we've found so far refer to Domain Controllers - Do we have to set up the server as a Domain controller, do we have to create machines accounts etc ? A domain controller would be my prefered solution. But you can use login scripts without. Run gpedit.msc on computers needing the login script. Local computer policy -- user configuration -- windows settings -- scripts -- logon -- add define the location of your script. Regards! -- Jean-Jacques Moulis Tel: (013) 281684 ISYFax: (013) 139282 Linköping UniversityE-mail: [EMAIL PROTECTED] 581 83 Linköping - -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Running a login script
Thanks Dennis, I should think that will all work OK but it's not what I expected at all :-( I had assumed that the smb.conf entry for logon script = %U.bat was all that would be needed and would pick up the user's name and password as they logged into the server (through a desktop shortcut) and run that script which would map the required drives etc. Basically what we want is to set up all our Win2000 PCs to log into windows as a generic staff member then when they click on the desktop shortcut they are prompted for their server username password and... hey presto all their network drives appear in My Computer. ATB Mike - Original Message - From: Dennis McLeod [EMAIL PROTECTED] To: samba@lists.samba.org Sent: 19 March 2008 15:12:58 o'clock (GMT) Europe/London Subject: RE: [Samba] Running a login script You can run it from anywhere, BUT, you'd have to have the drive mapped first if it's on a network share. You MAY be able to do a //server/share/logonscript.bat (I flipped the slashes on purpose...), but I haven't tried that. I copy a simple script (I have THAT as part of my logon script, too. Copy a new one if it's different. Robocopy) to the local machine, and that one launches the logon script from the server. My local script looks like: @echo off net use q: \\server\login SECRETPASSWORD /user:login /persistent:no NUL CALL q:\logon.bat NUL Then my REAL logon script is the q:\logon.bat I used gpedit to point the machine at the local batch file. I have a registry string (For XP) to make the gpedit part easy: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts] [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logoff ] [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logoff \0] GPO-ID=LocalGPO SOM-ID=Local FileSysPath=C:\\WINDOWS\\System32\\GroupPolicy\\User DisplayName=Local Group Policy GPOName=Local Group Policy [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logoff \0\0] Script=logoff.bat Parameters= ExecTime=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logon] [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logon\ 0] GPO-ID=LocalGPO SOM-ID=Local FileSysPath=C:\\WINDOWS\\System32\\GroupPolicy\\User DisplayName=Local Group Policy GPOName=Local Group Policy [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logon\ 0\0] Script=logonscript.bat Parameters= ExecTime=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 Save that as a .reg file, and you can double click it to merge the file. (Notice there is a logoff script in there too..) I put THAT in my (server) logon script too, and ran the logon script the first time remotely, with psexec: C:\Documents and Settings\Admin\Desktop\PsTools\psexec.exe @machines.txt -u administrator -p SECRETPASSWORD -c logon.bat c:\psexec\results.txt The machines.txt file is the list of machines I want it to run on. You must know the (or another account with admin privileges) administrator account password Hope that helps... I tested this manually on a few machines first, before I ran it on the rest.. Dennis -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Stewart Sent: Wednesday, March 19, 2008 3:02 AM To: Jean-Jacques Moulis Cc: samba@lists.samba.org Subject: Re: [Samba] Running a login script Hi JJ, thanks for the response. Does this mean we create and store a script on the Windows PC ? We actually want to automatically run a script which resides on the Samba server - once the user has logged in we want to automatically to map drives etc. Regards Mike - Original Message - From: Jean-Jacques Moulis [EMAIL PROTECTED] To: Mike Stewart [EMAIL PROTECTED], samba@lists.samba.org Sent: 19 March 2008 07:06:32 o'clock (GMT) Europe/London Subject: Re: [Samba] Running a login script On Tue, 18 Mar 2008 11:46:58 + (GMT) Mike Stewart [EMAIL PROTECTED] wrote: MS Hello all, MS We are trying to find a way to run login scripts for our users but MS all the How-To files seem rather complicated :-( MS We have been using Samba for several years and all our users have Windows 2000 PCs, Samba accounts etc. They log into their Windows with a username/password OK. The Samba server is set up with the same username/password combination as their PCs so they don't have to supply username/password again and drive mappings are saved by Windows. A very simple system which has proved easy to maintain. MS We are trying now to introduce Generic PCs which any user can access (hot desking I think it is called). So, we want the Samba server to prompt the user for a username/password combination when they click on the desktop shortcut to the server (we've accomplished that part easily) and then automatically run a login script to map
Re: [Samba] Running a login script
Thanks Charles, I think you're right, what I'm trying to accomplish is probably better/easier with a Domain Controller. However, I'm surely brain-dead as I've tried to set the box up as a Domain Controller and although my Windows machine will login in to the domain it still won't run the script so I think I must be missing something. Domain Controllers are a completely new thing to me so it's no surprise I'm struggling :-( If anyone has a simple example smb.conf file that does all this and any other hints I'd much appreciate it. Regards Mike... struggling, exhausted, frustrated - Original Message - From: Charles Marcus [EMAIL PROTECTED] To: samba@lists.samba.org Sent: 19 March 2008 20:26:47 o'clock (GMT) Europe/London Subject: Re: [Samba] Running a login script On 3/19/2008, Mike Stewart ([EMAIL PROTECTED]) wrote: I had assumed that the smb.conf entry for logon script = %U.bat was all that would be needed and would pick up the user's name and password as they logged into the server (through a desktop shortcut) and run that script which would map the required drives etc. Basically what we want is to set up all our Win2000 PCs to log into windows as a generic staff member then when they click on the desktop shortcut they are prompted for their server username password and... hey presto all their network drives appear in My Computer. I'm trying real hard to understand why you wouldn't just set the server up as a proper domain controller... it makes stuff like this brain-dead easy... -- Best regards, Charles -- 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] Running a login script
Hello all, We are trying to find a way to run login scripts for our users but all the How-To files seem rather complicated :-( We have been using Samba for several years and all our users have Windows 2000 PCs, Samba accounts etc. They log into their Windows with a username/password OK. The Samba server is set up with the same username/password combination as their PCs so they don't have to supply username/password again and drive mappings are saved by Windows. A very simple system which has proved easy to maintain. We are trying now to introduce Generic PCs which any user can access (hot desking I think it is called). So, we want the Samba server to prompt the user for a username/password combination when they click on the desktop shortcut to the server (we've accomplished that part easily) and then automatically run a login script to map their drives - that's the part we are struggling to find a solution to. All the examples we've found so far refer to Domain Controllers - Do we *have* to set up the server as a Domain controller, do we *have* to create machines accounts etc ? TIA Mike - -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problem accessing SWAT with Firefox
Thanks Andras, Thing is that nothing had been altered on the Samba servers, just my PC, so I can't understand why I can't connect now when it all worked OK before :-( It does work OK with Internet Explorer so I don't see that I need to change my hosts files. Mike - Original Message - From: Andras S. Haramasz [EMAIL PROTECTED] To: Mike Stewart [EMAIL PROTECTED] Sent: 15 May 2007 17:23:42 o'clock GMT Europe/London Subject: RE: [Samba] Problem accessing SWAT with Firefox You are running TCP wrapper (samba was compiled with TCP wrapper). It is a daemon to monitor requests and allow/deny services based upon configuration. Files are /etc/hosts.allow, /etc/hosts.deny. You might want to put a line like swap: ALL, or swap: 192.168.1.0/255.255.255.0 provided that you local network is 192.168.1.0. Also, you can allow all services from local network, that is ALL: 192.168.1.0/255.255.255.0. Learn more: man hosts.allow, man tcpd, etc. Hope this helps. Regards -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Stewart Sent: Tuesday, May 15, 2007 11:29 AM To: samba@lists.samba.org Subject: [Samba] Problem accessing SWAT with Firefox Hi, not sure if I'm posting in the right place but couldn't find a SWAT forum. I've just changed my PC but the new one has exactly the same settings (IP, computername, login, password) as the old one, however I am getting an error when I try to access any of my Samba servers from Firefox (2.0.0.3) :- 400 Server ErrorSamba is configured to deny access from this client Check your hosts allow and hosts deny options in smb.conf Not sure what's gone wrong, it worked perfectly OK on the old PC, I'm using bookmarks imported to FF from the old PC. I _can_ access all the servers using IE6 ! Any ideas ? TIA Mike - -- 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] Problem accessing SWAT with Firefox
Hi Wolfgang, Firefox and IE both have exactly the same proxy configuration. Regards Mike - Original Message - From: Wolfgang Ratzka [EMAIL PROTECTED] To: Mike Stewart [EMAIL PROTECTED] Cc: samba@lists.samba.org Sent: 16 May 2007 09:01:34 o'clock GMT Europe/London Subject: Re: [Samba] Problem accessing SWAT with Firefox Mike Stewart wrote: Thing is that nothing had been altered on the Samba servers, just my PC, so I can't understand why I can't connect now when it all worked OK before :-( It does work OK with Internet Explorer so I don't see that I need to change my hosts files. Are you sure that your Firefox does not have a proxy configured that your IE hasn't (or vice versa)? Regards -- Wolfgang Ratzka Phone: +49 6421 2823531 FAX: +49 6421 2826994 Uni Marburg, HRZ, Hans-Meerwein-Str., D-35032 Marburg, Germany - -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem accessing SWAT with Firefox
Hi, not sure if I'm posting in the right place but couldn't find a SWAT forum. I've just changed my PC but the new one has exactly the same settings (IP, computername, login, password) as the old one, however I am getting an error when I try to access any of my Samba servers from Firefox (2.0.0.3) :- 400 Server ErrorSamba is configured to deny access from this client Check your hosts allow and hosts deny options in smb.conf Not sure what's gone wrong, it worked perfectly OK on the old PC, I'm using bookmarks imported to FF from the old PC. I _can_ access all the servers using IE6 ! Any ideas ? TIA Mike - -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] (no subject)
Can I disagree there Mark... I've set up several Samba servers for our company over the past year. All just purely file servers (nothing clever). They can be accessed from different windows workgroups. I'm in the workgroup PTAdmin and I can access the servers in all the other workgroups PTLTrain, PTNTtrain etc. (Um... I hope I'm understanding the original question right !) ATB Mike - Original Message - From: Mark Lidstone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 2:34 PM Subject: RE: [Samba] (no subject) You're kinda confusing things there. A single physical network could span multiple IP networks, and a single IP network doesn't have to be restricted to one physical network. Do you mean that you want to use a single server to serve to two separate workgroups both of which are using the same physical hardware and IP network? If so, then I don't believe so, but I could be wrong. AFAIK it's only possible to have a server answer to multiple names in a single workgroup (netbios name then netbios aliases) I hope this helps, Mark Lidstone IT and Network Support Administrator BMT SeaTech Ltd Grove House, Meridians Cross, 7 Ocean Way Ocean Village, Southampton. SO14 3TJ. UK Tel: +44 (0)23 8063 5122 Fax: +44 (0)23 8063 5144 E-Mail: mailto:[EMAIL PROTECTED] Website: www.bmtseatech.co.uk == Confidentiality Notice and Disclaimer: The contents of this e-mail and any attachments are intended only for the use of the e-mail addressee(s) shown. If you are not that person, or one of those persons, you are not allowed to take any action based upon it or to copy it, forward, distribute or disclose the contents of it and you should please delete it from your system. BMT SeaTech Limited does not accept liability for any errors or omissions in the context of this e-mail or its attachments which arise as a result of Internet transmission, nor accept liability for statements which are those of the author and not clearly made on behalf of BMT SeaTech Limited. == -Original Message- From: Andrew Norman [mailto:[EMAIL PROTECTED] Sent: 11 August 2004 14:28 To: [EMAIL PROTECTED] Subject: [Samba] (no subject) Hi, I'm new to samba and wish to know if it is possible to set up a samba server that can be accessed from different workgroups on the same physical network i.e. 192.168.0? Many thanks Andy -- 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 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 09/08/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Permissions problem...I must be overlooking *something*...
Hi, just a thought Are the LINUX permissions on the directory set correctly ? Make sure it's owned by your group, I got caught out by that a few times when I created a new directory as root and then tried to share it for users Mike - Original Message - From: David Brodbeck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 4:56 PM Subject: RE: [Samba] Permissions problem...I must be overlooking *something*... -Original Message- From: Mark Lidstone [mailto:[EMAIL PROTECTED] You've probably only put them in because of the problem you're having, but writeable/writable and read only are actually the same setting but reversed. E.g. writeable/writable = yes is the same as read only = no. Therefore you only need to put one or the other. Yes, I know. I originally only had writable = yes, but I added the other out of frustration with Samba insisting the share is read-only. Anyway, onto my suggestion. Have you restarted samba since you made the share writeable? Yes, I sent the HUP signal to the daemon to tell it to re-load its configuration file. Also, if you're forcing group INTERCLEAN+Domain Admins and setting valid users to the same, won't everyone be able to write to the share as a domain admin? Would they? I figured only Domain Admins would be allowed to access the share at all, then the force group would take effect after that. I took the force group line out, but it made no difference, I still can't create any files. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.712 / Virus Database: 468 - Release Date: 28/06/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Restricting file types
Yes, and very useful it is too :-) In the Globals section I put this to stop all users cluttering up the server with mp3 files. You can put it in each required share definition rather than globals though. veto files = /*.mp3/ basically it starts with a / then file name and type and then ends with / so, veto files = /*.bat/*.scr/mike.*/ would stop all bat and scr files, and any file called mike with any ext. I use SWAT for configuring my Samba shares and the help file explains it well. HTH Mike - Original Message - From: Bruce Embrey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 08, 2004 2:36 PM Subject: [Samba] Restricting file types Samba List: Is it possible to limit what filename extensions can be stored in a samba share? We use samba to allow our windows web designers to use drag and drop when deploying new pages on our website. We want to be able to limit which filename extensions can be saved to these shares. Is this possible and if not and alternatives? Bruce Embrey -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.712 / Virus Database: 468 - Release Date: 28/06/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] conflict between Realtek 8139 (client) and 3c2000T(server) NIC's with Samba?
I *might* be a Realtek issue... I have heard that Sage (the accounts software folk) say that their software will not work properly over a network which uses these Realtek cards. Mike - Original Message - From: Jeremy Allison [EMAIL PROTECTED] To: Bart van Dijck [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 5:28 PM Subject: Re: [Samba] conflict between Realtek 8139 (client) and 3c2000T(server) NIC's with Samba? On Tue, May 25, 2004 at 06:01:25PM +0200, Bart van Dijck wrote: Can someone explain this and possibly suggest another solution? We have a number of PC's with Realtek's (I know: they are not hgh quality cards to put it mildly) and would rather not replace them all. I can't think what the cause of the problem is: a NIC that otherwise works fine (surfing, even from the same machine which had the Samba server or any other network activitity) causes problems with Samba. I could understand it if the Samba server had the Realtek NIC, but I never have had any problems with 3com cards. We (Samba) live so far above the network card drivers it's not funny. We're just an application - admittedly one that stresses the network quite a bit due to the speed. I'm afraid you may have found some intrinsic problems with either the cards or the driver for the card. The only way to change this with Samba is to add a 'go slower' switch into smbd, which as I'm sure you'll understand we're loathe to do :-). Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] conflict between Realtek 8139 (client) and3c2000T(server) NIC's with Samba?
I've just purchased some Belkin 10/100 PCI NICs which _seem_ to have the Realtek 8139 chip with a Belkin sticker over the top !!! Rather annoying :-( Mike - Original Message - From: Malcolm Baldridge [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 9:49 AM Subject: Re: [Samba] conflict between Realtek 8139 (client) and3c2000T(server) NIC's with Samba? I *might* be a Realtek issue... I have heard that Sage (the accounts software folk) say that their software will not work properly over a network which uses these Realtek cards. Save yourself far more than the few dollars of false economy and throw away your Realtek junk. I had so many strange and seemingly application level problems just vanish when I put real 3Com/Intel/etc network cards into my servers and workstations. The 8139, 8169, et al... all of them are junk. I just spent a week diagnosing a strange packet loss issue with the 8169 (GigE) interface which only manifested itself under pretty heavy loads in a difficult to reproduce manner. It occurred often enough to break my application at least twice a day, but I couldn't get it to fail predictably so I could easily debug it. After the usual wasted DAYS of swapping NICs, cables, switches, and even machines... I changed to an Intel network card, and all of my problems were solved. Do yourself a favour: get rid of that junk. The math just doesn't work. Cost delta of NIC? Maybe $15-20 tops. Cost your wasted time? HUNDREDS of $$$, at least. =Malcom= -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] recovering files from .recyle
Thanks, according the the Samba help file I need --with-vfs at compile time. Trying at the moment to install Slackware and Samba on an old machine for testing it out but seems there's a hardware glitch somewhere as Slackware installation hangs. hopefully I'll get time later in the week - or I might try Mandrake as we are planning to use that for end users in the not too distant and with the latest Samba. Thanks again for all your assistance, hope you get your user's access to the .recycle Robin.. I'll keep watching this list. Mike - Original Message - From: Robin M. [EMAIL PROTECTED] To: Mike Stewart [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Robin M. [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 24, 2004 9:14 PM Subject: Re: [Samba] recovering files from .recyle On Mon, 24 May 2004, Mike Stewart wrote: Hi Matze/Robin. I put the lines Matze suggested into my [Mike] share but running testparm gives the following errors (it does pass vfs objects = recycle OK though). The lines Robin suggested gave the same errors. Am I doing wrong ? Samba 2.2.7a/Slackware Linux I am using the stock samba 3 rpm from samba.org You may have to have certain options set at compile time for this feature, and the syntax for version 2 is slightly different. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.687 / Virus Database: 448 - Release Date: 17/05/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] recovering files from .recyle
Thanks Robin, I'm not sure if my Samba was compiled with the vfs options but I'll set up a test machine with 2.2.8a and see what happens :-). As far as the users accessing the .recycle directory I won't be too concerned... in fact I probably won't even tell then it exists, if it works I can earn a few chocolate bars for doing something very complex and technical to recover lost files for them :-))) Mike Monday morning, week's only just started so I'm still in good gumour. - Original Message - From: Robin M. [EMAIL PROTECTED] To: Mike Stewart [EMAIL PROTECTED] Cc: Robin M. [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 21, 2004 4:11 PM Subject: Re: [Samba] recovering files from .recyle On Fri, 21 May 2004, Mike Stewart Top-Posted: Hi Robin, sorry I can't help but I didn't know there was such an option so I've looked at the how-to and it's not helping me :-( how did you set it up as it's something I would really like to try. The how-to I'm looking at is for Samba v3 but I'm using Samba 2.2.8a - do you know if it's possible in that version ? I have not tried version 2 of samba but I have read the documentation for version two and it seems to have all the same features, althoug the syntax is slightly different. This is what I have in my smb.conf. So far I can see that a directory .recycle is created but it does not show up in my windows browser, yet. I still have to get to the point where users can restore items. snip ;recyclebin options for samba version 3 recycle:exclude = *.tmp *.temp *.o *.obj ~$* recycle:keeptree = True recycle:touch = True recycle:versions = True recycle:noversions = .doc|.xls|.ppt recycle:repository = .recycle recycle:maxsize = 1000 create mask = 0777 directory mask = 0777 vfs objects = recycle /snip --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.687 / Virus Database: 448 - Release Date: 19/05/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] recovering files from .recyle
Hi Matze/Robin. I put the lines Matze suggested into my [Mike] share but running testparm gives the following errors (it does pass vfs objects = recycle OK though). The lines Robin suggested gave the same errors. Am I doing wrong ? Samba 2.2.7a/Slackware Linux Thanks, Mike. Errors - Load smb config files from /etc/samba/smb.conf Processing section [Ray] Processing section [Karen] Processing section [Private] Processing section [Mike] Unknown parameter encountered: recycle:repository Ignoring unknown parameter recycle:repository Unknown parameter encountered: recycle:versions Ignoring unknown parameter recycle:versions Unknown parameter encountered: recycle:keeptree Ignoring unknown parameter recycle:keeptree Loaded services file OK. My smb.conf is : [global] workgroup = PTADMIN netbios name = PTSAMBA server string = PT Samba Server %v encrypt passwords = Yes update encrypted = Yes ssl CA certDir = /etc/ssl/certs log file = /var/log/samba/log.%m max log size = 50 time server = Yes preferred master = False local master = No domain master = False wins server = 172.16.1.50 hosts allow = 172.16.15.52 veto files = /*.mp3/ hide files = /DesktopFolderDB/resource.frk/TheVolumeSettingsFolder/TheFindByContentFolder / [Ray] comment = Ray's home directory path = /staff/ray write list = ray rayrand read only = No inherit permissions = Yes hosts allow = ray rayrand [Karen] comment = Karen's home directory path = /staff/karen write list = karen ray read only = No hosts allow = karen mike ray [Private] comment = For Ray/Mike ONLY path = /staff admin users = mike ray rayrand read only = No hosts allow = mike ray rayrand PTMaytas [Mike] comment = Mike's home directory path = /staff/mike write list = mike read only = No hosts allow = mike vfs object = recycle recycle:repository=.recycle/%U recycle:versions=True recycle:keeptree=True Robin M. wrote: I have created a recylce bin following the how-to, but I cannot figure out how end users can restore items from the samba recycle bin. If you have this in your share: vfs object = recycle recycle:repository=.recycle/%U recycle:versions=True recycle:keeptree=True every user can go to his recycle-folder and restore his own data. matze -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.687 / Virus Database: 448 - Release Date: 16/05/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] recovering files from .recyle
Hi Robin, sorry I can't help but I didn't know there was such an option so I've looked at the how-to and it's not helping me :-( how did you set it up as it's something I would really like to try. The how-to I'm looking at is for Samba v3 but I'm using Samba 2.2.8a - do you know if it's possible in that version ? ATB Mike - Original Message - From: Robin M. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 21, 2004 3:55 AM Subject: [Samba] recovering files from .recyle I have created a recylce bin following the how-to, but I cannot figure out how end users can restore items from the samba recycle bin. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.687 / Virus Database: 448 - Release Date: 18/05/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Sending message to connected users ?
Hi, Is there any simple way to send messages to all users who are connected to my Samba server. I've just a basic fileserver setup (in a workgroup not Domain) all clients are using Win2k and mapping to shares. I'd like to be able to send them a popup message from the Linux console (or my PC, or somewhere !) to let them know when I'm intending to reboot the server ! Slackware Linux (8.0) Samba 2.2.8a --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.680 / Virus Database: 442 - Release Date: 11/05/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Sending message to connected users ?
Thanks Arno... I'd looked at smbclient and completely missed that command ! Seems to work OK for some of the users but strangely it can't resolve my PC's netbios name ! I'll need to check some other settings I suppose. Is there a way of sending to ALL users at once ? ATB Mike - Original Message - From: Arno Seidel [EMAIL PROTECTED] To: Samba [EMAIL PROTECTED] Sent: Friday, May 14, 2004 10:25 AM Subject: AW: [Samba] Sending message to connected users ? Hi Mike, there is a simple way for that. you can use the smbclient on your linux system. f.e. smbclient -M Computer sends a message to the PC with the netbiosname Computer. regards Arno -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Mike Stewart Gesendet: Freitag, 14. Mai 2004 10:54 An: Samba Betreff: [Samba] Sending message to connected users ? Hi, Is there any simple way to send messages to all users who are connected to my Samba server. I've just a basic fileserver setup (in a workgroup not Domain) all clients are using Win2k and mapping to shares. I'd like to be able to send them a popup message from the Linux console (or my PC, or somewhere !) to let them know when I'm intending to reboot the server ! Slackware Linux (8.0) Samba 2.2.8a --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.680 / Virus Database: 442 - Release Date: 11/05/2004 -- 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 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.680 / Virus Database: 442 - Release Date: 11/05/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Sending message to connected users ?
Thanks again Arno, that's a possibility for the future. Getting rather frustrated with the servers here... browse.dat is in different places on our 2 servers and neither where you said it might be ! Reason for all this messing around is that one server (built by someone else) is *extremely* flakey so I've built a replacement and I'm in the process of swapping them over. New to Linux and Samba so struggling with commands :-( Wanted to use at to reboot the old server at midnight and it took hours yesterday to discover that ctrl-D was the command I needed to enter after I'd typed reboot at the at prompt. I've got 5 Linux manuals and not one of them told me how to use the at command properly so ended up trawling the web. Oh well, when it's all up and running I'm sure things will get better, and I will have learnt a lot thanks to this Samba list :-) ATB Mike - Original Message - From: Arno Seidel [EMAIL PROTECTED] To: Samba [EMAIL PROTECTED] Sent: Friday, May 14, 2004 11:05 AM Subject: AW: [Samba] Sending message to connected users ? Hi Mike, hm if you are good in Shell-Programming you could write a script which excludes from the /var/lib/samba/browse.dat (ascii-textfile) the active pc´s and sends them a message. regards Arno --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.680 / Virus Database: 442 - Release Date: 09/05/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Can I reconfigure Samba share without restart smb service?
I read somewhere that Samba re-reads its config file every minute or so. I think one of my servers (2.2.0a) does this but the other (2.2.8a) seems to take longer. - Original Message - From: Ryan Novosielski [EMAIL PROTECTED] To: ww m-pubsyssamba [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 9:23 AM Subject: Re: [Samba] Can I reconfigure Samba share without restart smb service? AFAIK, Samba will notice a change on its own as well. _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 On Fri, 30 Apr 2004, ww m-pubsyssamba wrote: Everytime I add or remove some samba shares, I must restart smb service to take effect. Is there anyway to reconfig it without restart? Yes there is, you must kill -HUP your parent smbd process, either work out which pid it is from running ps -aef (-aux or whatever for your UNIX platform) or cat /sambainstalldir/var/locks/smbd.pid file which contains the PID, then kill -HUP YourPID For already established client connections they may not see the changes until they disconnect but for new connections your smb.conf/share changes will be visable, cheers Andy. BBCi at http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -- 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 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.680 / Virus Database: 442 - Release Date: 10/05/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba basics
Have Desktop made sure that the IP address (if static) and the computername are as they were before the drive swap ? Just a thought. Mike - Original Message - From: Austin, Ben [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 07, 2004 1:05 PM Subject: [Samba] Samba basics Hi, I know little to nothing about samba so need some advice on a problem I'm having. One of my users is trying to mount a UNIX directory onto his PC and gets the error not authorised from this station. He was able to do this until he had his hard drive swapped out. Desktop have said they all settings are as they were previously and that this is a UNIX issue. Other users on the same network are not having this problem and the user in question can mount the directory from another PC which would suggest this is a problem with that specific PC. I have checked that all relevant smb/nmb procs are running and there are no errors in the logs. I can ping/traceroute to the PC and the PC can ping the UNIX box. I believe this is a local PC issue and wondered if anyone could help me determine this as the problem is flying back and forwards between UNIX and Desktop and the user is starting to get p$£%d Thanks in advance. Ben Our name has changed, please update your address book to the following format for the latest identities received [EMAIL PROTECTED]. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.677 / Virus Database: 439 - Release Date: 04/05/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Logon script, help please
Ah, thanks John (and others). You are correct... it is just a fileserver. I hadn't realised that just connecting to a share was not the same as logging in (I'm quite new to Linux/Samba). So I will now look at whether I need to set it up as a domain controller or if I will just leave a batch file in a common directory for users to sync their clocks when needed. Again, many thanks for your assistance. Mike - Original Message - From: [EMAIL PROTECTED] To: Mike Stewart Sent: Friday, April 30, 2004 8:14 PM Subject: Re: [Samba] Logon script, help please I'm having trouble getting a logon script to work... I think you've got at least two problems that I can identify... I have created a DOS batch file (timesync.bat) and placed it in the scripts directory of the server. What is the scripts directory? You can't just put the login script in an arbitrary directory which happens to be named scripts. Looking at the Samba/SWAT help file it mentions The script must be a relative path to the [netlogon] service but I don't have/can't find anything to do with netlogon ! Exactly. [netlogon] must be a file share defined on your samba server. Then you need to put the logon script somewhere in that share, so that client PCs can connect to [netlogon] to access it. My smb.conf Globals section is:- You can't use the login script unless users are actually logging on to the server. Perhaps I'm missing something, but this doesn't look like a domain controller (or win9x logon server) configuration to me. It looks like an ordinary fileserver setup. Connecting to a share on a fileserver is not logging in. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 21/04/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Logon script, help please
Hi, I'm having trouble getting a logon script to work... I have created a DOS batch file (timesync.bat) and placed it in the scripts directory of the server. The file contains only one line - net time \\ptlserver /SET /y My smb.conf Globals section is:- [global] workgroup = PTLTRAIN netbios name = PTLSERVER server string = Llandrindod Trainee Server encrypt passwords = Yes ssl CA certDir = /etc/ssl/certs log file = /var/log/samba.%m max log size = 50 time server = Yes load printers = No disable spoolss = Yes show add printer wizard = No logon script = scripts\timesync.bat dns proxy = No wins server = 172.16.1.50 hosts allow = 172.16.15. 127. veto files = /*.mp3/ Looking at the Samba/SWAT help file it mentions The script must be a relative path to the [netlogon] service but I don't have/can't find anything to do with netlogon ! I was hoping that the file would load and run as soon as the user logged in to the server but nothing seems to happen, no error message either...am I doing something wrong ? I can run the command net time \\ptlserver /SET /y from W2k Start/Run and it works. Using Slackware 9.0/Samba 2.2.8a Thanks Mike Stewart --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 16/04/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Logon script, help please
Thanks Frode. I didn't see anything in the help files about netlogon being crucial, or even what it was for ! Here's what I have so far (/etc/samba is where my installation has put smb.conf) So... I've created /etc/samba/netlogon and the share.. [netlogon] path = /etc/samba/netlogon browseable = No writeable = No I've created a subdirectory under netlogon named scripts and placed timesync.bat in there. In my Global section I havelogon script = scripts\timesync.bat Well, it still doesn't seem to be doing anything at all when the user logs in :-( If I use the Windows Start,Run, \\ptlserver\netlogon\scripts\timesync.bat after the user has logged in it does run the batch file and sync the clock. I'm running this system purely as a file server for w2k clients, it's not in any sort of domain... is that going to make a difference ? I was hoping to automate this sync but if I can't get it to work I'll just put the batch file into the \home\masters directory and tell users to run it manually. Thanks Mike - Original Message - From: Frode Lillerud [EMAIL PROTECTED] To: 'Mike Stewart' [EMAIL PROTECTED] Sent: Friday, April 30, 2004 12:27 PM Subject: RE: [Samba] Logon script, help please The [netlogon] share is crucial when using logon-scripts. Add this in your smb.conf and restart samba: [netlogon] path = /var/lib/samba/netlogon browseable = no writable = no And since you've added 'logon script = scripts\timesync.bat' in your global section, it means you need to copy the timesync.bat file into /var/lib/samba/netlogon/scripts. Frode |-Original Message- |From: Mike Stewart [mailto:[EMAIL PROTECTED] |Sent: 30. april 2004 13:23 |To: Frode Lillerud |Subject: Re: [Samba] Logon script, help please | |Thanks, I'll add the pause so I can see what's happening. | |Netlogon share ? Ummm... I have not created one and can't see anything in |the Samba help about it. | |Mike | |- Original Message - |From: Frode Lillerud [EMAIL PROTECTED] |To: 'Mike Stewart' [EMAIL PROTECTED] |Sent: Friday, April 30, 2004 12:18 PM |Subject: RE: [Samba] Logon script, help please | | | You should add the command 'pause' to the end of your script, it's makes | it easier to see if it's started. | | Have you made a [netlogon] share in your smb.conf? | | You should be able to run \\server\netlogon\login.bat from your Windows | computer when everything is set up correctly. | | Frode | | |-Original Message- | |From: [EMAIL PROTECTED] [mailto:samba- | |[EMAIL PROTECTED] On Behalf Of Mike Stewart | |Sent: 30. april 2004 11:24 | |To: Samba | |Subject: [Samba] Logon script, help please | | | |Hi, | | | |I'm having trouble getting a logon script to work... | | | |I have created a DOS batch file (timesync.bat) and placed it in the | scripts | |directory of the server. | | | |The file contains only one line - net time \\ptlserver /SET /y | | | |My smb.conf Globals section is:- | | | |[global] | | workgroup = PTLTRAIN | | netbios name = PTLSERVER | | server string = Llandrindod Trainee Server | | encrypt passwords = Yes | | ssl CA certDir = /etc/ssl/certs | | log file = /var/log/samba.%m | | max log size = 50 | | time server = Yes | | load printers = No | | disable spoolss = Yes | | show add printer wizard = No | | logon script = scripts\timesync.bat | | dns proxy = No | | wins server = 172.16.1.50 | | hosts allow = 172.16.15. 127. | | veto files = /*.mp3/ | | | |Looking at the Samba/SWAT help file it mentions The script must be a | |relative path to the [netlogon] service but I don't have/can't find | |anything to do with netlogon ! | | | |I was hoping that the file would load and run as soon as the user | logged in | |to the server but nothing seems to happen, no error message either...am | I | |doing something wrong ? I can run the command net time \\ptlserver | /SET | |/y from W2k Start/Run and it works. | | | |Using Slackware 9.0/Samba 2.2.8a | | | |Thanks | | | |Mike Stewart | | | | | |--- | |Outgoing mail is certified Virus Free. | |Checked by AVG anti-virus system (http://www.grisoft.com). | |Version: 6.0.659 / Virus Database: 423 - Release Date: 16/04/2004 | | | | | |-- | |To unsubscribe from this list go to the following URL and read the | |instructions: http://lists.samba.org/mailman/listinfo/samba | | | | | |--- |Outgoing mail is certified Virus Free. |Checked by AVG anti-virus system (http://www.grisoft.com). |Version: 6.0.659 / Virus Database: 423 - Release Date: 16/04/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 16/04/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Time server
Thanks Mac/Matthew, I DO have time server = yes in my global section of smb.conf. I can now get the PC's clock to sync to the server using - net time \\ptlserver /SET /y Now I'm struggling with setting up a logon script (I've made several postings !) but it's not working... yet. In the meantime I have a DOS batch file in a masters directory on the server so users can sync the clock manually. Mike - Original Message - From: Matthew J. DiBattista [EMAIL PROTECTED] To: 'Mac' [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, April 30, 2004 1:06 PM Subject: RE: [Samba] Re: Time server I may have missed something prior, but don't you need the time server program running on your server? Sincerely, Matthew J. DiBattista Matthew J. DiBattista Information Technology Technicians -Original Message- From: Mac [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 8:13 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Samba] Re: Time server Hi all, Thanks. I've set that up but it doesn't seem to be doing anything :-( I found other, very similar instructions on the 'net... Under my computer, manage, services applications, services made sure that Windows Time was set to start automatically. Then in a DOS box ran the following commands net stop Windows Time net time /setsntp:172.16.15.4 (my samba server) net start Windows Time I *can* use the DOS command:net time \\172.16.15.4 /SET /y and the clock does sync to the server. I've just been fighting with this myself, and I _think_ I've got a firm understanding. There are _two_ ways that a modern (W2K, XP) box can talk to time servers, NetBIOS and SNTP. _Both_ are accessed with the 'net time' command, but unconnected to each other. So, if you use `net time \\someserver /set /yes' then that will use the NetBIOS style of getting the time (i.e from an SMB server). But, if you use `net time /setsntp:some-other-server'. then that will configure which SNTP server(s) the Windows Time (w32time) service will talk to. Obviously 'some-other-server' must speak NTP (which Samba, naturally) doesn't do. You need (something like) xntpd instead. (You can of course rrun Samba and an NTP serer on the same server. In XP the 'w32tm' command is expanded to allow you to update the config of the Windows Time service on the fly ('w32tm /config /update'). Note that you _must_ either use this command or stop and start the w32time service for any changes to take effect (that includes changes made by 'net time /setsntp:')! Also, some useful info is available from (XP's) 'w32tm /monitor' and 'w32tm /dumpreg /subkey:parameters' Right, enough of this off-topic nonsense.. Mac Assistant Systems Adminstrator @nibsc.ac.uk [EMAIL PROTECTED] Work: +44 1707 641565 Everything else: +44 7956 237670 (anytime) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 16/04/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Time server
Um, don't know where my original reply went to ! but... Thanks. I've set that up but it doesn't seem to be doing anything :-( I found other, very similar instructions on the 'net... Under my computer, manage, services applications, services made sure that Windows Time was set to start automatically. Then in a DOS box ran the following commands net stop Windows Time net time /setsntp:172.16.15.4 (my samba server) net start Windows Time Still no errors but hasn't yet synchronised the time with the server. In Samba I have in the Globals section:- map to guest = Bad Password guest account = nobody Is that right ? I *can* use the DOS command:net time \\172.16.15.4 /SET /y and the clock does sync to the server. Thanks Mike - Original Message - From: Malcolm Baldridge [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 28, 2004 1:26 AM Subject: Re: [Samba] Re: Time server This will not automatically work against Samba, as we mimic NT4, which didn't know about NTP. But you can manually configure the NTP server on the client, and run an NTP server on your PDC if you wish. The Microsoft time services are substandard and do not implement a full NTP time management protocol. It's best to leave that to a real implementation like the xntpd-4 (or equivalent commercialised NT/2000 products built on similar technology). If you want to use the W32Time services, use them as clients. The default (under 2000) is to resync the time periodically in increasing intervals, settling in at about 3 syncs/day, I believe. Simple recipe to configure Windows servers to use it: net stop w32time net time /setsntp: dns-name-of-real-ntp-server (or it's ip#) w32time -s (hit Control-C if it doesn't return after 4 or 5 seconds) w32time -s (yes, sometimes it takes a couple of tries to get the time locked down) net start w32time Then make sure in the Services control panel that the Windows Time Service is configured to auto-start. Thereafter, it will resync every 45 minutes until the error is under 1 second, and then resync every 8 hours from that point forward. No clock-skew adjustments or other time conditioning is attempted, unlike a real NTP implementation. The MS W32time service seems to only care about one-second accuracy. Be aware of this if you chain time services as this jitter will accumulate. =MB= -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 16/04/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] can't get into home dir share (username stuck on guest)
Hi. I'm not sure if you need all that in homes, all I have is the following and everything seems to work OK. It's just what Samba created by default. [homes] comment = Home Directories read only = No browseable = No HTH Mike Running Slackware 8.0/Samba 2.2.7a with W98 W2k clients. - Original Message - From: Chris J. Bottaro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 28, 2004 3:33 PM Subject: [Samba] can't get into home dir share (username stuck on guest) i have my samba-2.2.7a setup to share home dirs as follows: [homes] browseable = yes writable = yes valid users = %S create mode = 0664 directory mode = 0775 the problem is that when logged on as a given user in windows, that user will see his/her home dir in my network places, but when he/she tries to enter it, a dialog comes up prompting for a password only. the input field is greyed out but filled in with computername/guest. how can i remedy this problem? thanks for the help. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 16/04/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Time server
Mac, perfectly explained. I had (it seems wrongly) assumed Samba was using SNTP. I'll stick to the good old DOS method. Thanks Mike - Original Message - From: Mac [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, April 29, 2004 1:13 PM Subject: Re: [Samba] Re: Time server Hi all, Thanks. I've set that up but it doesn't seem to be doing anything :-( I found other, very similar instructions on the 'net... Under my computer, manage, services applications, services made sure that Windows Time was set to start automatically. Then in a DOS box ran the following commands net stop Windows Time net time /setsntp:172.16.15.4 (my samba server) net start Windows Time I *can* use the DOS command:net time \\172.16.15.4 /SET /y and the clock does sync to the server. I've just been fighting with this myself, and I _think_ I've got a firm understanding. There are _two_ ways that a modern (W2K, XP) box can talk to time servers, NetBIOS and SNTP. _Both_ are accessed with the 'net time' command, but unconnected to each other. So, if you use `net time \\someserver /set /yes' then that will use the NetBIOS style of getting the time (i.e from an SMB server). But, if you use `net time /setsntp:some-other-server'. then that will configure which SNTP server(s) the Windows Time (w32time) service will talk to. Obviously 'some-other-server' must speak NTP (which Samba, naturally) doesn't do. You need (something like) xntpd instead. (You can of course rrun Samba and an NTP serer on the same server. In XP the 'w32tm' command is expanded to allow you to update the config of the Windows Time service on the fly ('w32tm /config /update'). Note that you _must_ either use this command or stop and start the w32time service for any changes to take effect (that includes changes made by 'net time /setsntp:')! Also, some useful info is available from (XP's) 'w32tm /monitor' and 'w32tm /dumpreg /subkey:parameters' Right, enough of this off-topic nonsense.. Mac Assistant Systems Adminstrator @nibsc.ac.uk [EMAIL PROTECTED] Work: +44 1707 641565 Everything else: +44 7956 237670 (anytime) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 15/04/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Time server
Ah ha... I was browsing through the Globals in SWAT and came across the Time Server = yes option. But, can't figure out how to get my W2K clients to sync to it (other than DOS.. net time \\server /SET ). Any ideas ? Thanks Mike --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 16/04/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Premission
Hi Manfred, I had the same requirement for accessing ALL the user's home folders. This is the entry I have for the share in smb.conf It works OK for me. [private] comment = Access for Backup of *Central Server* path = /home admin users = mike, ray browseable = Yes Hope this helps Mike - Original Message - From: Manfred Hungerland [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 19, 2004 1:45 PM Subject: [Samba] Premission Hello i am new to this list so i hope this question havent been asked for. i want a user on windows ( admin ) that has access to all userfiles on the samba server: /home/user1 ; / home/user2/ no i made a schare for /home the problem is: i can access all files in the userdirectory, but i canot access a subdirectory in the userdierecory. any help would be nice. sorry for my englih Greatings from Switzerland manfred -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.659 / Virus Database: 423 - Release Date: 15/04/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Upgraded to 3.0.2a but...
Thanks again Daniel, Yes, I edited rc.samba to point to the new files, still told me I was running 2.2.8a ! I didn't know there was a make uninstall, I'll run that now. I'll read through the configure file to see if I can modify it myself (I suppose I could compare it to the configure file originally used for my 2.2.8a) and if I can get my head around it I'll try it - failing that I'll wait for a Slackware package to turn up. Many thanks Mike - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, April 15, 2004 5:52 PM Subject: RE: [Samba] Upgraded to 3.0.2a but... Seems that the 3.0.2a installation put most of the files in different directories from the original 2.2.8a (which came bundled with this slackware 8). This can be changed with --prefix statements in your ./configure step, if you want something other than /usr/local. Alternatively, you can look for a Samba 3.0.2a Slackware package to upgrade to, which should have all the ./configure stuff already set up similarly to how it was in 2.2.8a. The rc.samba file would not start nmbd or smbd and I couldn't manually start them from anywhere except when I went right into the /usr/local/samba/sbin directory ! Did it install new startup scripts under the /usr/local/ tree? When I did start them I was still being told I was running Samba 2.2.8a. This is after updating the rc.samba file to point to the new samba3 binaries? Thanks also for reminding be where swat was called from :-) Doesn't seem to be a chkconfig here. Chkconfig is more or less a tool to create the symlinks from rc5.d (or whichever runlevel) to the appropriate rc.d scripts. You could do much of the same things yourself with ln -s, but if those scripts don't start up the correct samba version anyway, it won't help you. As it was causing me problems and I'm new to Linux/Samba I've just reverted back to 2.2.8a. All seems to be running Ok, just wish there was some way of now removing everything that the 3.0.2a installation has left behind - just to keep things tidy :-) If you'd rather just stick with 2.2.8a you can make uninstall from the same directory you did the make install for Samba 3 to tidy up. ~ Daniel --- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Upgraded to 3.0.2a but...
Thanks Daniel, Seems that the 3.0.2a installation put most of the files in different directories from the original 2.2.8a (which came bundled with this slackware 8). The rc.samba file would not start nmbd or smbd and I couldn't manually start them from anywhere except when I went right into the /usr/local/samba/sbin directory ! When I did start them I was still being told I was running Samba 2.2.8a. Thanks also for reminding be where swat was called from :-) Doesn't seem to be a chkconfig here. As it was causing me problems and I'm new to Linux/Samba I've just reverted back to 2.2.8a. All seems to be running Ok, just wish there was some way of now removing everything that the 3.0.2a installation has left behind - just to keep things tidy :-) TVM Mike - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, April 15, 2004 1:29 PM Subject: RE: [Samba] Upgraded to 3.0.2a but... New installation seems to have placed smbd, nmbd and swat into /usr/local/samba/sbin (older ver was in /usr/sbin) so I changed the entries in /etc/rc.d/rc.samba to show correct path and now smbd/nmbd are not running at all. So a /etc/rc.d/rc.samba start fails? Or if it's just not started after boot, do you have a symlink in your rc5.d or whatever runlevel you start in? In RH/SuSE systems this is done with chkconfig, not sure what tool Slackware uses for its runlevel management. Also, where is swat started from ? Usually xinetd (or inetd). All this is running on Slackware 8. I have restarted the whole system but no luck. What have I done wrong this time ! Fairly new to linux/samba I'm afraid. Good luck, ~ Daniel --- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] couldn't find service ?!
Hi, Please could someone explain this to me. I have a basic setup with Slackware 8.0 and Samba 2.2.8a running purely as a fileserver for our win2k machines. I've just looked into var/log/samba.mike (that's me) and it shows... [2004/03/26 10:23:10, 0] smbd/service.c:make_connection(252) mike (172.16.15.52) couldn't find service mik I'm mapped to the share mike OK and not having any problems, just wondered what this log entry means. I've looked in other user's logs too and they are also not having problems but show similar entries - each entry just seems to be missing the last character off the share they are accessing. Confused (as usual) !:-) TIA Mike -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Automatic SAMBA user creation from UNIX
I _think_ you can do it by pointing Samba at the Unix password shadow file... something like In your smb.conf: update encrypted = Yes smb passwd file = /etc/shadow unix password sync = Yes Mike - Original Message - From: carmoda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 05, 2004 2:04 PM Subject: [Samba] Automatic SAMBA user creation from UNIX Hi, i was wondering how i could have SAMBA automatically add a user when they are created under Unix. /carmoda -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] strange entries in /var/log/samba.%m
Hi, Please could someone explain this to me. I have a very basic setup with Slackware 8.0 and Samba 2.2.8a running purely as a fileserver for our win2k machines. I've just looked into var/log/samba.mike (that's me) and it shows... [2004/03/26 10:23:10, 0] smbd/service.c:make_connection(252) mike (172.16.15.52) couldn't find service mik I'm mapped to the share mike OK and not having any problems, just wondered what this log entry means. I've looked in other user's logs too and they are also _not_ having problems but show similar entries - each entry just seems to be missing the last character off the share they are accessing. Confused (as usual) !:-) TIA Mike --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.622 / Virus Database: 400 - Release Date: 14/03/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Resolving computername from ip
I normally use ping -a [IP address] from a Windows DOS session. Not sure if the -a option works from a Linux commend prompt though. - Original Message - From: Torben Thomsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 26, 2004 7:47 AM Subject: [Samba] Resolving computername from ip Hi, Is there, on a intranet, any way to resolve the computername from its ip ? I have a setup where I know which users are on which ip, and I wan't to notify some events to some users with a smbclient -M. But since I don't know the computername, I don't know any way to send the popups... thanks /torben t -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.622 / Virus Database: 400 - Release Date: 15/03/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] couldn't find service ?
Hi, Please could someone explain this to me. I have a basic setup with Slackware 8.0 and Samba 2.2.8a running purely as a fileserver for our win2k machines. I've just looked into var/log/samba.mike (that's me) and it shows... [2004/03/26 10:23:10, 0] smbd/service.c:make_connection(252) mike (172.16.15.52) couldn't find service mik I'm mapped to the share mike OK and not having any problems, just wondered what this log entry means. I've looked in other user's logs too and they are also not having problems but show similar entries - each entry just seems to be missing the last character off the share they are accessing. Confused (as usual) !:-) TIA Mike --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.622 / Virus Database: 400 - Release Date: 15/03/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Stopping new directory creation ?
Thanks Matt. It would seem that if I set the Linux group permissions on the top-level directory to RX it has the desired effect. I'll run it for a while to make sure and if it fails I'll try your method - I'm fairly new to Samba and don't understand Domains... as far as I can see I'm not using one !? Am I missing something ? TVM Mike - Original Message - From: Matt Perkins [EMAIL PROTECTED] To: Mike Stewart [EMAIL PROTECTED]; Samba [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 4:28 PM Subject: RE: [Samba] Stopping new directory creation ? Mike, These commands should give you the results you are looking for. The first command sets a domain group on your toplevel folder (probably Domain Admins) that will be allowed to create folders. The second command disallows folder creation by everyone else. The folders under topleveldir should be set to 777. You will need to remove force group from your share definition. chgrp DOMAIN\Change Group topleveldir chmod 775 topleveldir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Stewart Sent: Wednesday, March 24, 2004 10:01 AM To: Samba Subject: [Samba] Stopping new directory creation ? Hi, I've been looking for a way to stop users creating new sub-directories under a top level (shared) directory - which will need to contain 3 readymade directories and/or to stop users placing files outside the 3 readymade directories. Is this at all possible ? Got a really basic system - Slackware 8.0 and Samba 2.2.8a running purely as a fileserver for Win2k clients. Thanks Mike smb.conf is [global] workgroup = Server netbios name = OurGroup netbios aliases = Test_Server server string = Samba Server encrypt passwords = Yes ssl CA certDir = /etc/ssl/certs log file = /var/log/samba.%m max log size = 50 load printers = No disable spoolss = Yes show add printer wizard = No dns proxy = No wins server = 172.16.1.50 hosts allow = 172.16.15. 172.16.50. 172.16.63. 172.16.86. 172.16.158. 172.16.171. 172.16.172. 127. veto files = /*.mp3/ [CS_Shared] comment = Admin Files on *Central Server path = /home/csshared write list = @csadmin force group = +csadmin read only = No inherit permissions = Yes --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.622 / Virus Database: 400 - Release Date: 13/03/2004 -- 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 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.622 / Virus Database: 400 - Release Date: 14/03/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Stopping new directory creation ?
Hi, I've been looking for a way to stop users creating new sub-directories under a top level (shared) directory - which will need to contain 3 readymade directories and/or to stop users placing files outside the 3 readymade directories. Is this at all possible ? Got a really basic system - Slackware 8.0 and Samba 2.2.8a running purely as a fileserver for Win2k clients. Thanks Mike smb.conf is [global] workgroup = Server netbios name = OurGroup netbios aliases = Test_Server server string = Samba Server encrypt passwords = Yes ssl CA certDir = /etc/ssl/certs log file = /var/log/samba.%m max log size = 50 load printers = No disable spoolss = Yes show add printer wizard = No dns proxy = No wins server = 172.16.1.50 hosts allow = 172.16.15. 172.16.50. 172.16.63. 172.16.86. 172.16.158. 172.16.171. 172.16.172. 127. veto files = /*.mp3/ [CS_Shared] comment = Admin Files on *Central Server path = /home/csshared write list = @csadmin force group = +csadmin read only = No inherit permissions = Yes --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.622 / Virus Database: 400 - Release Date: 13/03/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] clients logout .............
Hi Steve, The situation I have here is... all PCs have a Windows login name in the format PTLUser* and on each there's a shortcut to the server (PTLServer) of the desktop. When the machine is first booted it logs straight in to windows using the PTLUser* and password. When the user double-clicks on the desktop shortcut to access the server they are then required to enter their unique Samba username and password. This opens up the windows showing the shares on the server (including their home folder) and they can then map as required. When finished, they can chose disconnetc network drive from several places and this will remove the mappings. Now, if another user comes along and double clicks on the desktop shortcut it assumes that they are the same user as previously asccessed the server and shows the previous user's folder as available. Somewhere previous in this thread someone suggested using the map network drive - Connect as different user as an option but as opening the shortcut to the server only shows the previous user's home folder this does not seem possible ? Seems that Windows is remembering the username and passwrod somewhere so the only way I can find to clear this is to reboot or logoff users PTLUser* and start again. Sorry that was so long winded :-) Thanks Mike - Original Message - From: Aden, Steve [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 5:17 PM Subject: RE: [Samba] clients logout . Mike, How are you specifying the new login name? If using the map network drive gui, you would need to click the link that says Connect using a different name (different being other than the logged on user). If mapping with the net use command, you can specify a different user by doing something like this: net use * \\server\share /user:domain\username *. The * at the end will cause the program to prompt for a password. If you connect via a UNC from the run box or explorer address bar, Windows will attempt to connect with the logged on user or if there is a current connection to the server, it will try to use the id in use by the other connection. You will not be able to connect with another userid until all connections to the server are disconnected. Windows will give you an error which say something about not allowing multiple connections to a server with different credentials. Steve Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Opinions, conclusions and other information contained in this message that do not relate to official business shall be understood as neither given nor endorsed by ITS -Original Message- From: Mike Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 10:44 AM To: [EMAIL PROTECTED] Subject: Re: [Samba] clients logout . Thanks Steve, I've just tried that but it doesn't work - the PC seems to remember the last login name and password and reconnects to the server as that user again :-( Mike - Original Message - From: Aden, Steve [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 3:29 PM Subject: RE: [Samba] clients logout . You should be able to click Tools/Disconnect Network Drive from a Windows Explorer window, then select the connection to the Samba server and click ok. Note, this can be done even if the connection was not mapped to a drive letter, such as by typing \\server\share in the run box. You can then map a drive to the server with a different user account. Steve Aden Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Opinions, conclusions and other information contained in this message that do not relate to official business shall be understood as neither given nor endorsed by ITS -Original Message- From: Mike Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 8:55 AM To: [EMAIL PROTECTED] Subject: Re: [Samba] clients logout . I hope someone can anser that... I would find it ver useful too !! There was the DOS net logoff but that will not work in a Windows VM, only in real mmode :-( Hi, Two questions, only slightly related to SAMBA : 1) when I have logged into my Samba server (rh9) from a W2K or XP client, how can I log out again so that I can log in as someone else. I know logging out of W2K/XP will work, but I would like to log out of the SAMBA server w/o logging out of W2K/XP. My Mac OS X client has an 'eject' button which
Re: [Samba] clients logout .............
I hope someone can anser that... I would find it ver useful too !! There was the DOS net logoff but that will not work in a Windows VM, only in real mmode :-( Hi, Two questions, only slightly related to SAMBA : 1) when I have logged into my Samba server (rh9) from a W2K or XP client, how can I log out again so that I can log in as someone else. I know logging out of W2K/XP will work, but I would like to log out of the SAMBA server w/o logging out of W2K/XP. My Mac OS X client has an 'eject' button which I can use - something similar to that is what I am after. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.622 / Virus Database: 400 - Release Date: 13/03/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] clients logout .............
Thanks Steve, I've just tried that but it doesn't work - the PC seems to remember the last login name and password and reconnects to the server as that user again :-( Mike - Original Message - From: Aden, Steve [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 3:29 PM Subject: RE: [Samba] clients logout . You should be able to click Tools/Disconnect Network Drive from a Windows Explorer window, then select the connection to the Samba server and click ok. Note, this can be done even if the connection was not mapped to a drive letter, such as by typing \\server\share in the run box. You can then map a drive to the server with a different user account. Steve Aden Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Opinions, conclusions and other information contained in this message that do not relate to official business shall be understood as neither given nor endorsed by ITS -Original Message- From: Mike Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 8:55 AM To: [EMAIL PROTECTED] Subject: Re: [Samba] clients logout . I hope someone can anser that... I would find it ver useful too !! There was the DOS net logoff but that will not work in a Windows VM, only in real mmode :-( Hi, Two questions, only slightly related to SAMBA : 1) when I have logged into my Samba server (rh9) from a W2K or XP client, how can I log out again so that I can log in as someone else. I know logging out of W2K/XP will work, but I would like to log out of the SAMBA server w/o logging out of W2K/XP. My Mac OS X client has an 'eject' button which I can use - something similar to that is what I am after. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.622 / Virus Database: 400 - Release Date: 13/03/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba _ This message was content-scanned by IXC Shield Powered by GatewayDefender - BJ089f8ac1.0001.mml -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Hide printer icon
Hi, is there any way I can hide the printers icon/folder from the Windows users ? We don't have any printers attached to the Samba server and find that it's confusing the users a little ! Thanks Mike Stewart --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.592 / Virus Database: 375 - Release Date: 18/02/2004 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] XP needs ~30seconds to open network share
Is there something similar (or the same) in win 2000 which I could disable ? Mike - Original Message - From: Leroy van Logchem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 21, 2003 8:46 AM Subject: Re: [Samba] XP needs ~30seconds to open network share Try disabling the WebClient under services of the XP clients. XP first tries to use webdav to connect to the share when that times out it will then use smb. If that really improves the reconnection speeds when using deadtime for example, please include this tip in the samba documentation. Near the sign or seal registry tips would be a good place imo. Did anyone test the difference in connection times? At my location we use kixart scripts to connect to 10+ shares when logging on to the smb PDC, any tips? Regards, | | Leroy(dot)vanLogchem (at) wldelft(dot)nl | Systems Group | WL | Delft Hydraulics - http://www.wldelft.nl | -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Scanned with Grisoft AVG 6.0. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.456 / Virus Database: 256 - Release Date: 18/02/2003 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba]Ooops File In Use when it's not...not a problem
Thanks Joel, Netwatcher is one of the M$ Windows (95/98 and maybe 2K) system tools. Shows who is connected to your shares, what files they have open etc. and allows you to disconnect them :-) Seems that if the client crashes, and then tries to reconnect after reboot, finds that the files are in use by their previous connection so disconnecting them via Netwatcher is the way to reset the file lock. I _think_ the same action could be performed for Linux/Samba using the Kill option in SWAT - if the problem ever arrises. I'll crawl back under my desk now Many thanks again. Mike --- Outgoing mail is certified Virus Free. Scanned with Grisoft AVG 6.0. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Rejecting User
Do you have other users who CAN log in via Samba ? Have you set up their Samba password (smbpasswd) and have you included their IP in Hosts files. Mike - Original Message - From: Jorge Videgain Marquez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 07, 2003 12:05 PM Subject: [Samba] Rejecting User Hello I get the followin message when i try to conect to a samba server with security set to USER. The user is well defined into the linux server and can login at console without problem but is rejected when he try to conect throught samba. Message into log is: [2003/02/07 13:52:27, 0] passdb/pampass.c:smb_pam_passcheck(827) smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User jorge ! What can be wrong? SMB file is: smb.conf --- [global] workgroup = OTO_RED1 netbios name = OTO2 netbios aliases = V2 update encrypted = Yes map to guest = Bad User passwd chat = *nuevo*password* %n\n *nuevo*password* %n\n *cambiado* log file = /etc/samba/log.%m time server = Yes keepalive = 30 lm announce = False domain master = False [pmedusa] comment = Directorio Oto path = /hd_datos/poto guest account = valid users = @oto write list = @oto force user = interno_smb force group = general read only = No create mask = 0770 force create mode = 0770 directory mask = 0770 force directory mode = 0770 [printers] comment = All Printers path = /tmp create mask = 0700 guest ok = Yes printable = Yes browseable = No -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Scanned with Grisoft AVG 6.0. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Rejecting User
I do not know if you need to use smbpasswd when you have security=USER (I have security=SHARE) We will have to wait for a more experienced person to answer this. Mike - Original Message - From: Jorge Videgain Marquez [EMAIL PROTECTED] To: Mike Stewart [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, February 07, 2003 2:46 PM Subject: Re: [Samba] Rejecting User None user can log via samba. I have never used smbpasswd because i use security = USER an it use local user configured at linux. Should i use smbpasswd now? El Vie 07 Feb 2003 14:39, Mike Stewart escribió: Do you have other users who CAN log in via Samba ? Have you set up their Samba password (smbpasswd) and have you included their IP in Hosts files. Mike - Original Message - From: Jorge Videgain Marquez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 07, 2003 12:05 PM Subject: [Samba] Rejecting User Hello I get the followin message when i try to conect to a samba server with security set to USER. The user is well defined into the linux server and can login at console without problem but is rejected when he try to conect throught samba. Message into log is: [2003/02/07 13:52:27, 0] passdb/pampass.c:smb_pam_passcheck(827) smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User jorge ! What can be wrong? SMB file is: smb.conf --- [global] workgroup = OTO_RED1 netbios name = OTO2 netbios aliases = V2 update encrypted = Yes map to guest = Bad User passwd chat = *nuevo*password* %n\n *nuevo*password* %n\n *cambiado* log file = /etc/samba/log.%m time server = Yes keepalive = 30 lm announce = False domain master = False [pmedusa] comment = Directorio Oto path = /hd_datos/poto guest account = valid users = @oto write list = @oto force user = interno_smb force group = general read only = No create mask = 0770 force create mode = 0770 directory mask = 0770 force directory mode = 0770 [printers] comment = All Printers path = /tmp create mask = 0700 guest ok = Yes printable = Yes browseable = No --- Outgoing mail is certified Virus Free. Scanned with Grisoft AVG 6.0. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] configuration help
Can you ping the Linux machine from the wndows machine... and the Windows machine from the Linux machine ? - Original Message - From: sukkur abdul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 3:16 PM Subject: [Samba] configuration help Dear I install linux 8 in one system and samba also enabled more over I edit registery in my win98 system I can see linux mechin in windows network neighborhood when I am opening the system It is not opening it is giving error lilke the computer in not in this net work ( the ip address of the linux is 172.16.10.123 , the windows ip address is 172.16.10.132) the class is same sir what will be the error pleas help me sir my e - mail id is [EMAIL PROTECTED] [EMAIL PROTECTED] by from sukkur .k.m - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- Outgoing mail is certified Virus Free. Scanned with Grisoft AVG 6.0. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Help Needed
Have you set up the users with Linux accounts and smbpasswd entries and have you added them to the etc/hosts file ? Mike - Original Message - From: pondiboy - [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 03, 2003 11:52 AM Subject: [Samba] Help Needed Hi there I have resently shifted from a windows server to a linux server (Mandrake 9.0). I have configured the /etc/samba/smb.conf file and I have the server shown in the network neibourhood of my win clients. But I am not able to login the server. Could anyone please help me?? Thanks Pondiboy _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] swat not working this time
Hi again, I've just reinstalled RH 7.2 and Samba 2.2.7 for the unpteenth time this time swat is not working !!! I have checked the etc/services file and swat 901/tcp is in there and I have a text file named swat in etc/xinetd.d directory containing the following... service swat { port = 901 socket_type = stream wait = no user = root server = /usr/local/samba/bin/swat log_on_failure +=USERID disable = no } I can't access is from either the browser on my PC or from KDE's Konqueror Have I missed some vital step ? It all worked last week when I first/second/third installed everything but I've been busy installing M$ Windoze 2000 for a few days and my brain is addled. TVM Mike -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SWAT, where ? Got it, not working :-(
thanks all, it's now works near enough. Mike - Original Message - From: Joseph Loo [EMAIL PROTECTED] To: samba [EMAIL PROTECTED] Sent: Friday, November 22, 2002 5:08 AM Subject: Re: [Samba] SWAT, where ? Got it, not working :-( Have you tchecked your pam.d files for samba? Mark Knecht wrote: Mike, Connect to swat from the Samba machine using the Linux browser, not across your network. On the samba PC, start Mozilla or whatever you use, then go to http://localhost:901 and see if you get better results. It's possible that you have a firewall blocking port 901. Make sure your firewall (if enabled) allows that connection. Mark -Original Message- From: Mike Stewart [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:16 AM To: Mark Knecht; 'Bradley W. Langhorst' Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Samba] SWAT, where ? Got it, not working :-( I'll try to list what I've done... Downloaded and installed the latest Samba (which contains swat). Installed it and it seems to work as I can log in to a share with my W2k PC. As I'm using Red Hat 7.2 this has xinetd so... Addedswat 901/tcpinto the /etc/services file Then created a new file in the /etc/xinet.d folder and named it swat In the swat file I put { port = 901 socket_type = stream wait = no user = root server = /usr/local/samba/bin/swat log_on_failure += USERID disable = no } That's itrebooted a few times, tried to connect from my PC using IE but can't. I have another Samba server but it's running SlackWare and uses inetd so the configuration differs :-( I get to that one OK using IE/Swat I have checked that swat is actually in the folder /usr/local/samba/bin and it does show up in the list of services in KDE but does however say You must enable xinetd to run this service Maybe I've missed something ? Thanks Mike -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- Joseph Loo [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Starting smbd nmbd from xinetd ?
Hi there, Just experimenting with Samba (latest version) running on RH 7.2 Everything seems to be OK, got it running and can access shares but... smbd and nmbd have to be started manually ! ( using # /usr/local/samba/bin/smbd -D and then # /usr/local/samba/bin/nmbd -D ). Any idea how I set it to start at bootup ? It doesn't show up in the services configuration under the RH configuration manager and as I'm very new to linux/samba I don't know how to set it up (probably somewhere in xinetd ?) Any help appreciated. Mike -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re:SWAT, where ? what a FOOL
Hi. after 2 days of looking, checking and rechecking I've just found that I made a mistake in the swat file I'd created in xinetd.d ... got the path to swat wrong. What a fool am I. All's working brilliantly now. Thanks to all for your assistance... sorry it was my mistake. Mike -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SWAT, where ? Got it, not working :-(
Thanks Mike, it wasn't included with the Samba I had so I downloaded the latest. SWAT is not working though... it's there but I can't get to it from the browser on my PC. I've done the modification to /etc/services and created a file named swat in the xinet.d directory as shown in http://samba.linuxbe.org/en/samba/learn/swat.html Using RedHat 7.2 and now Samba 2.2.6 and rebooted several times. Thanks Mike G'day... You may have already checked this, but open up a web browser on the server and point it to http://localhost:901/ - just in case your distro has automatically included it... `rpm -qa | grep swat` may also indicate if it's installed already or not... Mike --- Michael S. E. Kraus Administration Capital Holdings Group (NSW) Pty Ltd [EMAIL PROTECTED] phone (02) 9955 8000 fax (02) 9955 8144 Mike Stewart [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 20/11/2002 02:39 AM Please respond to Mike Stewart To: [EMAIL PROTECTED] cc: Subject:[Samba] SWAT, where ? Hi there... first I apologise for being dim... Where can I download SWAT from ? I've looked on the Samba.org site but it only tells me that the demo page is off-line and no more info. Idiot proof instructions for installing it on RH 7.2 would be handy too :-) Thanks Mike -- 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
[Samba] SWAT, where ?
Hi there... first I apologise for being dim... Where can I download SWAT from ? I've looked on the Samba.org site but it only tells me that the demo page is off-line and no more info. Idiot proof instructions for installing it on RH 7.2 would be handy too :-) Thanks Mike -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba unable to validate password error
have you created the new user accounts in Unix and also in smbpasswd ? Mike - Original Message - From: Carolyn Mayr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 15, 2002 3:21 PM Subject: [Samba] Samba unable to validate password error I sent the following to [EMAIL PROTECTED] and I'm also forwarding this to the samba list. I hope you can help: - Begin Forwarded Message - I have an emergency and am at the end of my resources and hope you can help. I'm a samba newbie and hope you can point me to an answer. Our Samba2.0.5 server is a Sun Enterprise 450 (Solaris 7). Our PDC is an NT machine called warrior. The warrior is the smbpasswd server and the domain is CSDEPARTMENT. We've been running samba for the past 2 years with no problem. Now we are seeing a problem with new users in the CSDEPARTMENT domain when a user tries to log in from their PC to our samba server: [2002/11/15 07:53:51, 0] smbd/password.c:(1470) domain_client_validate: unable to validate password for user velazque in domain CSDEPARTMENT to Domain controller WARRIOR. Error was code 0. [2002/11/15 07:53:51, 1] smbd/password.c:(500) Couldn't find user 'velazque' in smb_passwd file. [2002/11/15 07:53:51, 1] smbd/password.c:(500) Couldn't find user 'velazque' in smb_passwd file. [2002/11/15 07:53:51, 1] smbd/reply.c:(925) Rejecting user 'velazque': authentication failed [2002/11/15 07:53:51, 1] smbd/server.c:(641) smbd version 2.0.7 started. I don't know what is causing this. I reviewed my smb.conf file using the Samba Unleashed book and according to the book, it's correct. I thought maybe the problem was with the PDC credentials so I tried this: #/opt/samba/bin/smbpasswd -j CSDEPARTMENT -r warrior cli_net_auth2: Error NT_STATUS_ACCESS_DENIED cli_nt_setup_creds: auth2 challenge failed modify_trust_password: unable to setup the PDC credentials to machine WARRIOR. Error was : NT_STATUS_ACCESS_DENIED. 2002/11/15 09:34:55 : change_trust_account_password: Failed to change password for domain CSDEPARTMENT. Unable to join domain CSDEPARTMENT. Could this be why I'm having the user validation problem? BTW, we do have an /etc/opt/samba/private directory with some old files: -rw-r--r-- 1 root root 40 Aug 17 2000 MACHINE.SID -rw--- 1 root root 127 Apr 30 2001 smbpasswd -rw-r--r-- 1 root other 25 Aug 18 2000 smbpasswd.junk Please help =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- = Carolyn A. Mayr (UNIX System Administrator) Voice: (410) 293-6808 (sec-6800) Computer Science Department, DivMathSci Email: [EMAIL PROTECTED] 572 Holloway Road, Chauvenet Hall, Stop 9F FAX: (410) 293-2686 U.S. Naval Academy WWW: http://www.cs.usna.edu Annapolis, MD 21402-5002USNA: (410) 293-1000 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- = -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Hosts files
Hi, I have put entries into the hosts file for all the machines which need to connect to our Samba server. Everything seems to be working correctly but I'm curious can anyone tell me what the other files hosts.deny and hosts.allow are for. Thanks Mike -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] PB samba 2.5 and clients W2K SP2-SP3
Possibly the password expiry time is set by Win2k and not Samba I have this problem too but not yet got around to investigating. Mike - Original Message - From: GAUCHON Bertrand [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 06, 2001 11:19 AM Subject: [Samba] PB samba 2.5 and clients W2K SP2-SP3 English version : Hi i've some problems with samba 2.5 and MDK 8.2 each time I log on a WIN2K SP2 or SP3 client I get the message : your password expires today would you like to change it ? yes no Even if I change it , I get the message one more time when I log on the client the next time.. I read the o'reilly and the how to and I didn't see any param for password expiration in smb.conf. If someone could help me thanks French version : bonjour j'ai actuellement un gros PB et malgré la lecture de l'O'reilly et du HOW-TO collection je n'ai toujours pas trouvé de réponse: Chaque fois que je me logue en security user ou domain j'obtiens sur les postes clients windows (uniquement) le message : Votre mot de passe expire aujourd'hui , souhaitez vous le changer ? oui, non. que je le change ou pas il me réaffiche le message à la prochaine ouverture de session. pourtant les comptes unix ne periment pas ni les comptes samba a priori. Si quelqu'un avait la réponse à ce problème ennuyeux merci -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] SWAT display
Is there any way of modifying the SWAT pages shown by my browser ? I'd like to move the heading so that I don't have to scroll down every time the page refreshes. Thanks Mike
[Samba] SWAT display
Is there any way of modifying the SWAT pages shown by my browser ? I'd like to move the heading so that I don't have to scroll down every time the page refreshes. Thanks Mike