Click to See Complete Forum and Search --> : Is it possible to... ? Samba


bangbong
10-22-2002, 07:46 PM
Hi... After hanging around in the forum. I plan to set up samba server today and hopefully it will work.

1. Just wondering whether can I set up samba on the server client and share my samba with the other client(windows) among the network. Seems the server host do have small amount of storage.

2. If planning (1) is impossible to set up. I am going to setup samba into the server host and can i make the volume storage bigger by link it with samba client from the linux box and share it among the win box.

What should I do?

-----slackware 8.0-----

Just a Newbie

michaelk
10-22-2002, 08:40 PM
Not really sure what you are asking. What do you mean by server host and server client?

bangbong
10-22-2002, 08:52 PM
LOL.. i am sorry to describe it wrong.

server host ===> server
samba client ===> server client

I hope this is right. Thanks to remembering me.


----i got to have some rest---- my eyes must be blind?

michaelk
10-22-2002, 10:42 PM
samba server allows windows computers to use files & printers shared on linux computers. samba client are the tools on the linux computer to access files and printers shared from the windows computers.

You can find documentation on samba at www.samba.org

Add samba user using smbpasswd the same as the login name and password used on windows computers.

You can use the computer with the biggest hard drive. windows or linux

booda
10-23-2002, 01:36 AM
What's the simpliest smb.conf file where Windows users do not need to input a password. I have tried enabling the guest account but I don't know what else I should do next.

I did stop and start the smb service and I can see the samba server in Network Places. Please can someone also confirm that WinXP will work with Samba shares now? I have read about issues with WinXP in other forums before. Any advice would be appreciated.

Thanks,
Booda

cowanrl
10-23-2002, 09:10 AM
If you wanted to share out a directory named /public on your Linux server with Samba so that everyone could access it without needing a username and password, you could use this simple smb.conf file:

[global]
security = share
netbios name = linuxsamba
workgroup = workgroup

[public]
path = /public
public = yes
browseable = yes
read only = no

#EOF

To create the public directory on your Linux server, execute these commands as root:

mkdir /public
chmod 777 /public

This would give everyone read/write access to the files in /public. To make it so they only have read access, make these changes:

read only = yes

and use

chmod 775

Your Samba server would show up on the network with the name of linuxsamba in a workgroup called workgroup. You can change those settings to suit your needs.

The main issues with XP and Samba have to do with using Samba as a Primary Domain Controller. This won't be an issue if you use the file shown here.

booda
10-23-2002, 12:42 PM
Cool, thanks Cowanrl I'll give it a try today.

cowanrl
10-23-2002, 01:16 PM
Once addition to that smb.conf file.
The way it stands, users could read and write to existing files in /public that had the permissions set to 777. However, if they created new files or directories, they would not be able to write to them. Add these lines to the [public] share if you wan't users to be able to add files or directories to new directories they create and edit new files they create:

directory mask = 777
create mask = 777

booda
10-24-2002, 02:07 PM
Wohoo!!!! wohoo!!!! wohoo!!!!

It worketh!!!!!! Imagine how happy I'd be if I really learn something good in Linux :D



Thanks Cowanrl........:D

cowanrl
10-24-2002, 07:39 PM
You're welcome.