LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-01-2002, 09:24 AM   #1
MgF
LQ Newbie
 
Registered: Nov 2002
Location: Central QLD Australia
Distribution: RH7.3
Posts: 13

Rep: Reputation: 0
Copying files to vfat partion in linux???


How do i copy files into a mounted vfat partition in Linux from a XP computer on the network? Keeps coming up access denied and i can't change the ownership to nobody:nobody as i am not allowed.
What do i do??

Michael
 
Old 11-01-2002, 09:29 AM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
are you using samba?
 
Old 11-01-2002, 09:47 AM   #3
MgF
LQ Newbie
 
Registered: Nov 2002
Location: Central QLD Australia
Distribution: RH7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Yes.
I can brouse to the folder but just can't write.

Michael
 
Old 11-01-2002, 01:08 PM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
smb.conf

[Backup]
comment = Backup Folder
path = /backup
valid users = @lanuser
public = no
writable = yes


permissions


ls -l backup
drwxrwx--- 4 root lanuser 4096 Oct 10 23:41 backup



users are added to group lanuser to give them access
 
Old 11-01-2002, 01:42 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,800

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
How is your vfat partition mounted and is it setup for users to write (/etc/fstab)? What does your smb share say?
 
Old 11-01-2002, 01:49 PM   #6
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
my share is posted above

# cat /etc/fstab
/dev/hda8 / ext3 defaults 1 1
/dev/hda7 swap swap defaults 0 0
/dev/hda6 /fat auto defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0


# mount
/dev/hda8 on / type ext3 (rw)
/dev/hda6 on /fat type vfat (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /proc type proc (rw)
 
Old 11-01-2002, 01:50 PM   #7
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
are you saying you can't write to it locally?
 
Old 11-01-2002, 01:53 PM   #8
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
Oh, the share above is a different path, only because it is on a different machine, it would be path = /fat

 
Old 11-01-2002, 02:38 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,800

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Just trying to cover all angles. I have never tried to share a share. My only suggestion would be to add
create mask option to the backup share.
 
Old 11-01-2002, 03:29 PM   #10
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
yes, I see the confusion now. It was not real clear earlier.

it's not a shared share.

I just posted the samba share from one machine, and I posted the fstab from another machine to answer the question about mounting a vfat partition.

here is the rest of the share

printable = no
create mask = 700
directory mask = 700


of course the mask would depend on what your trying to do

I don't want other users to access my folders or files

you may not want yours that way

Last edited by DavidPhillips; 11-01-2002 at 03:30 PM.
 
Old 11-01-2002, 03:39 PM   #11
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
update,

for vfat you need to supply the numeric uid and gid for the user that is to access it or they will not be able to write to it


/dev/hda9 /backup vfat defaults,uid=[user ID],gid=[group ID] 0 0

Last edited by DavidPhillips; 11-01-2002 at 03:41 PM.
 
Old 11-01-2002, 03:42 PM   #12
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
basically vfat sucks

not sure of any other way to put it
 
Old 11-01-2002, 06:24 PM   #13
MgF
LQ Newbie
 
Registered: Nov 2002
Location: Central QLD Australia
Distribution: RH7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks Heaps,

I sort of understand what is going on above.
Here is how my vfat partition is mounted

/dev/hda5 /Data vfat user 0 0

Do i have to change the above to

/dev/hda5 /Data vfat defaults,uid=nobody,gid=nobody 0 0
or
/dev/hda5 /Data vfat defaults,uid=nobody,gid=nobody

in fstab to allow anyone access it???

or do i just change the 0 0 to the user group id no's like this???

/dev/hda5 /Data vfat user 99 99

99 and 99 being user=nobody and group=nobody

Am i on the right track???

Michael
 
Old 11-01-2002, 07:10 PM   #14
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
right, you need the numeric id

I think there is still going to a filename case issue, let us know
 
Old 11-02-2002, 06:32 PM   #15
MgF
LQ Newbie
 
Registered: Nov 2002
Location: Central QLD Australia
Distribution: RH7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Hey i managed to get it working I also managed to get it working in my FTP server

I did it all thru WEBMIN which i absolutely love

The line in fstab is

/dev/hda5 /var/ftp/pub/data vfat user,gid=99,uid=99 0 0

stoked

Thanks again!!!


Michael
 
  


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
Can't allow partion permissions for a vfat partition, mounted as my home folder DrD Linux - General 19 07-26-2006 12:26 PM
Problem copying files to vfat floppy Malcolm Dobson Linux - Newbie 11 03-09-2005 07:10 PM
how do i move files from my windows partion to my linux partion awesome_man Linux - Newbie 2 01-30-2004 12:51 PM
2047MB Max VFAT Partion???? mutantjazz Linux - General 8 12-17-2002 12:52 PM
copy files from vfat to vfat from linux? purpleburple Linux - General 2 12-11-2002 03:24 PM


All times are GMT -5. The time now is 06:53 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