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 08-19-2004, 02:04 AM   #1
Sinope
Member
 
Registered: Aug 2004
Location: Chicago
Distribution: Debian testing/unstable
Posts: 82

Rep: Reputation: 15
Exclamation can't even read from fat32 partition...except sometimes!?


I have a fat32 partition, ~20G, that I use to store my music. It's mounted on /usr/share/yasgur/.

However, I'm getting strange messages.....

~$ madplay /usr/share/yasgur/Led\ Zeppelin/IV/*
MPEG Audio Decoder 0.15.2 (beta) - Copyright © 2000-2004 Robert Leslie et al.
/usr/share/yasgur/Led Zeppelin/IV/*: Permission denied

This never used to happen! (I only switched it to fat32 so that I can play my music from windows as well.) Root can access rwx it just fine, of course... but the behavior from another user is bizarre:

~$ cd /usr/share/yasgur/Led\ Zeppelin/IV/
-bash: cd: /usr/share/yasgur/Led Zeppelin/IV/: Permission denied
~$ cd /usr/share/yasgur/Led\ Zeppelin/
-bash: cd: /usr/share/yasgur/Led Zeppelin/: Permission denied
~$ cd /usr/share/yasgur/
-bash: cd: /usr/share/yasgur/: Permission denied

But:

~$ ls /usr/share/yasgur | head
311/
AK\ 1200/
AYWKUBTTOD/
Against\ All\ Authority/
Amon\ Tobin/
Audio\ Ecstacy/
Audioslave/
Banco\ De\ Gaia/
Barenaked\ Ladies/
Basement\ Jaxx/

yet for some reason:

~$ ls /usr/share/yasgur/Led\ Zeppelin
/usr/bin/ls: /usr/share/yasgur/Led Zeppelin: Permission denied

Can anyone IMAGINE why this might be?

other info maybe worth knowing:
~$ cat /etc/fstab
/dev/hda2 swap swap defaults 0 0
/dev/hdb1 / ext2 defaults 1 1
/dev/hda1 /boot ext2 defaults 1 2
/dev/hdb2 /usr/share/yasgur vfat defaults 1 0
/dev/hda3 /mnt/winxp ntfs ro 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

~$ ls -l /usr/share/yasgur -d
drwxr--r-- 133 root root 16384 1969-12-31 19:00 /usr/share/yasgur/

But:

~$ ls -l /usr/share/yasgur | head
/usr/bin/ls: /usr/share/yasgur/311: Permission denied
/usr/bin/ls: /usr/share/yasgur/AK 1200: Permission denied
/usr/bin/ls: /usr/share/yasgur/AYWKUBTTOD: Permission denied
/usr/bin/ls: /usr/share/yasgur/Against All Authority: Permission denied
/usr/bin/ls: /usr/share/yasgur/Amon Tobin: Permission denied
/usr/bin/ls: /usr/share/yasgur/Audio Ecstacy: Permission denied
/usr/bin/ls: /usr/share/yasgur/Audioslave: Permission denied
[snip]

Weird, no?
 
Old 08-19-2004, 02:30 AM   #2
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
Hi,

it has to do with the permissions: FAT32 cannot store permission information, so the permissions are set at mount time. Because your /usr/share/yasgur is drwxr--r-- you (as normal user) can Read that directory (i.e. its contents), but you cannot cd into it (because the X permission is not set, only for root).

X for files means the may be executed; X for directories means you can cd into them.

If you want all users to have full read permission, change the line in /etc/fstab to "/dev/hdb2 /usr/share/yasgur vfat defaults,umask=022 1 0". Then all directories (and files) will show up as being rxwr-xr-x. If you want to give everyone write permission, then use umask=000.

You'll need to unmount and remount the partition for the changes to take effect.

Greets,
nukkel
 
Old 08-19-2004, 01:57 PM   #3
Sinope
Member
 
Registered: Aug 2004
Location: Chicago
Distribution: Debian testing/unstable
Posts: 82

Original Poster
Rep: Reputation: 15
Aaaah, I see! I didn't realize cd was considered x. :P

Thanks a bunch!

--S
 
Old 08-19-2004, 02:59 PM   #4
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
No problem -- it's a little known thing, 'cos mostly when you mkdir a new directory x is already set...

nukkel

P.S. If you don't want all users to access the dir, you can use uid=... and gid=... options in /etc/fstab to set the user and group, instead of the default (root). But it needs numerical values however
E.g. I have a vfat partition as well and created a separate group for it, then using umask=007 all users you put in that group have full access

Last edited by nukkel; 08-19-2004 at 03:01 PM.
 
  


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
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
I can mount but cannot read a Win95 FAT32 partition wuqso Linux - Hardware 2 12-31-2004 12:39 AM
QPartedt FAT32 partition could not be read by W2K GAZ082 Linux - General 2 12-30-2004 08:41 PM
I can mount but cannot read a WIN95 FAT32 partition wuqso Fedora - Installation 0 12-30-2004 07:57 PM
FAT32 Partition Read-only rhawi Linux - Newbie 5 07-23-2004 12:56 PM

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

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