Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FAT Partition Permission 2

Status
Not open for further replies.

segmentationfault

Programmer
Jun 21, 2001
160
US
- first note that I'm extremely inexperienced with Linux. I had to look up the man page for ls yesterday, just as an example.

I've managed to install Mandrake 7.0 with what I would guess is a permissions problem on my Win95 partition. I would like to be able to write/execute as a regular user on the Win95 partition. ls -l declares that root is the owner/group for everything in /dev (which I suspect is correct.) As root I am unable to change permissions on the devices, which I suspect is an intended feature to preserve stability.

Perhaps unrelated, I am interested in the number that ls prints after the permissions. I have a few Linux references, all of which neglected to even address that number. It is "2" for DOS_hda1 (and floppy drives) and "22" for the CD-Rom. Does this number relate to the group number in /etc/groups?

Thanks.
 
First, you cannot execute DOS or Windows programs in Linux without an emmulator, although you should be able to read and write to the partition otherwise. Cheers,
Jim
iamcan.gif
 
Right right, however the x permission needs to be set to get a directory listing, no? (Perhaps this is already allowed - I'm dualbooting and am not permitted network access with the Linux system.) I am positive thought that I cannot write anything to the Windows partition. Trying chmod as root always returns "Operation not permitted."
 
I apologize for previous vagueness.

Every file on my Windows partition is rwxr-xr-x, it's the elusive w bit I think I'm hunting.

I'm doing this from the a console in KDE (xterm?) I'm almost positive I'm using bash. I can verify that if necessary.

To make sure I knew what I was talking about, I went to a directory on the Windows partition and tried to "touch afile" but got "Permission Denied." A few days ago I opened some images on the Windows partition from within Gimp, and they were all read only. I had to save copies on the linux partition, su and copy them back to the Windows side.
 
I've been having the same problem, with the same issue. To elaborate it bit more, what we're trying to do is share a mounted FAT partition between linux and windows.
I'm using Redhat 7.1, and by default the partition is mounted, but only root has write access to the partition. All other users have read and execute permission.
What I *want* to have for the partition, ideally, is that only a certain group of users can mount or access the partition at all. This is my "data" partition, so I don't want some anonymous telnet account to be able to read all of my stored data.
I tried acheiving this goal by using "chgrp" and changing the group ownership of /dev/hda4, and also the mount point, /mnt/data/, to the group I created(in /etc/group) to list users who may access my data drive. I then changed permissions on /dev/hda4 and /mnt/data/ to 770.
I've also messed with fstab some trying to get it to work. I've tried setting the partition user mountable, noauto, and rw in fstab.
It seems that no matter what I do, as soon as I mount the partition, as any user including root, the permissions on /mnt/data changed back to 755 (root: rwx, group and everyone only read and execute).

I'm getting desperate, so I used "chown" to change ownership of the device to my primary user account, but this is an ugly solution. Any other use can still mount and read my data partition. Please help!
 
Hi Guys!
I am very new to Linux and want to give it a shot and require help from you guys.
well I am trying to install Linux and when it is to diskdruid and I assign 256 MB to SWAP and about 4000 MB last partition to /root then it gives an error as "there are currently unallocated partition present in the list of requested partitions.The unallocated partitions are showbn below along with the reason they were not allocated."

/ Boot Partition > 1024 cylinders.

I have 20 GB HDD, 4 partitions.
C: 4500 MB
D: 5000 MB
E: 5000 MB
F: 4500 MB

and I want to install linux in the F: partition.
What do I do now without destroying my data in C:, D: and E: drive?
 
RE: Corntech's 29Jun01 post.

I have the same problem (no write to files on WIn98SE partition). I tried your solution, using Konqueror in SU mode. Went to properties for the appropriate directories, tried to set all permissions to 'x's, progress bar came up, showed 0%, then vanished.

No permissions changed for the directory. Am I missing a step with Konquero?.

I'm using RH7.3, single-user machine. tried using chmod -R 777 /mnt/winn unsuccessfully (permissions remained: -rwxr-xr-x).
 
Wow, pretty nostalgic to see such an old thread come back to the top.

For what it's worth, I'm now using RH7.3 and I still have not figured out how to allow a regular user to write to my Win98 partition. As people have posted, any attempts to chown on that partition fails, any attempts to chmod fail silently.

In my defense, I must say that since I first posted this question almost 15 months ago, I've spent almost 15 minutes trying to solve it. It's a minor irritation, certainly not a big deal.
 
If you only need one user and the superuser to be able to write to the partition, you could just mount the partition as the user. This is the only way that I have come across to solve the problem. //Daniel
 
Yeah, I havent really looked into it that much either but from memory I did it once by specifying the uid/gid while mounting;

e.g mount -o uid=500,gid=500

or something similar.

man mount should help with this.

P.S If you are looking for a good way to read man pages in kde open konqueror and type #mount.

Hope this helps. [smurf]
01101000011000010110010001110011
 
Thanks for the help! The "mount -o ..." worked. Before I read the answers, I discovered that a way to access my text/graphic documents that were on my Win98 partition: open the file in GIMP/Open Office/whatever, copy the file to a new document, work on the copy.

Again, thanks to everyone for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top