• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Want to share files over a network between linux and windows xp?

How can I access my windows shared folders accross my network, on my linux box?

How can I Access my linux box on my windows machine?

1 Solution
Samba (www.samba.org)--- this comes with most distros these days. Configuration can be a PITA but once its running it is very reliable.
if it is installed try this as root

smbmount //windowsserver/shsre /mountpointonlinux -o username=user

it will prompt you for a password (this is all assuming its installed and you werent aware of samba)
chrishughesAuthor Commented:
Right! I have worked out how to do that (I must have had Samba installed), and I can mount a shared folder.

a) Can I add the smbmount statement to a file so that it mounts whenbever the machine is started?

b) How can I see the linux machine from my windows network neigbourhood..??

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

a) The place to do this is '/etc/init.d/rc.local' on a RedHat machine. This file is executed as the last part of booting up.

b) Configure and run Samba at startup. On my Redhat machine Samba is called the 'smb' service.
from a browser window open localhost:901.
This is a web based SAMBA configuration app.
From there you can set shares on your linux machine that can be seen and accessed from NT.

MFCRich 's comment is maybe feasible, but usually you add the mount to /etc/fstab:
//windowsserver/shsre /mountpointonlinux smbfs user,noauto

this will ask a authorized user for a password when mounting, but you can also directly hack the password into /etc/fstab with

to see your linux share from windows is a different story, go through /etc/smb.conf, its usually nicely documented.

if you still haven't got your shared directory showing this should get something going:

edit /etc/samba/smb.conf and set:
  security = share

and add something like:

# A publicly accessible directory
  comment = shared stuff
  path = /tmp/shared
  read only = no
  public = yes

and you have a directory /tmp/shared with files set to rw

 /etc/inittab called by init is like autoexec.bat when the system starts

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now