Comment viewing options

I got it running on Windows XP SP3, everything run smoothly except the user can not delete his/her own files. In windows XP security folder permission, I did allowed user have full permission but he/she able to create/edit/save BUT CAN NOT DELETE FILE. How can I make that work? Here is sample of my configuration:

I have modified de smb.conf file to work as domain controler I restarted the pc, and when I try the installation I revice
C:\PROGRA~1\samba>smbclient -L localhost -U guest%password
session setup failed: NT_STATUS_LOGON_FAILURE

I thought I deleted all cyg*.dll files from the samba folder (since I already have cygwin) and when I search for them nothing comes up--but then in /samba/sbin when I ls all the files, I see cygcrypt-0.dll and cygwin1.dll (even though they're invisible when I open that folder manually). So I tried deleting those files and it says

I was just wandering does this work now as a fully functioning samba system.
I download the files and installed as per your instruction above. Everyting worked
as stated with no problems. I installed it on a Windows 2003 Standard Server
with AD. Is there a way to configure more shares and users with this version?

Perhaps I am slow, but it took me a while to figure out that you have to also disable the microsoft client. This makes accessing shares via the direct \\device impossible. After playing with it quite some time I was unable to find a work around. I believe I see the reason for it. I think the client and server both keep those 139/445 ports open. So I understand that you have to totally kill the workstation service as well. Is it perhaps possible to move the workstation service or samba service to a different port so that the two can co-exist.

Hi. Newbee here. I went through these directions word for word and...it worked perfectly. But it clobbered my mapped drives. In fact I can't browse to any network shares in Windows. I've followed the remove samba procedure, but even after restart, my mapped drives are no more ! please help! Do I have to uninstall and reinstall Windows...(again?)

I would like to create extra users e.g. johnsmith to go to the /samba/etc/passwd and group files but when I do that and try to use smbpasswd to set the password I get error message. Can you tell me how come Administrator and guest don't give me the error message and is there a way I can create a new user using your samba setup that i can set the password with smbpasswd?

If I can't do that, can someone give me point point guide on how to do it with cygwin so it links to samba

Has anyone tried to run this samba version as domain controller? It would be nice alternative for small companies and has benefit to not pay for the linux guys extra... you can find many peaople who can handle windows, put few who are home in linux. Next step wold be little gui :)

to start with this comment, i fully understand that this is not officially supported and simply a method to prove that it can work with Cygwin under windows and not meant for production use.

Firstly i have done some real world tests on a server with RAID-5 array and it seems like with samba conf optimizations, the 'emulated' samba cannot really perform and file copy to windows/mac clients are very slow.

On a 100mbit network, default windows share on this server could achieve 8-9mbyte/s in realtime across a mac or windows machine.

Samba/cygwin can achieve 2-2.5mbytes/sec at best meaning around 20-30mbps.

Is there anyway to give more 'raw power' or to tweak samba settings to make it fully utilize memory or cache to speed up the file copy speed?

by the way can i engage you as a consultant for this particular issue as you have proved that this solution is viable and i'm really interested in this.

Samba works great on a Windows XP SP2 - I got 10-15 Windows clients each of which has at least two network drives connected. Performance seems to be the same as with Windows' proprietary services - Plus it is possible to have more than ten clients (which is the hard-wired maximum of XP)!
However I got a small but nasty problem, that might be linked to the way file permissions are set by smbd.exe:
Some Windows progs cannot save files on the network drives (E.g.: Word throws an error, claiming that too many files are open...)
I suspect that the cause for this might be, that smbd creates files with "read" and "write" permissions but not with the permission "change" etc. Also files are created with the group rights of "Nobody". Even if add the group "Everybody" with all the rights to be inherited from a folder above, the newly created files do not have all the permissions for "Everybody".
Does anyone have a solution for this? I tried changing the group id of some of the users in samba\etc\passwd, but files are still created as "Nobody". Adding "force create mask = 0777" to samba\lib\smb.conf did not do anything either.

Could the workflow I am using to create samba users be wrong?:
First I add a windows user, then I call samba\mkpasswds.cmd, afterwards I manually add the new user to samba\private\smbpasswd by copying and changing one of the above lines (this is not done automatically on my machine), and finally I use smbpasswd to set the users password.

