LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Sharing Linux Drive to Windows (http://www.linuxquestions.org/questions/linux-networking-3/sharing-linux-drive-to-windows-660665/)

yah0m 08-05-2008 01:06 PM

Sharing Linux Drive to Windows
 
What I want to do is have my linux server also run 2 shared drives for the home network along with the print. I figured out how to get the print setup, but I'm not to sure on how to share the drives for windows.

TB0ne 08-05-2008 01:25 PM

Quote:

Originally Posted by yah0m (Post 3237676)
What I want to do is have my linux server also run 2 shared drives for the home network along with the print. I figured out how to get the print setup, but I'm not to sure on how to share the drives for windows.

How are you sharing the printers?

Linux (well, most distributions), come with Samba. This page http://tldp.org/HOWTO/SMB-HOWTO.html will give you a good start on how to do what you want.

yah0m 08-05-2008 03:21 PM

For the printers I've got the CUPS service setup. As for setting SAMBA up, is there anything tricky to it?

tredegar 08-05-2008 03:54 PM

Quote:

For the printers I've got the CUPS service setup.
Well done. I don't think you found it too "difficult" either.

Quote:

As for setting SAMBA up, is there anything tricky to it?
No, yes, maybe. YMMV.

Why don't you just try installing it, read the HOWTO and README's and then let us know if you have problems? You managed with cups, I expect you'll manage with samba

I don't run windows now, but when I did, the most complicated and difficult to understand aspect of my network was .... windows.

me_spearhead 08-23-2008 01:16 AM

Quote:

Originally Posted by yah0m (Post 3237676)
What I want to do is have my linux server also run 2 shared drives for the home network along with the print. I figured out how to get the print setup, but I'm not to sure on how to share the drives for windows.

Make sure you have

samba
samba-common
samba-client

packages on your linux server. You can download the rpms from rpmfind.net

After you install these rpms open /etc/samba/smb.conf file and add below mentioned lines at the bottom :

Code:

[share name]
        comment = share
        path = path to your linux share drive
        writable = yes

Quote:

replace the "share name" with the share name of your choice and "path to your linux share drive" to the absolute path of your drive you wish to share
save and exit /etc/samba/smb.conf

Now execute the following commands on your console

Code:

$ useradd username
$ smbpasswd -a username
New SMB password:
Retype new SMB password:

Set the password of your choice for samba user username when system prompts.

Code:

$ chkconfig smb on
$ service smb start

You are now ready to use your linux share from windows.

All the BEST

jschiwal 08-23-2008 01:40 AM

Your distro (you should put your distro in your user profile to help us answer your question) may have a gui samba server configuration wizard. Another method is to use samba swat, which comes with the samba server package (on my distro at least).

To use it, you first need to edit /etc/xinet.d/swat, deleting the "disable = yes" or changing the "yes" to "no". If your distro uses "chkconfig", then run:
Code:

# enable xinetd service
sudo /sbin/chkconfig xinetd on

# turn on samba swat
sudo /sbin/chkconfig swat on

# restart the xinetd daemon so it reloads its configuration files
sudo killall -s SIGHUP xinetd

Now simply point your web browser to "http://localhost:901". At the top of the page is a quick start wizard, or click on the SHARES tab.

When you are finished, you can stop the swat service:
Code:

sudo /sbin/chkconfig swat off
You might consider installing a samba-doc package if it is available. If you do, there will be a number of howto's and web man pages on the intro page of swat. It may also install three books, which include "Samba 3 by Example" and "Samba 3 Howto & Reference Guide". These are the same books that you could find in the bookstore published by Prentis Hall.

Good Luck!


All times are GMT -5. The time now is 03:19 AM.