Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 03-04-2005, 10:33 PM   #1
Registered: Apr 2004
Posts: 668

Rep: Reputation: 45
can not access directory from user account - only root

I'm sure it's something simple. I dual boot and keep my data on a vfat partition. It's easy to spot in my fstab below: /dev/hda8 /data.

I can only get to the directory as root, or by su, or sudo. I can't access it with my normal user account, which is what I want to do.

I'm running debian testing 3.1.

# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda5 / reiserfs notail 0 1
/dev/hda6 none swap sw 0 0
/dev/hda8 /data vfat defaults 0 0
/dev/hdd /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/hdc /media/cdrom1 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
Old 03-05-2005, 12:23 AM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
This is quite possibly one of the most frequently asked questions on this forum.

To be concise, you can use the following line in /etc/fstab for mounting it.
/dev/hda8 /data vfat defaults,umask=000 0 0
umask=000 is the keypoint. The umask specifies the bits that should NOT be set when setting up the permissions for a fat partition.

Other related threads that may be of interest:


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
Can root access be gained from regular user account without password? jdruin Linux - Security 5 11-22-2004 11:20 AM
NEED HELP WITH FTP user account and directory setup aikym1 Linux - Security 1 10-06-2004 07:33 AM
Directory access denied to root user: inode hack? netmar Linux - Security 2 07-31-2004 05:53 AM
Can Access Sites with root but not user account Obelus Linux - Networking 4 12-21-2003 04:28 PM
limit directory access for ssh account spammity Linux - Security 2 02-02-2003 01:36 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration