LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-09-2003, 10:57 AM   #1
pHoeNIgS
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 21

Rep: Reputation: 15
fstab


hello

what do i have to write in my fstab to mount a harddrive automatically as a specific user (--> phoenigs) with all rights at mountpoint "/mnt/downloads"

its the device /dev/hda2

i only got it to work, that i must umount the device as root after starting the system, and then i can mount it as "phoenigs" again...

thx
 
Old 09-09-2003, 11:10 AM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
The following example will automatically mount the partition, allow the user to mount/un-mount it (user) and set the permissions (umask).
Code:
/dev/hda2                /mnt/downloads             auto    defaults,user,uid=phoenigs,gid=phoenigs,umask=022 0 0
Take a look at the MAN page for mount, you will find description concerning all the available options.
 
Old 09-09-2003, 11:12 AM   #3
pHoeNIgS
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 21

Original Poster
Rep: Reputation: 15
Talking

ok youre right....but THX =)
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
What is fstab? sceadu Linux - Newbie 2 11-02-2004 07:25 PM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM
Help with /etc/fstab wawosz Linux - General 3 04-24-2003 02:12 PM

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

All times are GMT -5. The time now is 01:34 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
Open Source Consulting | Domain Registration