Click to See Complete Forum and Search --> : samba


olscratch
12-10-2003, 11:06 PM
I have a knoppix 3.3 hd install of debian. Now that I have it up and running and connected to the internet it has appeard in my network folder on my windows 2000 computer. When I try to access the knoppix computer from the windows computer I get a logon window. I am not sure what I logon I have to use. I have tried my user account for knoppix with no avail. I know I haven't done anything with samba (which is the only software I know of that will allow you to connect a windows pc to a linux pc) to allow it to show up on my windows pc and I am guessing that I need to set up a user account for samba to log on to the knoppix via the windows pc over the lan. I have no idea what config file I need to amend. I have looked for a gui interface for samba or swat but have had no luck. Can someone please point me in the right direction?

sclebo05
12-10-2003, 11:21 PM
i can give you a few pointers.

the file you are looking to edit in linux is /etc/samba/smb.conf or a variation of such

workgroup will be near the top of that file, edit it the way you like. if you are just using this on a home lan, you can set security = share (instead of security = user) and the samba shares will act like windows shares with no username/pass. only do this if it is a secure network. also, you can define your shared folders at the end of the smb.conf file, there are examples down there, and you can find more examples of samba shares on this forum, search for smb.conf

post if you have issues, otherwise, have fun!:cool:

voidinit
12-11-2003, 12:40 AM
I too can offer some advice.

Look at the file /etc/samba/private/smbpasswd. Any users listed here have a smbpasswd entry and should be able to access the $IPC share of the samba server. Any user in this file should also have a shell account.

You can reset the passwords of users in this file by using this command as root.

root@yourhost:~$>smbpasswd username

This will set the password of any user in the smbpasswd file. You can add yourself as a samba user with this command.

root@yourhost:~$>smbpasswd -a yourname

If there are any users listed in /etc/samba/private/smbpasswd that you do not want to have any samb access, just delete their line in the file.

mXskweeb
12-11-2003, 01:29 AM
This (http://www.freeos.com/articles/3842/) article covers the whole ball of wax from setting up Samba all the way to making it act as an (NT4) domain controller. Ignore the DC stuff if you don't need it, but either way it covers the general steps and lists all the commands you will need to type. Wait, it doesn't say anything about the other two security methods besides domain, which can be overkill so in that case, go the the advice above about security=user or security=share.

olscratch
12-11-2003, 10:17 PM
Alot of the documentation I have read says you can use swat to configure samba. I have tried to install swat using apt-get but I am getting unmet dependencies. Which it says is samba. I am fairly sure I have samba. If I download and install a swat tar.gz will this install without the unmet dependencies?