LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-30-2003, 05:35 PM   #1
Stevetgn
Member
 
Registered: Jun 2003
Distribution: SuSE10, Mepis,
Posts: 230

Rep: Reputation: 30
Question How do I change read/write permissions for a whole directory?


How do I change read/write permissions for a whole directory?
I want to be able to read AND write to a FAT32 windows drive.

Thanks in advance

Steve
 
Old 12-30-2003, 05:49 PM   #2
Quadreg
LQ Newbie
 
Registered: Sep 2003
Location: Belgium
Distribution: Gentoo
Posts: 14

Rep: Reputation: 0
use chmod with the -R option. If you want everybody to have read en write, use :
chmod -R a+rw /dir
 
Old 12-30-2003, 05:55 PM   #3
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 746

Rep: Reputation: 31
Here's a decent link, hope it helps.

http://electron.mit.edu/~gsteele/linuxfaq/

(under "Only root can write to mounted a DOS drive")

Basically, you need to mount the drive with whatever permissions you want to use, because fat32 doesn't have the ability to set permissions the way other OSs do.
 
Old 12-30-2003, 06:20 PM   #4
Stevetgn
Member
 
Registered: Jun 2003
Distribution: SuSE10, Mepis,
Posts: 230

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Quadreg
use chmod with the -R option. If you want everybody to have read en write, use :
chmod -R a+rw /dir
Sorry total newbie. How do I go about using al those commands you just gave me?

Thanks for your newbie patiance!

Steve
 
Old 12-30-2003, 07:01 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,909

Rep: Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747
chmod will not work for a FAT32 partition. Lots of posts here on the subject. Have you searched the website?

You need to open a console window. What WM are you using KDE, Gnome etc?
 
Old 12-30-2003, 11:26 PM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
If you want a particular user or group to be able to read/write to a vfat partition, you can add the gid=xxx or uid=xxx options to your fstab entry for that mount. This will give you as a user access to the drive. If for example there are 3 users who need access to the drive, then make up a group for the drive, and make those users members of that group.
 
Old 12-31-2003, 12:50 AM   #7
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Here's an example:
Before:
/dev/hda1 /mnt/windows defaults 0 0
After:
/dev/hda1 /mnt/windows uid=Stevetgn,gid=users 0 0
 
Old 12-31-2003, 03:09 AM   #8
shemjaza
LQ Newbie
 
Registered: Dec 2003
Location: uk
Distribution: redhat
Posts: 23

Rep: Reputation: 15
what's the diff between a grub and lilo bootloader ? if the chmod cmd doesn't work for a fat32 file system like mine , which one should I use ?
 
Old 12-31-2003, 07:41 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,909

Rep: Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747
shemjaza,
A very FAQ.
http://www.linuxquestions.org/questi...ght=FAT3+umask

The latest versions of both bootloaders operate about the same. The big difference is that when you change lilo's configuration you need to update by rerunning lilo. Its not necessary for grub.
 
  


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
read write permissions petenyce Linux - Newbie 2 09-30-2005 12:53 AM
how do I change the filesystem from read-only to read-write? les_chow Linux - Newbie 5 05-26-2004 03:14 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM
SAMBA Read/Write permissions Tenover Linux - Newbie 5 11-04-2003 12:45 PM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 07:23 PM


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