Lee Wiggers wrote:
On Wed, 28 Jul 2004 19:07:09 +1000
Stephen K�hn <[EMAIL PROTECTED]> wrote:


Lee - the easiest - EASIEST way to configure Samba (and/or
add/remove users and all that fancy jazz) is to use Webmin and the
SWAT plugin in Webmin - not a joke.


To add to the confusion:

Samba or Samba3?

Lee


Lee; Your best bet is to lose Samba and to move up to Samba 3, but there's a trick to doing it.If any , and i mean ANY remnants of Samba are left on the Linux box, Webmin will try to use that set of files and the default folder as the home of Samba. Typically, that will mean that Webmin will spit out an error about not finding Samba.


What you need to do, is to un-install Samba and Samba3, making sure to visually check that their folders in /etc are completely gone, and then urpmi Samba3. If you successfully removed any leftovers of Samba and Samba3, Mandrake will install Samba3 in /etc/samba and NOT /etc/samba3.
Then Webmin will detect that Samba3 is in the Samba folder, and you're in business.


Of course, make sure that any usernames and matching passwords on any of your systems are also added to the Linux box before converting Unix users to Samba users. If you set up folder access as Shared, it helps if you make sure that each PC is in the correct workgroup, and that you create the appropriate User groups on each PC, then add the proper users to those groups.

So on PC #2, you would create a user (only an example) called "linus" and you would also create a workgroup called "torvalds". This same user and group should exist on the Linux box and that user "linus" (on the server) should belong to the "torvalds" group on the server. Then convert your Unix users in Samba to Samba users. It's not so much a question of whether this will work or not (although it will certainly help), but more of a question of removing any possibilities that something might gum up the works. It will also help to create a standard way of setting up Samba for you so that you will have consistent results every time you need to set up Samba.

Add any users on your network to the "torvalds" workgroup as needed, and feel free to put some users in different workgroups both on the PC's and on the Linux box. This will give you a clearer idea of samba's quirks and the results you can expect in the future.

One thing to watch out for though - I noticed that Webmin is back to its old tricks. If you go to Webmin/Samba/Edit Samba users and passwords/Samba users, and select one of your Samba users, you will probably see that 2 of the 4 check-boxes have checkmarks in them. Until you fix this, it's unlikely that you will be able to connect to the samba server at all, or it's more likely that Samba will reject your username and password.

This minor irritation has been around for a while, and it seems to confuse Samba quite a bit. The second checkbox is the problem, because the default setting is to use the current Samba password for that user, but the second checkbox also states that NO password is required. Just uncheck the second box, select "new password" and type in the user's existing password. Do this for all Samba users on your network, then restart the Samba server and you should be good to go!

HTH

Lanman

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to