LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-06-2006, 02:37 PM   #1
strycnine
Member
 
Registered: Jul 2006
Location: Romania
Distribution: Fedora 12
Posts: 160

Rep: Reputation: 31
chown


I'm trying to change the permission on the C parition but gave me this:" chown: changing ownership of `c': Operation not permitted"(as root).
thx
 
Old 12-06-2006, 03:41 PM   #2
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
You're attempting to change the file permissions on a filesystem that doesn't support permissions. (Probably FAT32 or NTFS)

Are you attempting to make it so that regular users can read/write a FAT32 partition? If so, just search the fourm for 'mounting fat32 with user read write" or something similar and you will find something easily.
 
Old 12-06-2006, 04:00 PM   #3
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
You are changing the owner why exactly ? If you are changing it so you can write to it, then just edit that partitions /etc/fstab entry and change "ro" to "rw", only on that partitons line, and next time you mount that partition you should be fine.

David
 
Old 12-06-2006, 04:11 PM   #4
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally Posted by budword
You are changing the owner why exactly ? If you are changing it so you can write to it, then just edit that partitions /etc/fstab entry and change "ro" to "rw", only on that partitons line, and next time you mount that partition you should be fine.

David
It won't work with NTFS partitions, as by default linux can't properly write into NTFS-formatted filesystems.
If the OP wants to interchange data between windoze and linux a-la dual-boot he should stick to a FAT32 partition, and everything should be fine.
Another tip, if you want static permissions in the whole FAT32 partition, you can set them with the umask function, you can also help yourself by giving owner and group ownerships to said filesystem instead of the root:root default. All that goes in the /etc/fstab file, check man mount most options would fit in said file
 
Old 12-07-2006, 03:49 AM   #5
strycnine
Member
 
Registered: Jul 2006
Location: Romania
Distribution: Fedora 12
Posts: 160

Original Poster
Rep: Reputation: 31
$cat fstab
/dev/hda1 /c vfat auto,rw 1 0
/dev/hda5 /d vfat auto,rw 1 0

this how it looks
It doesn't work.
thx
 
Old 12-07-2006, 09:39 AM   #6
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
your fstab should look similar to:
Code:
/dev/hda1  /c vfat umask=0000.users,auto 0 0

/dev/hda5  /d vfat umask=0000.users,auto 0 0
umask=0000 lets everyone access and modify files
users lets users mount/umount this partition
auto means it's mounted on boot

Last edited by xpromisex; 12-07-2006 at 09:41 AM.
 
  


Reply



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
chown loopoo Linux - Newbie 5 08-09-2005 09:38 AM
Chown -R Jakeh2k1 Linux - General 3 10-31-2004 04:23 PM
chown -R ujotne Programming 3 02-25-2004 12:02 PM
chown Sathe Linux - General 13 10-14-2002 11:25 AM
chown? joetec Linux - Newbie 6 04-07-2002 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:48 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
Open Source Consulting | Domain Registration