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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-10-2006, 11:35 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2006
Posts: 25
Rep:
|
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.
|
|
|
|
05-10-2006, 11:42 PM
|
#2
|
|
Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,209
Rep: 
|
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.
|
|
|
|
05-10-2006, 11:48 PM
|
#3
|
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,538
Rep:
|
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
|
|
|
|
05-10-2006, 11:56 PM
|
#4
|
|
Member
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684
Rep:
|
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
|
|
|
|
05-11-2006, 12:18 AM
|
#5
|
|
Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,209
Rep: 
|
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).
|
|
|
|
05-11-2006, 12:19 AM
|
#6
|
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,538
Rep:
|
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.
|
|
|
|
05-11-2006, 12:29 AM
|
#7
|
|
Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,209
Rep: 
|
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.
|
|
|
|
05-11-2006, 12:58 AM
|
#8
|
|
Senior Member
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Rep:
|
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
|
|
|
|
05-11-2006, 04:41 PM
|
#9
|
|
Member
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384
Rep:
|
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.
|
|
|
|
05-11-2006, 08:21 PM
|
#10
|
|
LQ Newbie
Registered: Apr 2006
Posts: 25
Original Poster
Rep:
|
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!!
|
|
|
|
05-11-2006, 08:55 PM
|
#11
|
|
LQ Newbie
Registered: Apr 2006
Posts: 25
Original Poster
Rep:
|
YES, YES, YES!!!!! umask=0000 Scores!!
Thank you SO much.
I was tromping down the 'rw' path.
Way tooooooooooooo easy, cool! Thanks.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:35 AM.
|
|
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
|
|