LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-13-2003, 03:34 AM   #1
naveedbs
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, 09:34 AM   #2
pablob
Member
 
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, 11:54 AM   #3
Mathieu
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.
http://www.linuxquestions.org/questi...499#post454499

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


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


All times are GMT -5. The time now is 06:34 PM.

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