LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-05-2008, 01:06 PM   #1
yah0m
Member
 
Registered: Jul 2008
Posts: 38

Rep: Reputation: 15
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.
 
Old 08-05-2008, 01:25 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,762

Rep: Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613Reputation: 2613
Quote:
Originally Posted by yah0m View Post
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.
 
Old 08-05-2008, 03:21 PM   #3
yah0m
Member
 
Registered: Jul 2008
Posts: 38

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

Last edited by yah0m; 08-05-2008 at 03:22 PM.
 
Old 08-05-2008, 03:54 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,017

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
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.
 
Old 08-23-2008, 01:16 AM   #5
me_spearhead
Member
 
Registered: Feb 2007
Distribution: SUSE Linux, & Redhat Variants
Posts: 55

Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by yah0m View Post
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

Last edited by me_spearhead; 08-23-2008 at 01:22 AM. Reason: spelling mistake
 
Old 08-23-2008, 01:40 AM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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!
 
  


Reply

Tags
access, linux, samba, share, via


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharing a partition of a hard drive between Windows and Ubuntu mine_goes_to_11 Linux - Newbie 1 08-12-2006 01:53 AM
nagging problem --sharing USB drive with Windows for read/write 1kyle Suse/Novell 2 09-25-2005 03:35 AM
Sharing a cd drive in linux possible? scoops98 Linux - General 5 04-01-2005 02:16 AM
sharing a hard drive for storage between windows and linux kstev715 Linux - General 2 09-04-2004 10:04 AM
Sharing a windows drive to unix Nelleh Linux - Networking 2 08-22-2002 09:34 AM


All times are GMT -5. The time now is 10:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration