LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2003, 08:07 AM   #1
Wimpie22
Member
 
Registered: May 2003
Posts: 85

Rep: Reputation: 15
Post Sharing a windows directory under linux


hello,

can anyone help me

I have installed a redhat 8.0 server with samba, i can share a linux directory so i can see it on my windows XP machine, but how can i share a windows directory, can i do that with samba and how????
 
Old 08-07-2003, 08:09 AM   #2
Wimpie22
Member
 
Registered: May 2003
Posts: 85

Original Poster
Rep: Reputation: 15
i want to share a windows directory so i can see it under linux and i can backup that directory help!!
 
Old 08-07-2003, 08:16 AM   #3
irish_rover
Member
 
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Endian FW
Posts: 368

Rep: Reputation: 30
share the directory under windows as normal. You can then use smbmount to mount the share under Linux. Something like....

mount -t smbfs -o username=tridge,password=foobar //winmachine/share /some/local/directory
 
Old 08-07-2003, 08:18 AM   #4
Cooner
Member
 
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109

Rep: Reputation: 15
You need to mount the directory somwhere onto your linux filesystem, like /mnt/windows.
try:
mount -t smbfs -o username=yourusername,password=yourpassword //windowsID/shareddirectory /mnt/windows
 
Old 08-07-2003, 08:33 AM   #5
Wimpie22
Member
 
Registered: May 2003
Posts: 85

Original Poster
Rep: Reputation: 15
It works thanks you man!!! it's easy but you have to no it thx!!
 
Old 08-07-2003, 09:04 AM   #6
Wimpie22
Member
 
Registered: May 2003
Posts: 85

Original Poster
Rep: Reputation: 15
how can i set the mounting so its will be mounted at startup
 
Old 08-07-2003, 09:15 AM   #7
Cooner
Member
 
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109

Rep: Reputation: 15
I use a script file that gets run from rc.local
 
Old 08-07-2003, 05:54 PM   #8
irish_rover
Member
 
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Endian FW
Posts: 368

Rep: Reputation: 30
You could just put it in /etc/fstab set to auto
 
Old 08-07-2003, 06:10 PM   #9
Crowebert
LQ Newbie
 
Registered: Aug 2003
Location: The Great White North
Distribution: Mandrake 9.1
Posts: 14

Rep: Reputation: 0
question: how did you set windows to be able to read a linux partition?
 
Old 08-07-2003, 06:22 PM   #10
linux_pioneer
Member
 
Registered: May 2003
Distribution: Solaris 10, Solaris 8.0, Fedora Core 3
Posts: 203

Rep: Reputation: 30
Crowebert,

With samba on your linux system, your windows sytem will see the linux partition as a workgroup share. You can find it in networkniehborhood.
 
Old 08-07-2003, 08:45 PM   #11
Crowebert
LQ Newbie
 
Registered: Aug 2003
Location: The Great White North
Distribution: Mandrake 9.1
Posts: 14

Rep: Reputation: 0
kewl! thx!
 
Old 08-08-2003, 02:40 AM   #12
Wimpie22
Member
 
Registered: May 2003
Posts: 85

Original Poster
Rep: Reputation: 15
how must the line look like in /etc/fstab???
 
Old 08-08-2003, 07:23 AM   #13
irish_rover
Member
 
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Endian FW
Posts: 368

Rep: Reputation: 30
Here is an example from another thread:

//figax/D /mnt/smb/figax/D smbfs username=administrator,password=,fmask=0777,dmask=0777,rw 0 0
 
  


Reply


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 linux and windows djarmb Linux - Networking 3 11-25-2005 03:55 PM
windows\linux samba sharing mullog Linux - Networking 18 01-26-2005 10:37 PM
Sharing fat32 with Linux and Windows TheShish Linux - Newbie 3 09-28-2004 07:57 PM
Sharing between Windows and Linux Enfer Singe Linux - Newbie 13 07-26-2004 12:04 AM
directory sharing under linux jayakrishnan Linux - General 1 07-05-2003 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration