LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   fstab (https://www.linuxquestions.org/questions/linux-general-1/fstab-90898/)

pHoeNIgS 09-09-2003 10:57 AM

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

Mathieu 09-09-2003 11:10 AM

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. :study:

pHoeNIgS 09-09-2003 11:12 AM

ok youre right....but THX =)


All times are GMT -5. The time now is 12:13 AM.