LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-29-2004, 07:57 AM   #1
Dasha
LQ Newbie
 
Registered: Apr 2004
Distribution: Redhat 9.0
Posts: 19

Rep: Reputation: 0
Samba Question - Newbie


Hi,
I have managed to set up file sharing between my Linux box (Redhat 9.0) and my Laptop (XP Pro) via Samba across wireless Adhoc Nics . My problem is : on my linux box I have a local Fat partition mounted. I can view this partition across the network (from XP - Network Neighbourhood) but am unable to write to it ** Access is Denied **. Can anyone help me set this up......what am I doing wrong???

The relevant parts of smb.conf file is as follows :

[global]
security = SHARE

[MP3]
comment = share
path = /mnt/FAT
public = yes
browsable = yes
writeable = yes
guest ok = yes

Thanx in advance.
Dasha

Last edited by Dasha; 04-29-2004 at 08:02 AM.
 
Old 04-29-2004, 08:19 AM   #2
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
I have Linux with Windows on the same machine. By Default it disables writing to another partition(i.e Windows) while using linux. I have full read access to it. I dont know if that is the Same with Red Hat.

It says that its dangerous to write to another partition while using linux.(could corrupt both systems).


I dont know if that is what your refering to but i hope this provides some insight
 
Old 04-29-2004, 11:42 AM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Quote:
It says that its dangerous to write to another partition while using linux.(could corrupt both systems).
Yes and no... but mostly no.

Reading and writing directly to a FAT partition from Linux is OK.
However, writing directly to a NTFS partition from Linux is dangerous. NTFS write support is experimental.

Note that I said directly, if you use Samba as a "proxy" to write to windows (any version), it is perfectly safe to do so.
Also, if you are using Samba, you do not need to create a FAT partition in order to share files. Samba can share files on a linux partition with any windows system.


If you still want to allow write access on a FAT, you will need to edit the /etc/fstab file. You should have a line for vfat.
You will need to add "user,umask=000" on that line.
For example:
Code:
/dev/hda1 /mnt/FAT vfat defaults,user,umask=000   0 0
This will allow any user to read and write to the FAT partition. You can add better security afterwards.


Also, in Samba, "public = yes" and "guest = ok" are the same thing.
 
Old 04-29-2004, 01:09 PM   #4
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
mathieu, i forgot all about file systems especially FAT. Because its not in use as much as used to I was thinking of NTFS. I should have read the post more clearly.

Thanks for the correction though.
 
Old 04-29-2004, 06:27 PM   #5
Dasha
LQ Newbie
 
Registered: Apr 2004
Distribution: Redhat 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
Thanx for your replies. Thing is : I can write to the Fat partition when in Linux, but not across the network (from XP). But I will try adding that to my fstab tonight.....from memory I have my FAT drive set as defualt in fstab. Let u know how it goes.
 
  


Reply



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
newbie question about iptables and samba DarkSun4241 Linux - Networking 1 09-10-2004 09:44 PM
newbie samba question mehesque Linux - Networking 4 11-04-2003 11:30 AM
Newbie: Samba Upgrade question buzzvang Linux - Networking 4 09-17-2003 11:41 AM
Yet Another Newbie Samba Question AbsentMinded Linux - Networking 1 08-22-2003 10:00 PM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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