Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to set write permission on fat partition!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Sail@
n00b
n00b


Joined: 06 Sep 2003
Posts: 36

PostPosted: Wed Sep 24, 2003 5:00 pm    Post subject: Unable to set write permission on fat partition! Reply with quote

I know that fat permissions is a common issue here, but I don't think this has been adressed before:
I want to let users that are members of the group "share" (407) be able to read, write and execute files in /ftp-data

/etc/fstab:
Code:
...
/dev/hdb1 /ftp-data vfat defaults,uid=nobody,gid=407,umask=707    0 0
...


here is the output i get from ls:
Code:
root@pr0nstar:/ftp-data# ls -la
d---rwx---   12 root     share        4.0K Jan  1  1970 .
drwxr-xr-x   22 root     root          512 Sep 15 16:10 ..
d---r-x---    6 root     share        4.0K Sep 21 03:30 Incoming
d---r-x---   31 root     share         12K Sep 21 18:39 Music
d---r-x---    4 root     share        4.0K Sep 14 13:04 backup.volvo

No write permission!!! Help!
I've tried adding rw, auto, to fstab also.
I'm stuck! :?
Back to top
View user's profile Send private message
FuzzeX
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2003
Posts: 96

PostPosted: Wed Sep 24, 2003 5:32 pm    Post subject: Reply with quote

Try removing defaults from the entry.

Check here for some info if that doesn't fix it: http://arswiki.dragonfeathers.org/cgi-bin/view/Linux/MountsAndPermissions

The easy way to change it is to chmod -R the directory you need the permissions set on, but that won't effect file creation.
Back to top
View user's profile Send private message
Sail@
n00b
n00b


Joined: 06 Sep 2003
Posts: 36

PostPosted: Wed Sep 24, 2003 6:02 pm    Post subject: Reply with quote

Hmm, that didn't help either,
still cannot set write permissions.
Now my fstab look like this:
Code:
/dev/hdb1               /ftp-data       vfat            rw,uid=teddy,gid=share,dmask=775,fmask=774,umask=000      0 0

and this is the output i get from ls:
Code:
root@pr0nstar:/ftp-data# ls -la
drwxrwxrwx   12 teddy    share        4.0K Jan  1  1970 .
drwxr-xr-x   22 root     root          512 Sep 15 16:10 ..
dr-xr-xr-x    6 teddy    share        4.0K Sep 21 03:30 Incoming
dr-xr-xr-x    9 teddy    share        4.0K Sep 21 18:39 Movies
dr-xr-xr-x   31 teddy    share         12K Sep 21 18:39 Music
dr-xr-xr-x    4 teddy    share        4.0K Sep 14 13:04 backup.volvo

Please help me with this, I hate fat partitions!!!
Back to top
View user's profile Send private message
dreamer
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 236

PostPosted: Wed Sep 24, 2003 9:25 pm    Post subject: Reply with quote

no real experience with fat ( i hate them as well :P ) but shouldn;t you set umask to something like 770 ?

