Click to See Complete Forum and Search --> : Drives & Access
Joćo Figueira
09-05-2001, 09:29 AM
Hello All
I have two windows partitions (vfat) that I use for storage.
The only user that can read and write to those disks is 'root'.
I would like to give permitions to another user to read and write to those drives.
The same thing happens with the floppy drive.
Thank you
Joćo Figueira
[ 05 September 2001: Message edited by: Joćo Figueira ]
try :
man chmod
That might give you some guidance.
Radar
09-05-2001, 11:12 AM
In /etc/fstab: assuming hda1 is your windows drive.
/dev/hda1 /dosdrive vfat user,auto,exec,rw 0 0
Bokkenka
09-05-2001, 05:31 PM
Originally posted by Radar:
<STRONG>/dev/hda1 /dosdrive vfat user,auto,exec,rw 0 0</STRONG>
If you use "user", any user can mount a partition/drive, but only root and the original mounter can unmount it.
If you use "users", then anybody can unmount it.
bdg1983
09-05-2001, 06:47 PM
You may not like to have someone suggest you read the documentation, but that's the reason they were created to begin with.
The manual pages for 'mount' and 'fstab' are a wealth of information. Everyone here can suggest this and that, but the man pages were written for a specific reason. They give you all of the options that are available for that particular command or function.
Use them as that's what they are there for. I certainly do...
man mount
man fstab
should explain all. If you have further question, then by all means post them.
Now not everyone will of course know of mount and fstab for example, but once you do know, then use what has been created for your benefit.
Try getting that help in any Microsoft product.
Craig McPherson
09-05-2001, 10:48 PM
The amount of misinformation in this thread is sickening.
Sym is wrong. Chmod is useless on a FAT filesystem, because the FAT filesystem does not support UNIX-style permissions.
Radar is wrong. The "user" mount option only allows users to mount the filesystem, it doesn't affect the logical permissions of the filesystem in any way.
Read the mount manpage on the uid, gid, and mask options and it'll tell you what to do.
As per Craig's suggestion, here's an example:
## example /etc/fstab
/dev/hda1 /windows rw,user,uid=1001,gid=1001,umask=027 0 0
Change the UID/GID for your own, or use your UID and the GID of a common 'user' group on your system.
man mount
man fstab
Luck!
Joćo Figueira
09-06-2001, 12:29 PM
Hello All
I would like to thank you all for the support.
I resolved the problem by editing /etc/fstab and putting uid and gid in the options for that drive. I'm not so shure it is the most correct solution for the problem, but for now it is working just fine.
And to the people that told me to read the man pages, they were right. The solution was right there.
:cool:
Thank you
Joćo Figueira