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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
11-01-2002, 10:24 AM
|
#1
|
LQ Newbie
Registered: Nov 2002
Location: Central QLD Australia
Distribution: RH7.3
Posts: 13
Rep:
|
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
|
|
|
11-01-2002, 10:29 AM
|
#2
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
are you using samba?
|
|
|
11-01-2002, 10:47 AM
|
#3
|
LQ Newbie
Registered: Nov 2002
Location: Central QLD Australia
Distribution: RH7.3
Posts: 13
Original Poster
Rep:
|
Yes.
I can brouse to the folder but just can't write.
Michael
|
|
|
11-01-2002, 02:08 PM
|
#4
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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
|
|
|
11-01-2002, 02:42 PM
|
#5
|
Moderator
Registered: Aug 2002
Posts: 26,341
|
How is your vfat partition mounted and is it setup for users to write (/etc/fstab)? What does your smb share say?
|
|
|
11-01-2002, 02:49 PM
|
#6
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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)
|
|
|
11-01-2002, 02:50 PM
|
#7
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
are you saying you can't write to it locally?
|
|
|
11-01-2002, 02:53 PM
|
#8
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
Oh, the share above is a different path, only because it is on a different machine, it would be path = /fat
|
|
|
11-01-2002, 03:38 PM
|
#9
|
Moderator
Registered: Aug 2002
Posts: 26,341
|
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.
|
|
|
11-01-2002, 04:29 PM
|
#10
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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 04:30 PM.
|
|
|
11-01-2002, 04:39 PM
|
#11
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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 04:41 PM.
|
|
|
11-01-2002, 04:42 PM
|
#12
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
basically vfat sucks
not sure of any other way to put it
|
|
|
11-01-2002, 07:24 PM
|
#13
|
LQ Newbie
Registered: Nov 2002
Location: Central QLD Australia
Distribution: RH7.3
Posts: 13
Original Poster
Rep:
|
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
|
|
|
11-01-2002, 08:10 PM
|
#14
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
right, you need the numeric id
I think there is still going to a filename case issue, let us know
|
|
|
11-02-2002, 07:32 PM
|
#15
|
LQ Newbie
Registered: Nov 2002
Location: Central QLD Australia
Distribution: RH7.3
Posts: 13
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|