( i'am referring to umask in /etc/fstab of course... )
Back to top
View user's profile Send private message
nitro322
Guru
Guru


Joined: 24 Jul 2002
Posts: 596
Location: USA

PostPosted: Wed Sep 24, 2003 10:10 pm    Post subject: Reply with quote

I use these options:
Code:
/dev/hda1  /mnt/win  vfat  uid=1000,gid=1000,async,rw  0 0

and never have any problem writing to it. Be sure that uid and gid matches your primary user's uid and gid.
Back to top
View user's profile Send private message
Lozzer
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2003
Posts: 84
Location: England

PostPosted: Wed Sep 24, 2003 10:25 pm    Post subject: Similar config Reply with quote

I've got a similar configuration, my vfat mount point is owned by root:win. I'm allowing rwxrwxr-x on it (umask = 0002)

My fstab entry looks like
Code:

/dev/hda1               /mnt/win        vfat            gid=win,umask=0002 1 0


I just let the uid default to root. anyone in the win group has write permissions.

The relevent kernel config entries are, I think:
Code:

grep "\(DOS\)\|\(FAT\)" /proc/config
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_MSDOS_PARTITION=y


Also I'm running with the gentoo-2.4.20-r7 kernel sources. I'm guessing from the fact that you have an fmask in your latest examples that you are running a 2.5 series (or later). Maybe there is a problem with these?
Back to top
View user's profile Send private message
ARC2300
Apprentice
Apprentice


Joined: 30 Mar 2003
Posts: 267

PostPosted: Thu Sep 25, 2003 12:00 am    Post subject: Reply with quote

Really stupid, but I don't think you can set permissions on FAT, as it has no file permission attributes (only hidden, system, read-only, archive).

At least IIRC. I don't think I could ever set permissions.
Back to top
View user's profile Send private message
Lozzer
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2003
Posts: 84
Location: England

PostPosted: Thu Sep 25, 2003 1:10 pm    Post subject: Fat Permissions Reply with quote

Although you can't set permissions on individual files, the Linux VFAT implementation allows you to set permissions on the mounted filesystem as a whole. This permission is a property of the mount, rather than the filesystem.
Back to top
View user's profile Send private message
Sail@
n00b
n00b


Joined: 06 Sep 2003
Posts: 36

PostPosted: Thu Sep 25, 2003 4:04 pm    Post subject: Reply with quote

Quote:
Also I'm running with the gentoo-2.4.20-r7 kernel sources. I'm guessing from the fact that you have an fmask in your latest examples that you are running a 2.5 series (or later). Maybe there is a problem with these?

I'm running a 2.4 kernel. I only took some settings that someone else used and hoped that they would work, but they didn't...
These are my kernel settings:
Code:
root@pr0nstar:/etc/kernels# grep "\(DOS\)\|\(FAT\)" config-2.4.22_pre2-gss
CONFIG_EVMS_DOS_SEGMENT_MGR=m
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_UMSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_NCPFS_SMALLDOS=y
CONFIG_MSDOS_PARTITION=y

As you can see, it's quite modular, I hope this doesn't affect this matter in any way :?

Now I have the following settings in my fstab, still not working :x
Code:
 /dev/hdb1               /ftp-data       vfat            uid=teddy,gid=share,async,rw,umask=0002 0 0

ssync just help performance, right?
Thanks for your help and patience, it's appriciated!
Back to top
View user's profile Send private message
Sail@
n00b
n00b


Joined: 06 Sep 2003
Posts: 36

PostPosted: Thu Sep 25, 2003 4:04 pm    Post subject: Reply with quote

Quote:
Also I'm running with the gentoo-2.4.20-r7 kernel sources. I'm guessing from the fact that you have an fmask in your latest examples that you are running a 2.5 series (or later). Maybe there is a problem with these?

I'm running a 2.4 kernel. I only took some settings that someone else used and hoped that they would work, but they didn't...
These are my kernel settings:
Code:
root@pr0nstar:/etc/kernels# grep "\(DOS\)\|\(FAT\)" config-2.4.22_pre2-gss
CONFIG_EVMS_DOS_SEGMENT_MGR=m
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_UMSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_NCPFS_SMALLDOS=y
CONFIG_MSDOS_PARTITION=y

As you can see, it's quite modular, I hope this doesn't affect this matter in any way :?

Now I have the following settings in my fstab, still not working :x
Code:
 /dev/hdb1               /ftp-data       vfat            uid=teddy,gid=share,async,rw,umask=0002 0 0

ssync just help performance, right?
Thanks for your help and patience, it's appriciated!
Back to top
View user's profile Send private message
Sail@
n00b
n00b


Joined: 06 Sep 2003
Posts: 36

PostPosted: Thu Sep 25, 2003 4:07 pm    Post subject: Reply with quote

Quote:
Also I'm running with the gentoo-2.4.20-r7 kernel sources. I'm guessing from the fact that you have an fmask in your latest examples that you are running a 2.5 series (or later). Maybe there is a problem with these?

I'm running a 2.4 kernel. I only took some settings that someone else used and hoped that they would work, but they didn't...
These are my kernel settings:
Code:
root@pr0nstar:/etc/kernels# grep "\(DOS\)\|\(FAT\)" config-2.4.22_pre2-gss
CONFIG_EVMS_DOS_SEGMENT_MGR=m
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_UMSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_NCPFS_SMALLDOS=y
CONFIG_MSDOS_PARTITION=y

As you can see, it's quite modular, I hope this doesn't affect this matter in any way :?

Now I have the following settings in my fstab, still not working :x
Code:
 /dev/hdb1               /ftp-data       vfat            uid=teddy,gid=share,async,rw,umask=0002 0 0

async just help performance, right?
I've problably made some stupid mistake somewhere, just can't figure out where.
Thanks for your help and patience, it's appreciated!
Back to top
View user's profile Send private message
Sail@
n00b
n00b


Joined: 06 Sep 2003
Posts: 36

PostPosted: Thu Sep 25, 2003 4:12 pm    Post subject: Reply with quote

Quote:
Also I'm running with the gentoo-2.4.20-r7 kernel sources. I'm guessing from the fact that you have an fmask in your latest examples that you are running a 2.5 series (or later). Maybe there is a problem with these?

I'm running a 2.4 kernel. I only took some settings that someone else used and hoped that they would work, but they didn't...
These are my kernel settings:
Code:
root@pr0nstar:/etc/kernels# grep "\(DOS\)\|\(FAT\)" config-2.4.22_pre2-gss
CONFIG_EVMS_DOS_SEGMENT_MGR=m
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_UMSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_NCPFS_SMALLDOS=y
CONFIG_MSDOS_PARTITION=y

As you can see, it's quite modular, I hope this doesn't affect this matter in any way :?

Now I have the following settings in my fstab, still not working :x
Code:
 /dev/hdb1               /ftp-data       vfat            uid=teddy,gid=share,async,rw,umask=0002 0 0

async just help performance, right?
I've problably made some stupid mistake somewhere, just can't figure out where.
Thanks for your help and patience, it's appreciated!
Back to top
View user's profile Send private message
Sail@
n00b
n00b


Joined: 06 Sep 2003
Posts: 36

PostPosted: Thu Sep 25, 2003 4:13 pm    Post subject: Reply with quote

Quote:
Also I'm running with the gentoo-2.4.20-r7 kernel sources. I'm guessing from the fact that you have an fmask in your latest examples that you are running a 2.5 series (or later). Maybe there is a problem with these?

I'm running a 2.4 kernel. I only took some settings that someone else used and hoped that they would work, but they didn't...
These are my kernel settings:
Code:
root@pr0nstar:/etc/kernels# grep "\(DOS\)\|\(FAT\)" config-2.4.22_pre2-gss
CONFIG_EVMS_DOS_SEGMENT_MGR=m
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_UMSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_NCPFS_SMALLDOS=y
CONFIG_MSDOS_PARTITION=y

As you can see, it's quite modular, I hope this doesn't affect this matter in any way :?

Now I have the following settings in my fstab, still not working :x
Code:
 /dev/hdb1               /ftp-data       vfat            uid=teddy,gid=share,async,rw,umask=0002 0 0

async just help performance, right?
I've problably made some stupid mistake somewhere, just can't figure out where.
Thanks for your help and patience, it's appreciated!
Back to top
View user's profile Send private message
Sail@
n00b
n00b


Joined: 06 Sep 2003
Posts: 36

PostPosted: Thu Sep 25, 2003 4:15 pm    Post subject: Reply with quote

Quote:
Also I'm running with the gentoo-2.4.20-r7 kernel sources. I'm guessing from the fact that you have an fmask in your latest examples that you are running a 2.5 series (or later). Maybe there is a problem with these?

I'm running a 2.4 kernel. I only took some settings that someone else used and hoped that they would work, but they didn't...
These are my kernel settings:
Code:
root@pr0nstar:/etc/kernels# grep "\(DOS\)\|\(FAT\)" config-2.4.22_pre2-gss
CONFIG_EVMS_DOS_SEGMENT_MGR=m
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_UMSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_NCPFS_SMALLDOS=y
CONFIG_MSDOS_PARTITION=y

As you can see, it's quite modular, I hope this doesn't affect this matter in any way :?

Now I have the following settings in my fstab, still not working :x
Code:
 /dev/hdb1               /ftp-data       vfat            uid=teddy,gid=share,async,rw,umask=0002 0 0

async just help performance, right?
I've problably made some stupid mistake somewhere, just can't figure out where.
Thanks for your help and patience, it's appreciated!
Back to top
View user's profile Send private message
Sail@
n00b
n00b


Joined: 06 Sep 2003
Posts: 36

PostPosted: Thu Sep 25, 2003 4:28 pm    Post subject: Reply with quote

Quote:
Also I'm running with the gentoo-2.4.20-r7 kernel sources. I'm guessing from the fact that you have an fmask in your latest examples that you are running a 2.5 series (or later). Maybe there is a problem with these?

I'm running a 2.4 kernel. I only took some settings that someone else used and hoped that they would work, but they didn't...
These are my kernel settings:
Code:
root@pr0nstar:/etc/kernels# grep "\(DOS\)\|\(FAT\)" config-2.4.22_pre2-gss
CONFIG_EVMS_DOS_SEGMENT_MGR=m
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_UMSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_NCPFS_SMALLDOS=y
CONFIG_MSDOS_PARTITION=y

As you can see, it's quite modular, I hope this doesn't affect this matter in any way :?

Now I have the following settings in my fstab, still not working :x
Code:
 /dev/hdb1               /ftp-data       vfat            uid=teddy,gid=share,async,rw,umask=0002 0 0

async just help performance, right?
I've problably made some stupid mistake somewhere, just can't figure out where.
Thanks for your help and patience, it's appreciated!
Back to top
View user's profile Send private message
Lozzer
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2003
Posts: 84
Location: England

PostPosted: Thu Sep 25, 2003 5:18 pm    Post subject: Mount verbose Reply with quote

mount has a verbose flag (-v) I don't suppose it gives anthing useful.

Also, vfat does have a read-only flag for files. I don't know whether the Linux vfat driver honours it or not. I guess you could try chmodding a file, and seeing if it sticks over a remount.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum