LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-26-2003, 06:07 PM   #1
d33pdream
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 90

Rep: Reputation: 15
vfat mount - all files are 'root' owned, but even root can't -WX


II mounted my Fat32 parition and as root i can view the files, (it's windows 2000) but when i try to send a file to the partition (which is mounted at /mnt/win2k it says permission denied. Any ideas on how to properly setup permission on the 2k parition when under GNU/Linux while not breaking anything when I boot up into 2k? Thanks!
 
Old 02-26-2003, 06:40 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
I've never had that problem with a FAT32. Don't hate me for asking this, but are you sure it's FAT and not NTFS?

At least, I haven't had problems writing to FAT32. Don't know if I've ever tried executing anything from it.
 
Old 02-27-2003, 12:26 AM   #3
d33pdream
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 90

Original Poster
Rep: Reputation: 15
It's FAT32


[root@localhost bkeating]# /sbin/fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 9729 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2550 20482843+ c Win95 FAT32 (LBA)
/dev/hda2 2551 5100 20482875 83 Linux
/dev/hda3 5101 5231 1052257+ 82 Linux swap
/dev/hda4 5232 9729 36130185 f Win95 Ext'd (LBA)
/dev/hda5 5232 9729 36130153+ 83 Linux



I know, it's rather weird... and annoying.. It's FAT32, but it's also Windows 2000, so perhaps it's a windows permissions problem? I don';t see how but perhaps thats why.
 
Old 02-27-2003, 02:26 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you're just mounting it incorreclty. do you have it set up in /etc/fstab? if so set an option to umask=000 or mount it on console by

mount -t vfat /dev/hda1 /mnt/windows -o umask=000

should be fine then
 
Old 02-27-2003, 06:44 PM   #5
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Rep: Reputation: 30
I am having basically the same problem. I have another partition in fat32 on my hd and it mounts fine. The only problem is that the file permissions for /mnt/myfiles show up as 755. Logged in as root I can open files move files to the directory, create new directories, etc. The problem is that I cannot chmod the permissions as root to 775 to allow my login to write files to the directory. I get the error permissions cannot be changed for /mnt/myfiles.

does the -o umask=000 allow for this and if so what exactly does umask do?

I need this because I am dual booting winxp and redhat 8 on my system and want to share the directory through both winxp or rh8 when I boot up either one.
 
Old 02-28-2003, 02:38 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
umask masks against the access rights bits. as fat32 is a very basic filesystem it doesn't have any idea about file attributes as found under unix filesystems, so you set them yourself. a set of file attributes such as 755 equates to a umask of 022 (i.e. the exact opposite bit wise) umask says what you can't do, as opposed to what you can do. so 000 will give each file rights of 777 i.e. rwxrwxrwx
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
all users have access to root owned files sakatola Linux - Security 2 07-22-2005 12:45 AM
Make a file owned by root owned by a user sharpie Linux - Newbie 2 02-26-2004 01:26 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
root owned applications won't start in KDE3 Jingle Linux - Software 6 08-07-2003 03:06 PM
empty files named "1" owned by root ??? kkempter Linux - General 3 07-09-2003 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:09 AM.

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