LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   w permission on secondary hdd (https://www.linuxquestions.org/questions/linux-general-1/w-permission-on-secondary-hdd-74580/)

retiem 07-21-2003 11:10 AM

w permission on secondary hdd
 
I have 2 hdds. After booting, I manually mount my sec hdd
(mount -tvfat /dev/hdb1 /mnt/keops).
Now, I want user "fred" to have permission to write to directory /mnt/keops/keops/ once /dev/hdb1 is mounted. How do I do this?
I tried using the "chown fred /mnt/keops/keops/" command, but it won't work.Only root has permission to write to any dir under /mnt/keops/
Thank you for your help!

acid_kewpie 07-21-2003 11:19 AM

fat32 is a toy filesystem, there is nowhere for your chown information to go is there...?

you need to set the attributes for the entire partition in one go when you mount it...

mount -t vfat /dev/hdb1 /mnt/keops -o umask=002,uid=501

for example....

retiem 07-21-2003 11:35 AM

Chris:
Thanks a lot!!! I just tried and it worked!!! Couple of things though!

1. Would you briefly remind me what the "umask" value defines?

2. Since the attributes are set for the entire partition, then user "fred" can write to any dir in this partition. Is there a way to restrict access to dirs of my choice? if I then use "chown root /mnt/keops/dirofmychoice/" Can "fred" still access it? I don't think it would even let me do a chown...
Thanks again!


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