Win95 and Samba
I have installed Samba and everything seem to be working fine if I want to access my Win95 computer shared files. (btw anyone know a GUI for Samba?) But If I want to acces shared files here on my linux computer (with my win95 computer) a window saying something like : you want to access //ELF/IPC$ please enter your password
What is this? What is IPC$ and what's this password (the only files I'm sharing are "guest access" without password... well I think) |
gui for samba=swat
you need to create user with samba which has same username/password than UR win95 use this smbpasswd -a YourName |
Ok... Can't I share my files to "any user" without any password?
|
Herm If I share a folder (example:/home/bill) can I deny user in my network to access other folders in this shared folder? (ex: /home/bill/Desktop)
|
What do you want?
Half_Elf, what exactly are you trying to accomplish? What do you want out of SAMBA? Maybe there's an easier way than what you currently have set up...
Do you want people to be able to log on to the Windoze workstation and have their username/password validated on the SAMBA server? Do you want each Linux user to have their own private share and a publicly accessible one at the same time? Just tell me what exactly you need and I'll do my best to help you... For example, at home I run a SAMBA PDC server, each member of my family has a username and a password. When they log on to the Windoze workstation(s), their start menus, registry settings and desktops get updated to their personal preferences, and they also get three shares mounted at login time: drive L: (their private disk space), drive W: (their public_html, an easy way to publish personal web pages), and drive P: (a place where all of them have write access and can share files among each other). The only thing that I have no experience in is printing, because I don't have a printer. :( |
btw, you can't have share open and folders underneath locked with password prompt
not possible in samba, not possible in windoze |
Quote:
|
I want to learn Sewer_Monkey!!!
I want my old crappy win95 computer to be able to access some files and folders in my linux box... Some folders must be protected by a password,some must be accessible to everyone. I also want some users to have the same "disk name" (like your L: ) but without sharing the same content (if you understand what I mean...) Can I share files to "any" users, not only users registered on my box? Oh and I want to access files shared on my Win computer with my Linux Box, but with a GUI if possible :D |
That's the spirit! ;)
OK, first off, take a peek at my smb.conf (a bit stripped down for simplicity's sake): Code:
[global] If you have any specifric questions, feel free to ask. I know you may have some, since the whole Windoze NT PDC scheme is pretty confusing... Machine accounts, user accounts... Go figure! ;) Also note, that you'll need a basic understanding of some SAMBA parameters before proceeding any further in this message. :) With regards to having freely-accessible shares (with no passwords), you can make a guest account (say, username "guest" and password "guest"), because SAMBA needs to work with a UNIX UID for any share. SAMBA needs a username for accessing any share it serves. Alternatively, you can make a guest share (see the man page for smb.conf), but you'll still have to tell SAMBA to use a UNIX username as the guest account (in the manpage they use the "ftp" account, but I prefer creating a separate account for SAMBA guests, or just use the username "nobody"). Now for password-level access (password-protected shares). Unfortunately you can't really do this nicely on SAMBA... Here's a quote from the smb.conf manpage: Quote:
What I would suggest is the following alternative (maybe there's a better way, but this is what comes to my mind): create a bogus account on your Linux box for the share, so that anyone can access it, if he/she knows the password for the bogus account. Note that you can have several "bogus" accounts like this in your smbpasswd file, and then you can use the user.map file to map these bogus usernames to actual UNIX usernames, such as "ftp" or "nobody". Here's what I mean (this is an example just to make it work, with no regards for security, such as create masks, e.t.c.): First of all, create a bogus username and a password in the /ets/passwd (and set the shell to something like /bin/false) and then in the smbpasswd file: smbpasswd -a bogususer Finally, add the needed share to your smb.conf: Code:
[someshare] I really suggest you go with the user-level security, though... Windoze 9x is not going to let you connect to anything unless you log on to it anyway... P.S. Are you a "Lord of the Rings" fan (you know, your username)? |
Woooow I think I will need a complete week to really understand all the content of this msg ;)
But thanx very useful, well the part I have understood yet :) Herm and yes I'm a Lord of The Ring fan but I use this nick since a very long time, not because of the movie :D |
You're welcome. And if you have any specific questions, feel free to ask. :)
|
I have only one question right now.
I want something having a GUI to access my files on my Win computer... You know, Samba is a text mode program... I really like text mode progz but if I want to get 3 specific files in... I dunno C:/Windows maybe?... well a very full folders, it will be a lot of trouble if I don't have a GUI. Do you know something that I can use in X to do that?? |
Yup, I have the same deal set up at home. ;)
What I did was add a line to my /etc/fstab, something like this: //newton/c /mnt/smb/newton/c smbfs user,_netdev 0 0 Which allows anyone to mount the share to /mnt/smb/newton/c, and once you get it mounted, it's only a matter of getting there with Konqueror, Nautilus, or whatever you want... Oh yeah, and I think KDE 2.x and above should have a GUI for smbclient built in, but I haven't played around with it... I know the URLs start with smb://... You might want to check this out. |
Quote:
If I understand your question correctly, you want something equivalent to Win 95/98's Network Neighborhood. In other words, something that will allow you to browse remote shares/folders with an "Explorer" kind of GUI presentation, yes? If so, Linneighborhood is what you want. It installs very easily, and is pretty intuitive to use. Once you're sure that your basic Samba/Linux<->Widows setup is functioning correctly, give it a try. :) |
sewer_monkey,
when you setup smb.conf file, I look at the line ................................................................ domain logons = yes (or domain logon = yes no "S") ................................................................. It tell me that ALL WINDOWS users must logon to this server (Linux box), isn't it? If YES, DO we need to do anything else with the Linux box or we ONLY need to edit smb.conf file to make it works like domain logon server for WINDOWs users? I have no problem with SAMBA at workgroup mode but don't know how to make it works like domain server. IF you have time, please drop me few lines to help me out. Thank you. |
Quote:
In order to make your Windoze clients log on to the NT domain, you have to:
|
Herm I have a problem with LinNeighborhood.. It try to MOUNT the shared drive to a path using smbmount (or a command like this) but I don't have this command (progs) in my samba/bin....
How can I enable this? I suppose it's an option I have to enable at compile time but I don't found wich one in the read me files... |
sewer_monkey,
Here my [golbal] & [netlogons], could you please tell me is it correct #Assume my workgroup = abc; my domain = def [global] os level = 64 domain master = yes preferred master = yes # printing = lprng dns proxy = no security = user null passwords = yes encrypt passwords = yes workgroup = abc server string = Samba Server socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 log file = /var/log/samba/%m.log netbios name = def load printers = no # printcap name = /etc/printcap wins support = true max log size = 0 [netlogons] path = /export/smb/net/netlogon read only = yes logon script = map.bat guest ok = yes Quote:
Quote:
Quote:
|
I use xSMBrower as the GUI interface. This does not setup Samba, it allows you to connect to the Windows computer. You can find it easily with a web search. After install you will have a script, but when you click on the script, you will find that you are reading the script, not executing it. Make a "link to application" to the script and click on that.
I put some discussion of SAMBA<>Windows on my website at http://www.fastbk.com/linux. Linux and Windows handle the shares differently. To access linux from windows, you have to first set up a user on linux that is the same "name" as your Windows Networks login name. Then, when the Windows Network tries to log in, it will be logging to that user account on Linux. Going the other direction, you can set a password on your shared resources (good idea) but then you will have to enter that password when you log into the Windows computer. Note on this -- xSMBrowser unfortunately saves the password in an unencrypted file for login purposes. Therefore, I always type the password. You also have to import the password user list into smbpasswrd. I forget the specfics on this, but Windows can't log into Linux until you accomplish this. Logging into Windows from Linux is fairly easy with xSMBrowser if your Samba client is running. If you don't have a browse server on the network (a waste of resources for one or two computers), you make a "favorites" entry and identify the other computer by IP. You can then browse to it. I have found that the "mount" command won't mount the drive for some reason, but the "explore" command will. |
|
All times are GMT -5. The time now is 01:05 AM. |