Date: Fri, 17 Mar 2000 16:55:37 +0000 (GMT) From: Cliff Rowley <dozprompt@onsea.com> To: Per Arve <Per.Arve@mt.luth.se> Cc: freebsd-questions@FreeBSD.ORG, samba@mail.anu.edu.au Subject: Re: Samba Message-ID: <Pine.BSF.4.21.0003171652250.2861-100000@merlin.onsea.com> In-Reply-To: <38D2572A.EEA5EC1F@mt.luth.se>
next in thread | previous in thread | raw e-mail | index | archive | help
Do you have lpr up and running? If so, you can create a section in your smb.conf like so: [printers] =09comment =3D All Printers =09path =3D /var/spool/samba =09print ok =3D Yes =09browseable =3D no Samba with enumerate your printers and they will be accessible via smb. If that still doesnt work, I'll send you my smb.conf. I would suspect that authentication would be needed to access a printer as much as it is for a share. I could be wrong, however. Do bear in mind that your smbpasswd's must be the same as the login password on the Windows machine(s). Cliff Rowley - while (!asleep) { code(); } On Fri, 17 Mar 2000, Per Arve wrote: > Well, I have acturally spent a couple of hours in front of swat, filling = the > different fields for the globals. Tried to use setup the printers, > but there are no printers to choose from though I have set up one printer= on > my freebsd. Unfortunately, I have no previous kvowledge on administrating= PCs > so I rather like to have an explicit example to copy, than having to choo= se > the value of som 20+ parameters whthout understanding their meaning, even > after reading about them in the man smb.conf pages. Do the users really n= eed > access to shares in order to print? >=20 > Per >=20 > Cliff Rowley wrote: >=20 > > > I have installed samba during installation of freebsd. It turned out = not > > > to install as the samba man pages suggest, nor did the freebsd ports > > > collection. Does this create any particular changes in the smb.conf f= ile > > > or other configuration parameters, that I need to take care of. > > > > Nothing wrong with the installation :) > > > > > Does anyone have a smb.conf for the following simple situation. I am > > > setting up a local network of 4 to 8 Win95 machines, a printer hooked= to > > > the ethernet, and a freebsd running samba to function as a printserve= r > > > for the PC's. The freebsd machine can print fine at the moment. I lik= e > > > to get an example of how to configure the win95's and samba. Please, > > > send me advice on how to set this up including explicit example smb.c= onf > > > fiel and setup of the win95 network controllpanel that work together. > > > > SWAT is a *great* tool btw. To use is, first add the following line to > > /etc/services (I added mine after accessbuilder 888/tcp): > > > > swat 901/tcp > > > > Then etc /etc/inetd.conf and add the following line: > > > > swat stream tcp nowait root /usr/local/sbin/swat swat > > > > Then killall -HUP inetd > > > > Now fire up a web browser, and point it toward the machine you just set= up > > swat and samba on on port 901. For example, my samba box is called > > merlin: > > > > http://merlin:901 > > > > You will then be prompted for your username/password. Be careful here = - > > if your LAN is not secure (i.e. you have other users on your LAN) your > > password will be exposed on the LAN, and it's your root password. If y= our > > LAN is not secure, forget swat. > > > > If it's ok, then enter your root username and password. You will then = be > > looking at a web based Samba configuration tool, and it rocks. > > > > That's configuring Samba sorted. Onto the next problem. > > > > > Do I need to create a particular user in the unix system for the > > > pc-ursers. Normally, they will not have their own account on the free= bsd > > > machine. > > > > Use smbpasswd. They obviously need a password to access the shares, an= d > > using smbpasswd means they dont have to have a system account. Here's = an > > example: > > > > smbpasswd -a plonker > > > > The -a flag means add. You will then be prompted twice for the passwor= d > > for that user (in this case, plonker). 'man smbpasswd' for more > > information. > > > > That's it. Your users will now have access to the smb shares. > > > > HTH > > > > Cliff Rowley > > > > - while (!asleep) { code(); } >=20 > -- > Per Arve > Fysik avd. > Lule=E5 tekniska universitet > 971 87 Lule=E5 >=20 > tel. 0920 91136 > fax. 0920 91074 >=20 > (Address: Physics department, Lule=E5 university of technology, > S-971 87 Lule=E5, Sweden, tel. +46 920 91136, fax. +46 920 91074) >=20 >=20 >=20 >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0003171652250.2861-100000>