On Tuesday, June 14, 2005 @5:02 PM, Jerome wrote:
On Monday 13 June 2005 01:25, Greg Wallace wrote:
I share a linux directory with my Windows machine. Try adding --
wins support = yes security = share
to your [global] section.
Also, I have the following for my "share" (I called it Shareddocs just to have it stick out as a Windows share). I'm forcing the user to the Linux built-in nobody group.
[SharedDocs] path = /etc/samba/smbusers guest ok = yes guest account = nobody force group = MYHOME
Also, be sure the nobody user is set up as a member of the MYHOME group on your Linux machine. Whatever privileges you give it, that's what you'll be able to do from your Windows machine. Also, your Windows machine has to be using the MYHOME workgroup, which I assume it does.
Greg Wallace
Greg,
I added 'wins support = yes' and 'security = share' as you suggested and now all the default shares set up by Yast can be seen in 'My Network Places'.
The problem is when I enter the User name and password in the login window Windows prepends the name of my Windows machine to my User name like this:
MYVIAO/MyUserName
and reopens the login window. Windows does give a hint:
Example: User Name username@domain DOMAIN\username
How do I interpet this? I tried myusername@Linux\myusername and myusername@LinuxLINUX\myusername . Nothing is prepended but hitting enter reopens the login window.
I also have a question about adding a share the way you suggested above. Do I create a folder called SharedDoc somewhere to hold the information I want to share?
Thanks, Jerome
Jerome: I don't even get a Login Window. I click on My Network Places and there's a folder there with the pipeline under it that you see on a network share. I double click on it and I'm in my Linux folder. I don't need any security because of the guest account = nobody option I specified for [SharedDocs]. I also have the following line under [global] map to guest = bad user You probably have some additional setup work to do on Linux before you try to connect from the Windows machine. Here's an off the top of my head checklist -- *) Whatever workgroup you are using in Windows needs to be set up as a group on your Linux machine. *) Set up the folder in Linux that matches the path= name. Mine is shareddocs (and at the root level; i. e., /shareddocs on Linux). The owner of shareddocs is user nobody (built-in Linux user) and the group is the group I set up that matches my Windows workgroup name. *) Make sure any users that will access the share are assigned to that group on your Linux machine. I assigned the built-in "nobody" user to the group and, with the "guest account = nobody" option in Samba, that's the id that is in use when I'm working on my Linux machine from Windows (If I add a file, it shows up with that user when I look at the file over on Linux). I also added my Linux user id to that group and also root, giving me access to the folder on the Linux side. Once all of that was done, I went to "My Network Places" and added \\Linux\SharedDocs (yes, I named my Linux machine Linux -- lots of imagination at work there huh!). Now, if I double click on that folder, I'm looking at all of the files and directories in the Linux shareddocs directory from my Windows machine (sub-directories show up as folders). Hope this is enough to get you started. Greg