LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-21-2003, 11:10 AM   #1
retiem
Member
 
Registered: Jul 2003
Location: Frankfurt, Germany
Distribution: Mint, Ubuntu, Knoppix, RHEL
Posts: 65

Rep: Reputation: 15
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!
 
Old 07-21-2003, 11:19 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
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....
 
Old 07-21-2003, 11:35 AM   #3
retiem
Member
 
Registered: Jul 2003
Location: Frankfurt, Germany
Distribution: Mint, Ubuntu, Knoppix, RHEL
Posts: 65

Original Poster
Rep: Reputation: 15
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to add a third hard drive (hdd) and get Unable to open /dev/hdd MikeyCarter Linux - Hardware 4 12-26-2005 10:27 PM
mount secondary hdd martinez9049 Linux - Newbie 13 04-22-2005 09:59 PM
How to make mirror image of linux partion to one1 HDD TO 2 HDD raj_1 Linux - General 2 11-04-2004 01:45 AM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 01:50 PM
Mounting Secondary HDD nairnie Linux - Newbie 7 11-17-2003 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:15 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration