LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-22-2005, 08:08 AM   #1
Dimension User
Member
 
Registered: Feb 2005
Distribution: Fedora Core 4 and happy user of KDE 3.5
Posts: 49

Rep: Reputation: 15
Can't change permissions of Windows partition


Hi. I performed the usual commands

mkdir /mnt/win
mount -t vfat /dev/hda2 /mnt/win

to mount my only Windows ME partition, and as user and root I can read all the files on that partition, but I can't write to it as a regular user. I tried logging in as root and changing the group and permissions of /mnt, /win, and then My Documents by right-clicking them and selection the permissions tab. Fedora did let me change the group and permissions of /mnt but not /win or My Documents. When I try it says something like "Sorry, you don't have permission to change the group" and when I try to simply change the permissions by checking the boxes, they are unchecked immediately after I check them.
As root, shouldn't I be able to change these settings?

I know I could make a shared partition, but I was hoping to keep it simple this way.
 
Old 05-22-2005, 08:50 AM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 34
mount -o umask=0,quiet -t vfat /dev/hda2 /mnt/win

or just add this to /etc/fstab

Code:
/dev/hda2   /mnt/win  vfat  defaults,umask=0,quiet



BTW: You cannot change "My documents" permissions because FAT32 doesn't support any kind of permissions,
 
Old 05-22-2005, 02:41 PM   #3
Dimension User
Member
 
Registered: Feb 2005
Distribution: Fedora Core 4 and happy user of KDE 3.5
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks a lot for your post, Vookimedlo. I appreciate your help. What does the -o umask=0,quiet argument do exactly? Will it let me write to my Windows folders and files as a non-root user?
 
Old 05-30-2005, 07:36 PM   #4
Dimension User
Member
 
Registered: Feb 2005
Distribution: Fedora Core 4 and happy user of KDE 3.5
Posts: 49

Original Poster
Rep: Reputation: 15
Quote:
Will it let me write to my Windows folders and files as a non-root user?
Oops. Obviously it will let me. I meant How will it let me write to my Windows folders and files as a non-root user?
I just meant what does the -o umask=0,quiet argument do to let me write to the Win folders as non-root.
 
Old 05-31-2005, 01:03 AM   #5
fred22
Member
 
Registered: Apr 2004
Posts: 42

Rep: Reputation: 15
I was having the same problem......But
From what I can gather.
Code:
umask=0
Sets the permission mask of the mount to rwx for every user and group.
Code:
quiet
Attempts to chown or chmod files do not return errors, although they fail. Use with caution!

The owner remains root, but this will allow anybody to use the data and change it.
Its a bit lazy because you should pracise setting permissions for certain users only, blah, blah.

I hope it helps.
 
Old 06-05-2005, 02:17 PM   #6
Dimension User
Member
 
Registered: Feb 2005
Distribution: Fedora Core 4 and happy user of KDE 3.5
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks for your post, fred22. It's great to have your help.
Quote:
Attempts to chown or chmod files do not return errors, although they fail. Use with caution! Its a bit lazy because you should pracise setting permissions for certain users only, blah, blah.
What fails exactly? I know what you mean about rwx for all users; that is a little risky. The problem is that I tried to change the group settings for /mnt/win to allow only root and myself to access it, but I got an error message saying that (even though I was logged in as root) I didn't have permission to modify group settings. What did you do to allow yourself write access to you win partition as regular user?
 
  


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
How do I change my windows partition permissions. chmod won't work. brandonloserkid Slackware 2 12-03-2004 05:39 PM
How do I change permissions for my windows partition? cereal83 Slackware 9 07-15-2004 02:06 PM
Can't change permissions for mounted windows partition shara Linux - Newbie 6 03-24-2004 06:31 PM
Windows partition - cannot change permissions elitecodex Linux - Newbie 1 02-02-2004 05:55 PM
cant change permissions on a mounted windows partition groovin Linux - Newbie 10 11-02-2002 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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