LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't read mounted drive (https://www.linuxquestions.org/questions/linux-newbie-8/cant-read-mounted-drive-127122/)

mabarnes 12-18-2003 10:08 PM

Can't read mounted drive
 
I can mount a drive just fine, have to do it as root, but when I login in as a user I can't read the mounted drive. What do I do?

Kristijan 12-18-2003 11:05 PM

Try and use a umask

eg: mount -o umask=022 /dev/device /mnt/mntpoint

mabarnes 12-19-2003 12:00 PM

Now how do I make it so it mounts like then when I login.

aaa 12-19-2003 12:07 PM

Add line to /etc/fstab file using a text-editor as the root user. It is pretty straightforward, you can figure it out by looking at it. The 'umask=022' goes in the options field, where 'defaults' sometimes is, before the last two zeros. Multiple options are seperated by commas, and each field is seperated by a space. Also put an 'auto' option to mount on startup. Don't forget to search, this is asked all the time.

Kristijan 12-19-2003 10:36 PM

This is the entry from my fstab

Code:

/dev/hda5      /mnt/windows      ntfs        umask=022


All times are GMT -5. The time now is 07:14 PM.