LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-04-2005, 09:33 PM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Rep: Reputation: 46
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-04-2005, 11:23 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
Code:
/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:
http://www.linuxquestions.org/questi...hreadid=273736
http://www.linuxquestions.org/questi...hreadid=283509
 
  


Reply



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

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

All times are GMT -5. The time now is 11:49 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