LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-10-2006, 11:35 PM   #1
wantabee
LQ Newbie
 
Registered: Apr 2006
Posts: 25

Rep: Reputation: 15
write permissions for windoze hd, mounted on linux hd are not cooperating


Goal: to access, read and write to windoze hd files from linux xterm session.

environment:
2 harddrives: hda linux FD-4, hdb windoze Me
/etc/fstab mounts the Me hd on linux filesystem
from xterm, can cd to files, open them (read-only).
I knowI have a permissions oversight, but don't understand how to overwrite windoze protection (am I right? is it windoze that's stopping me?).
I can su and chmod 777 the windoze filename from an xterm and linux tells me the permissions are now rwxrwxrwx, but when I do a ls -l, permissions are unchanged rwxr-xr-x.

Thanks in advance.
 
Old 05-10-2006, 11:42 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
lets see
fdisk -l (check out what those partitions actually are)
/etc/fstab (to see what instructions are going in there)
ls -al <where the mountpoints are> (for eg, I have a win partition mounted at /mnt/winc so I would do: ls -al /mnt)

I've run into similar things where I have been unable to chmod or chown mounted volumes to anything different.
 
Old 05-10-2006, 11:48 PM   #3
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
can you post the EXACT output (including prompt to ensure you are root) of the following commands:

- cat /etc/fstab
- ls -l fileName
- chmod 777 fileName
- ls -l fileName
 
Old 05-10-2006, 11:56 PM   #4
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Is the drive NTFS? If so write support in Linux is still experimental, and probably won't work. This inability to write would be why you can't change your permissions, and just read the files.

Regards,

Alunduil
 
Old 05-11-2006, 12:18 AM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
alunduil: you'll see from the first post that permissions could not be moved from rwxr-xr-x. Clearly the fs type should be established. However, write support for ntfs is only unavailable in the native ntfs driver - there is always captive, as well as a variety of commercial offerings, to fill the gap. Write support is quite mature - though not complete (ntfs encrypted files are not supported).
 
Old 05-11-2006, 12:19 AM   #6
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
Quote:
Originally Posted by alunduil
Is the drive NTFS?
i was going to ask that too, but i noticed he said windows ME.. ntfs isnt supported in ME.. unless 3rd party software is used.
 
Old 05-11-2006, 12:29 AM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
ntfs isnt supported in ME
... that I didn't know. Mostly I treasure my ignorance of windows

It seems from the first post that it is vfat - but we do not know for sure that this is a virgin (win) install. You can end up in all sorts of mess if someone else has been at it before you that we don't know about.
 
Old 05-11-2006, 12:58 AM   #8
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
this is probably just an issue of umask not being set in the /etc/fstab. This has usually been the case for most people who asked this question in the past. I guess we will know for sure when wantabee posts what we asked

regards,
...drkstr
 
Old 05-11-2006, 04:41 PM   #9
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
Quote:
Originally Posted by wantabee
I can su and chmod 777 the windoze filename from an xterm and linux tells me the permissions are now rwxrwxrwx, but when I do a ls -l, permissions are unchanged rwxr-xr-x.
Yup, that's exactly what's supposed to happen. The Windows filesystem doesn't support Linux file permissions. You can't change the permissions on the individual files. All you can do is change the default permissions that are applied to the entire filesystem. To do that, add something like "umask=0000" to the options section of the partition's /etc/fstab entry. That will make all the files writable to everyone. You can read about the various options in the "mount" man page.
 
Old 05-11-2006, 08:21 PM   #10
wantabee
LQ Newbie
 
Registered: Apr 2006
Posts: 25

Original Poster
Rep: Reputation: 15
Hi Everyone ~
I want to thank you all up front. I really appreciate the support.
Ok, first off, windoze Me is in fact vfat.
It will take a couple more hours before I can run the cmds as requested
above. I will do that tonight, and report back if successful. If not, will list the EXACT responses.
Thanks again!!
 
Old 05-11-2006, 08:55 PM   #11
wantabee
LQ Newbie
 
Registered: Apr 2006
Posts: 25

Original Poster
Rep: Reputation: 15
YES, YES, YES!!!!! umask=0000 Scores!!
Thank you SO much.
I was tromping down the 'rw' path.
Way tooooooooooooo easy, cool! Thanks.
 
  


Reply

Tags
fat, readonly, windows



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
Write permissions on a mounted fat32 partition Cain_vX Linux - Newbie 1 03-27-2006 02:54 PM
mounted but no write permissions varunk123456 Linux From Scratch 1 03-31-2004 02:55 PM
How to allow write permissions to mounted partitions? PenguinPelt Linux - Security 1 09-24-2002 12:57 AM
Linux and windoze permissions MADCAT Linux - Networking 2 07-11-2002 12:14 PM
Permissions with windoze folders sportjeep99 Linux - General 1 06-07-2001 10:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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