LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   File Server to run on linux, and view on Xp Home (https://www.linuxquestions.org/questions/linux-software-2/file-server-to-run-on-linux-and-view-on-xp-home-380983/)

swatward 11-08-2005 12:02 AM

File Server to run on linux, and view on Xp Home
 
Im looking for a file server for linux (slackware 10.1)
i have allready tried samba, but that doesnt work with xp home.
Also, one that is able to show up in the map network drive, in the hard drive probably.

are there any file servers like that out there?
thanks



swatward

avatarfx 11-08-2005 01:55 AM

I think you should check why Samba is not working right. On the other hand, check NFS (Network File System)

wraycarr 11-08-2005 03:37 AM

Samba does work with the native networking components of Windows 98, 98SE, ME, NT, XP and XP Pro. It sounds like you have installed Samba, but did you configure it and start the nmbd and smbd daemons? There is a great deal of online literature about installing and running Samba. Since I had trouble with Samba at first, I learned that it was a matter of setting up shares correctly in the samba.conf file and setting up users and passwords in Samba's password file. Note: Linux users are not automatically Samba users.

As a good reference, you might try to put your hands on the O'Reilly Press book "Using Samba". I don't have the book anymore, and I've condensed all my hard drives into one tower to save power, so I don't use Samba, NFS or CFS anymore. You can view parts of it online at http://www.oreilly.com/catalog/samba.../ch02_04.html. This also explains about swat, the the Samba Web Administration Tool. Since I use Gentoo, I'm not sure about the directory hierarchy of Slakware, but I think you should find excellent documentation in something like /usr/share/doc/samba*. It comes in text, postscript and html formats, each in a different subdirectory if you installed the docs.

The first place I would look for problems is into the /etc/samba/smb.conf (or samba.conf) file. When Samba-3.x installs, it creates a smb.conf.example file. Look at the remarks and adjust your smb.conf accordingly. There are many notes pertaining to what needs to be done for Windows access. When shares are properly set up, smbd and nmbd are started, the shares will appear in Window's "Network Neighborhood".

After that step, I would create the Samba users and Samba passwords. These are the users/computers that may access your Linux box via Samba. With Samba properly setup, you can not only access files, but use the CUPS daemon to print from your XP box, assuming your printer is supported by CUPS, ghostscript and/or gimp print. Of course, if you want to share your Windows printer with Linux, that also works via Samba and CUPS.
Hardware (scanners, dvd drives, etc) call all be shared via Samba.

Good luck!

fotoguy 11-08-2005 04:24 AM

Also make sure your not running a firewall on both the windows and linux boxes untill you have a connection, this is also know to cause headaches for the newbies.

swatward 11-08-2005 03:26 PM

i have the conf file running ok, i have Swat running also... i think the problem is the name im giving it, like the netbios name and machnie name in the .conf file, could that be it?

swatward 11-08-2005 03:26 PM

i have the conf file running ok, i have Swat running also... i think the problem is the name im giving it, like the netbios name and machnie name in the .conf file, could that be it?

Thanks in advance

fotoguy 11-08-2005 05:19 PM

Quote:

Originally posted by swatward
i have the conf file running ok, i have Swat running also... i think the problem is the name im giving it, like the netbios name and machnie name in the .conf file, could that be it?

Thanks in advance

Are all your machines in the same workgroup as the samba server? can you post your smb.conf file?

swatward 11-08-2005 05:32 PM

sure

Code:

# Samba config file created using SWAT
# from 192.168.0.12 (192.168.0.12)
# Date: 2005/11/07 18:46:54

# Global parameters
# Global Parameters
[global]
# netbios name
netbios name = rooks

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = rooks

# server string is the equivalent of the NT Description field
server string = Samba Server

# define a global case policy for file shares
case sensitive = no

# Required to support Windows 98 or above
encrypt passwords = yes
security = user

valid users = bradley ,brad, @admins, root

preferred master = yes
domain master =  no
local master = no
domain logons = yes
logon path = \\%n\profiles\%u
# Where is the user's home directory located?
logon home = \\server_name\%U
logon drive: s:

# No OS/2 clients       
lm announce = no

# Log all activity to a single file for regular review
log file = /var/log/samba.log

# Minimum level of logging
log level = 1

# Username/password access methods
# security = user

# Windows XP comps
lanman auth = no

# Again, all our clients are Windows XP
min protocol = NT1


[netlogon]
path = /var/lib/samba/netlogon
guest = ok
writable = no
share modes = no

[homes]
read only = no
browseable = no
create mask = 0664
directory mask = 0775

[data]
path = /filez
browesable = yes
valid users = bradley, brad, @admins, root
write list = bill, ted
create mask = 0664
directory mask = 0775


wraycarr 11-08-2005 06:16 PM

Perhaps fotoguy will give you a better answer, but the only thing I see amiss in this file that you have "security = user" commented out. Does the version of Samba you are using default to "security = share"? Echoing fotoguy's query...is "rooks" the workgroup name chosen for all of your computers?

Let me also point out that SWAT is simply a tool to administer Samba. It is not Samba. The daemons nmbd and smbd have to be running for Samba to work.

swatward 11-08-2005 06:23 PM

right, swat just creates the smb.conf and more. but im not exactly sure what a workgroup is? im kinda a network noob

wraycarr 11-08-2005 06:48 PM

No problem.

In XP, right click on "My Computer" and click "Properties".
Click on the Computer Name tab.
Click "Change".
Note that each computer must have a unique name for smb networking to work, but the "workgroup" entry should be the same for all computers on the local network. If is "rooks" on your Linux box, it should be "rooks" in the XP boxes, too.

swatward 11-08-2005 07:26 PM

ok, so i set the workgroup name to OPKOW, so now my file is

Code:

# Samba config file created using SWAT
# from 192.168.0.12 (192.168.0.12)
# Date: 2005/11/07 18:46:54

# Global parameters
# Global Parameters
[global]
# netbios name
netbios name = OPKOW (or rooks i have tried both)

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = OPKOW

# server string is the equivalent of the NT Description field
server string = Samba Server

...
...


and ps ax shows that nmbd and smbd are running,
but i type in command prompt
net use m: \\rooks\data
or
net use m: \\192.168.0.13\data
(im sure the ip is right)
and i get... "System error 53 has occurred.

The Network Path was not found."

Thanks again in advance

wraycarr 11-08-2005 07:49 PM

Did you restart smbd and nmbd? You can send them each a sighup to restart them...kill -SIGHUP (pid# of both).

After you do that, open the Network Neighborhood window in XP and see if the computer is now visible. If you click on its icon, you should see any available shares. Whether you can access them or not is a different matter.
If you don't see it in the Network Neighborhood, you won't be able to use the "net use" command.

swatward 11-08-2005 08:26 PM

HAHA :-D it works!!! thanks so much for you help in this..

Thankyou so much.

wraycarr 11-08-2005 08:43 PM

Glad to help.


All times are GMT -5. The time now is 05:28 PM.