LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2005, 09:41 AM   #1
Lordandmaker
Member
 
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Rep: Reputation: 38
Fun with directory permissions....


I've just installed MDV 2006 on a new HDD after the old one died.

I've set it up so that /home is ~30Gb and i've got a FAT32 partition of 150GB mounted at /FAT32 to use as storage space that windows can read and write to.

But it's not letting anyone except root write to it.

I've tried
Code:
 chmod 777 /FAT32
and it doesn't come up with anything to suggest it couldn't, but when i ask ls -l, it still says
Code:
drwxr-xr-x    4 root root 16384 Nov 16 14:30 FAT32/
Any ideas?
 
Old 11-16-2005, 09:47 AM   #2
gnu2tux
Member
 
Registered: Nov 2005
Location: Scotland, UK
Distribution: Ubuntu
Posts: 32

Rep: Reputation: 15
1) unmount your partition
2) chmod the permissions you want it to have (as root)
3) remount

Does it work now?

If not, check your settings in /etc/fstab.

Regards,

Al.
 
Old 11-16-2005, 09:55 AM   #3
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
FAT doesn't support UNIX-like permissions, you have to set the permissions for all the files on FAT filesystem when mounting the filesystem. An entry like this:

Code:
/dev/whatever        /mnt/whereever                     vfat         noauto,users,owner      1   1
in your /etc/stab will give the ownership of all the files on FAT filesystem to whomever mounts it. It's also possible to have them always given to the certain user and it's also possible to define excatly what permissions are given. See the part that talks about FAT filesystems in man mount.
 
Old 11-16-2005, 10:01 AM   #4
Lordandmaker
Member
 
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Original Poster
Rep: Reputation: 38
I tried unmounting it before chmodding, but it's got the same problems.

It's line in /etc/fstab is:
Code:
/dev/sda7 /FAT32 vfat umask=0022,iocharset=iso8859-15,codepage=850 0 0
Should it be reading as something different?

Cheers!
 
Old 11-16-2005, 10:07 AM   #5
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
add the users flag?
 
Old 11-16-2005, 10:07 AM   #6
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
umask is the one you will want to change, it defines the permissions to be _removed_ i.e. 0022 means 777-22 = 755, which is rwx-r-xr-x. You could just change it to 0000. Chmod does absolutely nothing on FAT filesystems, there is no place to store the permissions on FAT.

Last edited by alienDog; 11-16-2005 at 10:08 AM.
 
Old 11-16-2005, 10:15 AM   #7
Lordandmaker
Member
 
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Original Poster
Rep: Reputation: 38
Cheers!

MDV makes editing /etc/fstab a little long winded (only way i could find to do it is using the GUI control centre...) but it works!
 
  


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
Directory Permissions mbjunior99 Mandriva 2 02-27-2005 08:17 PM
directory permissions Tinku Linux - General 2 09-25-2004 12:25 PM
Directory Permissions Help artielnx Linux - Newbie 4 07-28-2004 03:25 PM
Fun with Samba and file permissions atrivis42 Linux - Networking 2 07-06-2004 04:55 AM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration