Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-13-2003, 02:34 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 5

Rep: Reputation: 0
Angry Cannot set write permission

I mounted FAT32 file system on /win. I can easily write file onto that partion with root login. But when I try to write a file with a php script via web browser, I gives me error 'unable to write file...' When I change permissions with 'chmod 777 /win', it gives me error 'cannot change the permission from 755 to 777 (or something similar)'.Please tell me whats wrong...???
Old 09-13-2003, 08:34 AM   #2
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
I don't exactly know, but seems like a FAT32 limitation.

Probably, what you have is a "mount point" (/win) where you "mounted" a FAT32 file-system (i.e. /dev/hda3)
What you are trying with chmod is to change the mount point permissions, but, is FAT32 able to assume a unix permission settings?

Try with a unix filesystem.

Also note that when you upload a file via web, you are not writing (hopefully) with root permissions, but with the web server user (probably "nobody")

Also, you have to check your directory permissions within the webserver config.
Old 09-13-2003, 10:54 AM   #3
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
To change the permissions for a FAT32 partition, you will have to edit /etc/fstab and add a few options on the line for the FAT32 entry.
The uid options sets the owner.
The gid options sets the group.
The umask options sets the permissions.

Take a look at this post for some examples.

Also, read about the options in the mount command's MAN page.
man mount


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
set permanent read-write permission on shares Randall Slack Linux - Networking 1 10-30-2005 08:54 PM
Read and Write permission jing Linux - Newbie 3 07-13-2004 10:33 PM
mounted but no write permission varunk123456 Red Hat 1 03-31-2004 02:54 PM
no write permission? santasballz Linux - Newbie 1 02-12-2004 11:26 PM
No Write Permission... cabrone Linux - Newbie 4 09-15-2003 02:44 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration