LinuxQuestions.org
Review your favorite Linux distribution.
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 03-22-2004, 06:24 PM   #1
shara
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Rep: Reputation: 0
Unhappy Can't change permissions for mounted windows partition


I am using Fedora core 1, my Windows 98 partition is mounted on my system during bootup under mnt/win98.

Only root is allowed to write and execute files on it. I want my regular user account (shara)to be able to write and execute on it. Right now my regular account can only read from it.

I've tried changing the permissions via chmod and chown(when logged on as root), but I keep being told "Operation not permitted". Why is this? Isn't root susposed to be able to change everything?

BTW, root is the owner and group of my win98 partition.

Could it be that I mounted it improperly? The line I used in fstab is:

/dev/hda1 /mnt/win98 msdos 0 0
 
Old 03-22-2004, 06:39 PM   #2
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 32
hi,

as far as i'm aware, writing to windows partitions is potentially dodgy - certainly writing to nfs filesystems is highly risky, and i think writing to fat partitions is also discouraged..

check the man pages for mount and fstab and see what the options are.

being somewhat nervous of screwing up my windows filesystem, what i've done on my machine is to set up a small(ish!) ext2 partition (my main linux fs is reiser 3). if i need to share data between windows and linux, i copy the files into said partition and then use a great little windows app called 'ltools', which can read linux ext2 partitions...

hope this helps a bit..
 
Old 03-22-2004, 11:54 PM   #3
shara
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I do know that NTFS is risky to write to, so I won't even try.

I was under the impression that FAT32 was safe to write to under Linux.
 
Old 03-23-2004, 12:01 AM   #4
witeshark
Member
 
Registered: Jan 2004
Location: Miami FL
Distribution: Mac OS X 10.4.11 Ubuntu 12.04 LTS
Posts: 429

Rep: Reputation: 30
If you keep off line and smbmount //computer/sharename /directory/mountfolder -o dmask=777,fmask=777 does it work? This is extreme open sharing!
 
Old 03-23-2004, 12:10 AM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
try adding these otions to fstab:
Code:
/dev/hda1 /mnt/win98 vfat rw,umask=000 0 0
Unless the partition is FAT16 use vfat instead of msdos, they both work on fat32 but vfat has some extra options.
And yea writing to FAT32 is safe.
Keep in mind that this allows every user to have full access the partition, so it may not be a good idea on a multi-user system, though fat32 is unsafe to begin with.

Last edited by Demonbane; 03-23-2004 at 12:14 AM.
 
Old 03-23-2004, 12:13 AM   #6
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
When you mount it you can specify the owner and group permissions to assign it

try something like

mount -t vfat /dev/windows -o uid=user,gid=user /windows

substituting /dev/windows for your user device, your username for user and where you wna tot mount it for /windows.

This will also work for reading NTFS partitions, but you still won't be able to right to it. You can add umask=0077 to the options if you don't want other users to access the mounted partition.
 
Old 03-24-2004, 07:31 PM   #7
shara
LQ Newbie
 
Registered: Mar 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Demonbane, that did the trick!
 
  


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 change permissions on mounted partition OlRoy Linux - General 2 09-24-2004 03:22 AM
How to change permissions of a mounted partition seran Linux - General 2 08-13-2004 02:43 AM
How do I change permissions for my windows partition? cereal83 Slackware 9 07-15-2004 03:06 PM
Windows partition - cannot change permissions elitecodex Linux - Newbie 1 02-02-2004 06:55 PM
cant change permissions on a mounted windows partition groovin Linux - Newbie 10 11-02-2002 08:15 PM


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