Click to See Complete Forum and Search --> : Accessing shared Linux folder from Win2k
Bashar
01-30-2003, 04:57 AM
Hello
I somehow think that this isn't the first post on this particular subject, but I'll give it a try anyway.
I'm attempting to set up a small Lycoris Linux fileserver on a Windows 2000 network. So far everything has gone fine, but when I get to the part where I enter the shared folder on Linux from my Winbox, it prompts me for some sort of login and password. Now, what is that all about? How do I, :
1) Acquire or change login and password, or
2) Make the shared Linux folder universally accissible (with no prompt for login and pass).
Any help will be appreciated, but please try to keep it in simple terms as my experience with Linux goes back only to monday.
:confused:
Crucificator
01-30-2003, 06:00 AM
Although I'm not familiar with this distro I think that you should consider changing the security permissions of the share. I suspect you're runing kde over your linux, ain't it. If so it should be a breeze.
Bashar
01-30-2003, 06:05 AM
Yes, I believe that it's KDE.
How do I change the permissions?
Crucificator
01-30-2003, 06:24 AM
If it's KDE then opening konqueror and right-ckicking the shared directory you should see a context menu containing "sharing". Unfortunately I don't have a linux nearby to tell you exactly what to do from there but I think that you'll manage. Also check chmod man page to set the directory's permisions to rwx for everyone. As for the msgbox that appears while connecting you should be able to use root and password to conect to it.
Bashar
01-30-2003, 06:58 AM
Nope, the root login won't work.
I somehow need a code to enter the network...
Crucificator
01-30-2003, 07:04 AM
have you tried changing the permisions?
bb_matt
01-30-2003, 07:06 AM
You need to make your linux user a samba 'user' by creating a password for the user with smbpasswd.
http://www.google.com/search?q=smbpasswd&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8
That should work fine.
All you really need to do in your smb.conf file is to set the workgroup and add a shared directory.
Bashar
01-30-2003, 08:27 AM
How do I edit smbpasswd and sbm.conf?
bb_matt
01-30-2003, 08:33 AM
Well, short of writing an entire Linux manual for you, if your unfamiliar with 'vi' or 'vim' as an editor, simply use one of the text editors in your desktop manager - kedit or something.
Open up the file /etc/smb.conf
At the same time, read the samba howto document.
The smb.conf file has explanations in it, but for the purposes of this explanation, simply look for the workgroup section and add your workgroup in there. If you don't have a workgroup setup on your win2k box, set one up.
smbpasswd - in a terminal (as root) simply type :-
smbpasswd username
where username is a user currently on your linux system (whatever users you may have setup)
Bashar
01-30-2003, 09:07 AM
Great! So far so good. However, when I try to create an smbpasswd, the program only returns an error that it can' find smbpasswd. <- including the period - in /etc/samba.d/
Do you know what sort of file that is? I tried creating a text fil with that name, but that didn't work.
Perhaps I could obtain it from somewhere?
Bashar
01-30-2003, 10:05 AM
Great^2!
I am happy to be able to write: That did it!.
Thanks both of you.
Bashar
JezzerP
01-30-2003, 10:06 AM
I just typed < smbpasswd -a username > in a console when I was having the same problem....worked for me (without the < of course). Can you see your Windows shares from the Linux box?:)
Bashar
01-30-2003, 10:14 AM
I used the same method... And it worked. Surprisingly tricky to find out if one has not done it before...
About the windows shares, I haven't checked since changing LAN parameters, but I couldn't see anything but the computers and main shared folders... Do you have a solution for that as well?
JezzerP
01-30-2003, 12:10 PM
Don't know if this will help, but I used LinNeighborhood (http://www.bnro.de/~schmidjo/) as the GUI frontend to configure my shares...works a treat:)