Slackware This Forum is for the discussion of Slackware Linux.
|
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-01-2006, 12:38 AM
|
#1
|
LQ Newbie
Registered: Jun 2006
Posts: 10
Rep:
|
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~
|
|
|
08-01-2006, 12:44 AM
|
#2
|
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914
Rep:
|
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.
|
|
|
08-01-2006, 12:44 AM
|
#3
|
Member
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419
Rep:
|
fat16 doesnt have the capability to set permissions, you would need to set those permissions in fstab under the options
|
|
|
08-01-2006, 10:48 AM
|
#4
|
LQ Newbie
Registered: Jun 2006
Posts: 10
Original Poster
Rep:
|
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 10:55 AM.
|
|
|
08-01-2006, 11:34 AM
|
#5
|
Member
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753
Rep:
|
i don't know what the recent devlopments on NTFS is, but last time i checked, you couldn't.
|
|
|
08-01-2006, 11:59 AM
|
#6
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
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.
|
|
|
08-01-2006, 01:52 PM
|
#7
|
LQ Newbie
Registered: Jun 2006
Posts: 10
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:44 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
|
|