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
 
LinkBack Search this Thread
Old 10-04-2003, 08:18 PM   #1
FrozenShadow23
LQ Newbie
 
Registered: May 2003
Location: You know, around
Posts: 8

Rep: Reputation: 0
Operation not permitted


I am running Mandrake 9.1 and dual booting Windows XP. This started out fine and I am sharing a large partition between them (/storage/ for linux and G:\ for Windows XP). As I said, I had no problems at first and was able to view and change files in both, but now, only windows can freely do so. Linux has rwx for root and r-- for group and others. I have tried to change the permissions using:

# chmod -R 777 /storage/

But I get the error message: Operation not permitted. This is true for all the files in /storage/ and /storage/ folder it's self. I have also tried (just to see if it would work) to change the ownership of /storage/ to ryan (my user name) using the command:

# chown -R ryan /storage/

Still no results. I believe it MAY have something to do with my fstab, but I don't see anything that would indicate the permissions problem. Of course, i'm new to this and probably wouldn't notice the problem if it punched me in the face. The related line in the fstab file is as follows:

/dev/hda6 /storage vfat user,fs=auto,iocharset=iso8859-1,dev,codepage=850,exec 0 0

Hope the information helps. I'd love to get rid of Windows completely but it is required for some of my needed programs (Macromedia Dreamweaver and Flash) I realize that these work with wine, but not perfectly. I love wine but it doesn't do everything. Thanks for any help.
 
Old 10-05-2003, 12:46 AM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
change the fstab entry to
/dev/hda6 /storage vfat user,fs=auto,iocharset=iso8859-1,dev,codepage=850,exec,umask=0 0 0

notice the umask option.
 
Old 10-05-2003, 01:59 AM   #3
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ArchLinux, FreeBSD
Posts: 501

Rep: Reputation: 30
i am not sure if you would get the file mounted if this is the problem or not but are you sure that the partition is not ntfs. if it is ntfs then your kernel may not be able to edit it's info. have you updated or recompiled your kernel lately??
 
Old 10-05-2003, 02:03 AM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
you can't run chmod or chown on ms file systems because they don't have those features in the file system - that's why the chonw and chmod fail. The permissions have to be set in fstab (or as options in the mount command). Whoever mounts the file system is going to 'own' the files in an vfat or ntfs file system.
 
Old 10-05-2003, 02:28 AM   #5
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ArchLinux, FreeBSD
Posts: 501

Rep: Reputation: 30
correct me if i am wrong but i was under the impression that linux permissions were only recognized by the linux system. i mean when you mount them thru the fstab then the ownership is assigned but when you boot to windows the same ownership is not there, that is as long as the two usernames aren't the same. did i say that in an intelligible way? anyway i think that what i am trying to get at is that i even if he is so and so user that owns the /storage folder then even root should be able to change the permissions and or owner/group. doing so does nothing to the actual files only the way that the linux system looks at them.

p.s. forgive me if i didn't make any sense. i am working a mid shift at work and i don't do well in the thinking department when working mids.
 
Old 10-05-2003, 10:17 AM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
no one can change the ownership and permissions on vfat/ntfs partitions because those file systems don't support that feature - you can't change something that isn't there. That's why the permissions have to be done from fstab - and whoever mounts it 'owns' all the files.
 
Old 10-05-2003, 05:13 PM   #7
FrozenShadow23
LQ Newbie
 
Registered: May 2003
Location: You know, around
Posts: 8

Original Poster
Rep: Reputation: 0
It's a Fat, and I'll change the fstab to what you suggested quatsch thanks. I'll let you all know if if works out. I do know about the NTFS thing, what a pain in the ass that was to figure out.....
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Operation not permitted jakkals Linux - General 3 09-26-2005 07:30 PM
su - operation not permitted jrtayloriv Linux - Newbie 2 06-09-2005 09:27 PM
Operation not permitted as root? Amfohr Linux - Newbie 6 06-07-2005 06:12 AM
su - mysql operation not permitted mjl3434 Slackware 1 02-04-2005 01:52 AM
operation not permitted jamaso Slackware 2 05-08-2004 05:55 AM


All times are GMT -5. The time now is 07:29 AM.

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