LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-08-2003, 04:16 PM   #1
bluesailor
LQ Newbie
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 6

Rep: Reputation: 0
Changing permissions on VFAT files


I am running Red Hat 9 and Windows ME on the same machine, and my
default boot is into Red Hat. In addition, the two OSs are running from
different hard drives.

In addition to the superuser, I have one other general login, which is
what I use most of the time. I have the VFAT file set up in FSTAB
to mount under /mnt/dos and to mount automatically.

The problem is, no matter what I do, I cannot change the permissions
to allow me to access the windows files with write mode unless I'm
in the ROOT login. I know it can be done but so far it has defeated me.

Any help would be greatly appreciated.

bluesailor
 
Old 10-08-2003, 04:21 PM   #2
ceedeedoos
Member
 
Registered: Aug 2003
Location: Antwerp, Belgium
Distribution: Slackware 10.0, Mandrake 10.1
Posts: 174

Rep: Reputation: 35
did you check your permissions on /mnt/dos ?
if you chmod 777 /mnt/dos you should be able to write to it ...

Last edited by ceedeedoos; 10-08-2003 at 04:28 PM.
 
Old 10-08-2003, 04:50 PM   #3
bluesailor
LQ Newbie
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 6

Original Poster
Rep: Reputation: 0
I checked the permissions for /mnt/dos and the owner and group are
'root' and the owner is the only one with write permission. When I try
to change the owner, group or mode, I get an 'operation not permitted'
error.
 
Old 10-08-2003, 05:01 PM   #4
ceedeedoos
Member
 
Registered: Aug 2003
Location: Antwerp, Belgium
Distribution: Slackware 10.0, Mandrake 10.1
Posts: 174

Rep: Reputation: 35
do you try those things as root?

if so, you should check your fstab file to see what it says
it should go something like
/dev/hda1 /mnt/dos vfat noauto,users,rw 0 0

although I'm not positive on the last numbers, or on the first device, I think it should look along the lines of this ...
 
Old 10-08-2003, 05:47 PM   #5
bluesailor
LQ Newbie
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 6

Original Poster
Rep: Reputation: 0
Yes, I did try those things as 'root'.

I have tried alot of different combinations in fstab, including the one
you suggest and nothing changes.

Since I'm trying to change permissions on /mnt directory, could that have
something to do with it?
 
Old 10-08-2003, 06:36 PM   #6
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
This is the line I use to mount a FAT32 filesystem in fstab:

/dev/hda1 /mnt/windows vfat umask=000,defaults 0 0
 
Old 10-08-2003, 06:38 PM   #7
todesengel
Member
 
Registered: Sep 2003
Distribution: Slackware 10.0
Posts: 54

Rep: Reputation: 15
Add this option to the fstab file

umask=022 (meaning, write for root, read for others)
 
Old 10-08-2003, 06:57 PM   #8
bluesailor
LQ Newbie
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 6

Original Poster
Rep: Reputation: 0
Skyline, thank you very much. That fixed it. You guys are great.

I'll be back with more problems soon.
 
  


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
changing permissions and ownership on many files and folders Cinematography Linux - General 4 08-01-2005 03:20 AM
VFAT mount permissions duckboy Linux - General 6 07-26-2005 03:56 AM
Changing file permissions within a directory for all files. cajunaggie Linux - Newbie 2 02-06-2005 01:53 AM
changing permission of files on vfat hd. SamJ Linux - Newbie 3 02-26-2004 04:29 AM
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 12:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration