LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-31-2006, 11:38 PM   #1
attockonian
LQ Newbie
 
Registered: Jun 2006
Posts: 10

Rep: Reputation: 0
Cant change permissions of files on a mounted fat16


Hi,

I have mounted fat16 on linux, using the following fstab.


/dev/hda7 swap swap defaults 0 0
/dev/hda6 / reiserfs defaults 1 1
/dev/hda1 /windows vfat uid=411,gid=411,umask=007 1 0
/dev/hda5 /webdrive vfat uid=411,gid=411,umask=007 1 0
/dev/hdb1 /backup vfat uid=411,gid=411,umask=007 1 0
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/sda2 /mnt/ipod vfat defaults,uid=500,gid=500,user,noauto 0 0


Once mounted /backup, /webdrive, /windows (including subdir and files) all have drwxrwx--- permission, and this is what I wanted.

But the problem arises when I try to change permission of any of the files\dires. It will always stick to -rwxrwx--- and nor can I change its ownership.

Any suggestions?


Regards~
 
Old 07-31-2006, 11:44 PM   #2
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
FAT doesn't allow for perm changes like that thru linux to the best of my understanding. It's not a very linux friendly filesystem. You'll have to live with it I'm afraid.
 
Old 07-31-2006, 11:44 PM   #3
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
fat16 doesnt have the capability to set permissions, you would need to set those permissions in fstab under the options
 
Old 08-01-2006, 09:48 AM   #4
attockonian
LQ Newbie
 
Registered: Jun 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Oh man :\
Wish I knew it before.
So NTFS will do the trick here?

Besides that, are there tools available (for linux) to convert Fat to NTFS ? Or wots the fastest way to convert anyway ?


Thankyou ~

Last edited by attockonian; 08-01-2006 at 09:55 AM.
 
Old 08-01-2006, 10:34 AM   #5
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
i don't know what the recent devlopments on NTFS is, but last time i checked, you couldn't.
 
Old 08-01-2006, 10:59 AM   #6
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally Posted by attockonian
...
/dev/hda1 /windows vfat uid=411,gid=411,umask=007 1 0
/dev/hda5 /webdrive vfat uid=411,gid=411,umask=007 1 0
/dev/hdb1 /backup vfat uid=411,gid=411,umask=007 1 0
...
Once mounted /backup, /webdrive, /windows (including subdir and files) all have drwxrwx--- permission, and this is what I wanted.
yup, the permission you gave to the whole partition (0770) is due to the umask (007) you specified in the fstab file. Looks ok and properly done as you gave a user and a group to own the files and directories, pretty much like as I have set up mine FAT32 partitions. You could substitute the umask with 2 parameters that work pretty much alike, dmask and fmask: the former for directories and the latter for files in that partition.

As mentioned before, no FAT filesystem has support for UNIX-like permissions, nor does microsoft's NTFS.

You better stay with FAT partitions if you want to share files in a dual boot set up with windoze, as NTFS is not properly supported by linux (just read-only) though there are several proyects out there trying to provide write support on NTFS, those are only betas and I would not rely on that.
 
Old 08-01-2006, 12:52 PM   #7
attockonian
LQ Newbie
 
Registered: Jun 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Yeah, the idea of dmask and fmask sounds nice. So I edited my fstab to make it look like this:

/dev/hdb1 /backup vfat uid=411,gid=411,dmask=007,fmask=000 1 0
/dev/hda5 /webdrive vfat uid=411,gid=411,dmask=007,fmask=000 1 0
/dev/hda1 /windows vfat uid=411,gid=411,dmask=007,fmask=000 1 0


But I am not getting the desired output result. This is what I get:

for ls -l

drwxr-xr-x 7 web web 16384 1970-01-01 00:00 backup/
drwxr-xr-x 8 web web 32768 1970-01-01 00:00 webdrive/
drwxr-xr-x 9 web web 8192 1970-01-01 00:00 windows/


for ls -l /windows

-rwxr-xr-x 1 web web 8192 2006-04-17 18:33 found.009*
-rwxr-xr-x 1 web web 230424 2006-01-10 15:14 img2-001.raw*
-r-xr-xr-x 1 web web 222390 1999-04-23 22:22 io.sys*
dr-xr-xr-x 40 web web 8192 2005-12-26 13:08 Program\ Files/

Same results for /webdrive and /backup. Now I am stuck with -r-xr-xr-x. Even if I change dmask, i get the same result.

Any suggestions ?


Thankyou
 
  


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 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 02:22 AM
How to change permissions of a mounted partition seran Linux - General 2 08-13-2004 01:43 AM
Can't change permissions for mounted windows partition shara Linux - Newbie 6 03-24-2004 06:31 PM
How to change permissions for Mounted Filesystem leroy27336 Linux - General 3 11-15-2003 03:08 AM
cant change permissions on a mounted windows partition groovin Linux - Newbie 10 11-02-2002 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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