LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-24-2004, 08:41 AM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 565

Rep: Reputation: 30
can't change directory permissions


I dual boot sarge/win2k. I share a fat32 partition which I use for data including email. Problem is, I can only access this partition as root. chmod and chown just wont work. Of course I try to run those comands as root.

Here is the directory:
-----------------
ls - lsd
32 drwxr--r-- 15 root root 32768 Dec 31 1969 /data
------------------


Here is the /etc/fstab entry:
------------------
/dev/hda6 /data vfat defaults,user 0 0
------------------

Any ideas?
 
Old 07-24-2004, 09:16 AM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 33
/dev/hda6 /data vfat umask=0,quiet,user 0 0
 
Old 07-24-2004, 09:47 AM   #3
walterbyrd
Member
 
Registered: Apr 2004
Posts: 565

Original Poster
Rep: Reputation: 30
Seems to work, thank you.
 
Old 07-24-2004, 10:30 AM   #4
Gkarfield
Member
 
Registered: Jul 2004
Location: Greece
Distribution: FreeBSD 6.2/widows[not 8 legs nor black]
Posts: 123

Rep: Reputation: 15
i just found the same problem, but mine is rwxr-xr-x. may we have to log on as root and change the permissions
 
Old 07-24-2004, 10:45 AM   #5
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 33
First of all: Fat or FAT32 does not support permissions or files owner. So you can not use chmod or chown command. Permissions, what you see is done by masking certain bits with umask option at mount.

So you can use option:
umask=0 for masking 0 bits
gid - default group
uid - default user
quiet - not report any error (it's useful for midnight commander, it'll eliminate errors caused by copying (respectively doing chmod command after copy))
 
Old 07-24-2004, 11:02 AM   #6
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Vookimedlo, thanks for explaining what the quiet option does in practice. I also use mc and I've wondered about the error messages.

One question though, the man page for mount says that user option implies noexec, nosuid, and nodev. Now, does this mean that I should add the exec option to fstab if I want to execute windows binaries using wine?
 
Old 07-24-2004, 11:21 AM   #7
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 33
I don't know exactly because I don't use Wine. But here is my opinion. I think that exec is irrelevant for windows binary format since kernel doesn't have support to get run such files.

So you have to use something like: wine program
and it doesn't matter if exec or noexec is defined. the file is normally read by wine program.

What do you think about it?
 
Old 07-24-2004, 01:20 PM   #8
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
What do you think about it?
Makes sense to me.

I had some Wine-related problems earlier when trying to launch programs from ntfs partition but I think they were due to umask, uid, and gid settings. Now Wine seems to work as expected (without exec option in fstab). I'll try the fstab line you suggest above when I'll have access to a computer that dual boots between Debian and vfat partition.
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change directory permissions ? cwolf78 Linux - Software 3 05-05-2005 12:15 PM
FTP Change Directory Permissions rubbercash Linux - Networking 5 07-29-2004 04:54 PM
How do I Change directory permissions? Stevetgn Linux - Newbie 8 06-09-2004 12:09 AM
Does anyone know why mounting NFS shares causes the directory permissions to change? gkneller Linux - Networking 4 01-29-2004 08:21 AM
How do I change read/write permissions for a whole directory? Stevetgn Linux - Newbie 8 12-31-2003 07:41 AM


All times are GMT -5. The time now is 10:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration