LinuxQuestions.org
Visit Jeremy's Blog.
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 07-05-2004, 04:17 AM   #1
rafc
Member
 
Registered: Apr 2004
Posts: 87

Rep: Reputation: 15
chown problem


I have a partition in the fat32 filesystem which belongs to root:root. I tried to set a <user> as owner with the command: chown -R <user> /path/ but the output reads operation not permitted. Ofcourse I did this as a root.
Any suggestions?
 
Old 07-05-2004, 04:36 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 49
fat32 is not built for permission compatibility. It is available to make sharing files between Linux and Windows easy.
 
Old 07-05-2004, 05:07 AM   #3
chii-chan
Member
 
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357

Rep: Reputation: 30
Preset the permission in /etc/fstab. Search the forum for mounting windows filesystem and fstab.
 
Old 07-05-2004, 07:45 AM   #4
rafc
Member
 
Registered: Apr 2004
Posts: 87

Original Poster
Rep: Reputation: 15
I now formatted the partition to ext3. I am the owner of it, but I can't write to it, though I have all permissions.
 
Old 07-05-2004, 01:25 PM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
It may be possible, but I've tried several times to chmod and chown files on a fat32 partition, and it always fails. I can read and even modify those files, but only as root. I can't by any means get regular user access, other than just to read. Infuriating by far.

Peace,
JimBass
 
Old 07-05-2004, 02:00 PM   #6
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Quote:
Originally posted by JimBass
It may be possible, but I've tried several times to chmod and chown files on a fat32 partition, and it always fails. I can read and even modify those files, but only as root. I can't by any means get regular user access, other than just to read. Infuriating by far.

Peace,
JimBass
What you need to understand is that the fat32 filesystem (win95/98) has no internal permission/ownership attributes (Beyond the old system/hidden/ro bits of 9x) . When you mount a fat32 (vfat) partition under linux, the entire mounted partion is collectively assigned linux attributes. As mentioned by chii-chan, this is controlled by fstab, and cannot be changed with chown/chmod, only by remounting the partition with other options.

Regards,
Kevin Alm
 
Old 07-06-2004, 12:18 AM   #7
chii-chan
Member
 
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357

Rep: Reputation: 30
Quote:
Originally posted by rafc
I now formatted the partition to ext3. I am the owner of it, but I can't write to it, though I have all permissions.
Make a new directory inside that new partition and then chown the directory to the user. You cannot write directly to the '/' (root) partition as a user (unless, maybe you change the fstab setting to enable that, maybe possible, not sure about that) with default setting.
 
  


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
Problem with chown fgagnon Linux - General 9 04-03-2005 10:35 PM
I Have a problem with the CHOWN command AnnePeter Linux - Software 5 03-12-2004 08:37 AM
chown -R ujotne Programming 3 02-25-2004 01:02 PM
chown Sathe Linux - General 13 10-14-2002 12:25 PM
chown problem Ayesha Linux - Newbie 4 04-17-2002 10:38 PM


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