LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   can't change directory permissions (https://www.linuxquestions.org/questions/debian-26/cant-change-directory-permissions-209085/)

walterbyrd 07-24-2004 08:41 AM

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?

Vookimedlo 07-24-2004 09:16 AM

/dev/hda6 /data vfat umask=0,quiet,user 0 0

walterbyrd 07-24-2004 09:47 AM

Seems to work, thank you.

Gkarfield 07-24-2004 10:30 AM

i just found the same problem, but mine is rwxr-xr-x. may we have to log on as root and change the permissions

Vookimedlo 07-24-2004 10:45 AM

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))

Dead Parrot 07-24-2004 11:02 AM

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?

Vookimedlo 07-24-2004 11:21 AM

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?

Dead Parrot 07-24-2004 01:20 PM

Quote:

What do you think about it?
Makes sense to me. :D

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.


All times are GMT -5. The time now is 11:45 PM.