Well, I just wanted to inform everybody that this is not urgent for me any more...
I "solved" the problem by installing a virtual machine with linux in it :-)
Still - If anyone has a solution, that would be interesting!

Hi I was to say atleast very happy when I got a hit on this when searching for something to allow a non domainserver to easy share with user:password ability under windows in a nice way.. I'm pretty used with samba running it under linux so this was great I thought..

sad thing is I have tried and tried to get this to work unt il I started to realease that U also had hardcoded the path in binaries to C:\progra~1\ ... and so on.

this cause a big problem for non english windows..

I'm using a swedish windows XP and default program path is C:\program\
which makes it impossible to go around even thou I make a path like C:\program(something)
I guess it hits the swedish default path first and goes along with that.. Which to me make no reason bcs that should work fine.. shouldnt it ?

also wanna add that I done evevrything by the book here after ur example.

or am I missing something here ?

I'm not a windows expert so I could be considered a noob here :P

so I desperatly hoping for some smart answers here :)

EDIT:
might aswell add some error output to make it easier..

C:\Program\samba\bin>smbclient -L
params.c:OpenConfFile() - Unable to open configuration file "C:/PROGRA~1/samba/l
ib/smb.conf":
No such file or directory

I also noticed that 1 of the reason might be that the service dont even start when running start_daemons.cmd.. have also tried to add the path by running path command with C:\progra~1\samba\lib without any luck

Everything works fine. Thank you very much for this port. Now I have some questions. :)

1. Is it possible somehow to access and use other windows pcâ€™s shares and map them as network drives on the box with windows+samba?

2. Is it possible to â€œclean upâ€ non-BartPE installation?

2.1 Iâ€™m talking about z_samba .html, .ini and .xml files in the root, .bat and .reg files in the files directory. I found no use of these files during installation. Do I need these files for samba to operate or can I safely delete them?

2.2. Is it necessary to map all those z: and y: drives to samba directories?

3. Is where any way to stop/restart nmbd and smbd beside killing them with Task Manager? This will be nice for smb.conf troubleshooting.

4. Is it possible without loosing functionality to serviceze smbd and nmbd with srvany or serviceex?

2.2. One more argument for hard coding not only the only one path, but options (--configfile=./smb.conf --log-basename=./logs --hosts=./lmhosts) too, until relative directories will work. I see no need to change them..But now it’s important for servicezing, see 4.

4. I’ve tried srvany, serviceex and cygrunsrv with no luck, even specifying application work directories differed from application location.. In all cases reported problem about paths. I think it’s all about options string for daemons.

Ross, can you recompile apps with hard coded single path "%SystemDrive%\Progra~1\samba\" and options “--configfile=./smb.conf --log-basename=./logs --hosts=./lmhosts” or something like this?

2.2 Yep, it better to hardcode the one and only, not substituted drive. Services won't start automatically at boot, because substitutions are made after services start. And nmbd and smbd should be started in Y:\samba because of configs, and smbd and nmbd are in Z:\samba. Not sure by now, but it could be a problem for service to start.

1. Yep, I've tried "net use" with "System error 67 has occurred. The network name cannot be found" output. Itâ's normal, all the netbios services disabled. So the question now is:

1.2 Maybe some of the services could be left running? Or...

1.3 I thought about some kind of win32 app, that can access smb shares by itself, not using the system services. Maybe a combination of "cmd+Microsoft network client for DOS+FAR manager" will do the job. Any other suggestions?

2.2 Is it possible to hardcode all the paths for one drive and installation directory, let's say "c:\samba" or even better "%SystemDrive%\Progra~1\samba\"?

3 and 4. By now I don't plan to use other nix stuff on that pc, so I don't want to use full cygwin at all, nor to control daemons or serviceze samba. If the srvany or serviceex will work fine, the service stop/start/restart won't be a problem: "net stop|start smbdsrv|nmbdsrv". I'll try this.

5. And there is one more test ahead: cygwin minimization down to your list posted above. Any successful reports?

Hello, I would be very grateful if you could assist me, i am currently trying to impliment samba on windows for a university project however everything seems to fail currently i have the following questions:

1- Is wget needed to get the z-samba file? i have just downloaded it straight from the net using basic right-click save method. Would downloading it using wget make a difference?

2- I have downloaded the full Cygwin package by selecting the 'install' option with regards to all the different cygwin packages in the installation menu, is that all thats needed? a previous poster mentioned that i needed opendlap-2-2-7, isnt that automatically installed if i installed the full cygwin package? if not how do i activate it since currently nothing saves to smbpassword.

3- For the samba bin folder i have copied the 'bin' folder and pasted it under System 32, System and Windows folder is this correct?

4- can i see a sample smb.conf file that would work if im implimenting the solution in a basic windows setup and based on above set of instructions posted by Ross since im finding it difficult to edit the samba.conf file to comply with Windows, this would be appreciated.

5- I keep getting error messages when trying to use the 'net send' option, it doesnt seem to find the machine although i can ping successfully between two machines

6- How can i use other system commands other that smbpasswd -a username, for example is there a way to use all the samba command such as those to add a new computer etc etc?

7- Is there a way once samba is successfully working to view the shared folder using something like windows explorer instead of using command prompt - net send each time as i would like to be able to see the shared folder from linux or windows directories.

8- Final question, when you say to download the 'additional packages' wget and unzip, where do i download them from? so far ive been renaming and moving the z_samba file manually as opposed to using command prompt.

Thanks alot, i know its quite a few questions but i hope someone can help me

4. z_samba.zip contains z_samba/files/ramdrv/samba/smb.conf, which has already been configured to work with Windows.

5. Not all programs may work. If something doesn't work, try the Windows equivalent, and see if it works.

6. Need specfic details, sorry.

7. I have successfully used Windows Explorer to "see" a share served by Samba running under Windows.

8. From within the Cygwin setup program.

Are you installing Samba under BartPE, or Windows? Which version of Windows, specifically? If BartPE, it should work out of the box. If not, please include a detailed error report, including the output of the B:\cygwin\var\log\smbd.log files (I think that's what they are named).

I was installing it under Windows Xp Sp1, I had followed the instructions and whilst i had managed to successfully add users using the smbpassword command i still couldnt access the samba machine from another networked computer running windows 2003 using the 'net use' command since it couldnt find the Samba computer.

However before i delve deeper using this method i think il try using BartPE first and add the plugin for samba and see if it works this time. Im not to familiar with using BartPE am i correct in assuming that i just have to download the relative plugins i.e Z_samba.zip, Cygwin.zip and z_PESetEnv.zip and their associated .inf files and add them to the prebuilder plugin list? Would i need the .mak file and the .patch file?

Once ive got my BartPE Windows CD and installed it onto a computer when you say that samba should 'work out of the box' does that mean i would proceed straight to steps 13 & 14 on this page: http://smithii.com/?q=node/view/36
in order to add users and start Samba or would i have to follow the list from step 1 onwards?

And finally would i have to install the Cygwin package on a BartPE computer to run Samba or is the cygwin.zip plugin sufficient?

Thanks again, I greatly appreciate this, i would really like to get Samba working on Windows.

You need to actually install Cygwin on the box you are creating your BartPE disk on. Then, follow the instructions in each of the .html files that accompanies each plugin. This is true of all BartPE plugins.

Thanks alot for your help Ross, i have successfully managed to get samba working under Windows xp based on your instructions, the problem appeared to be with using windows 2003 as a client which didnt work, as soon as i installed windows xp on the second machine it worked!!!

With regards to my question on samba commands, what i wanted to know was whether it was possible to add a machine or a user using cygwin/samba since on linux/samba i would use the command 'adduser' and 'smbpasswd -a -m name' for adding a machine whereas both commands do not work here.

Also is there a way for me to set up my samba as a domain controller? basically when i got to System - Computer name and try to change the domain name + workgroup to the one in the samba config file it successfully shows the username/password prompt which would usually be root + password but this does not work here.

Need a little help accessing the file located at http://www.smithii.com/files/plugins/z_samba.zip, keep getting permission denied. I would really like to try implementing this solution. Thanks in advance.