OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Oeration not permitted, chown'ing and chmod'ing
gdog
post Aug 16 2004, 10:32 AM
Post #1





Group: Members
Posts: 246
Joined: 26-July 04
Member No.: 4,111



Can't change ownership and/or permissions of files on my sd card, which is mounted rw (I can write files to it), as root (or zaurus). This is a new one on me. I'm used to being able to do most anything as root ;o)

Any help would be most appreciated!

Thanks,

gdog
Go to the top of the page
 
+Quote Post
iamasmith
post Aug 16 2004, 10:55 AM
Post #2





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



I'm sure you are using a file system like ext2 and not fat on the SD card so I guess it couldn't be that you are using a file system that doesn't support owner attributes...
Go to the top of the page
 
+Quote Post
bluedevils
post Aug 16 2004, 10:56 AM
Post #3





Group: Members
Posts: 1,284
Joined: 31-January 04
From: Vancouver, BC -> NYC, NY
Member No.: 1,633



I have not had the problem, but I have seen a few thread headers that mention it. A search should prove fruitful.
Go to the top of the page
 
+Quote Post
gdog
post Aug 16 2004, 11:40 AM
Post #4





Group: Members
Posts: 246
Joined: 26-July 04
Member No.: 4,111



QUOTE(iamasmith @ Aug 16 2004, 06:55 PM)
I'm sure you are using a file system like ext2 and not fat on the SD card so I guess it couldn't be that you are using a file system that doesn't support owner attributes...

Well I'm glad one of us is sure, lol

Actually I do have it mounted as vfat.... as I was trying to avoid problems later if in fact I wanted to use it as a Windows device. My bad. Guess I better move everything off and remake it.

Thanks for the tip!!!

gdog
Go to the top of the page
 
+Quote Post
iamasmith
post Aug 16 2004, 12:04 PM
Post #5





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



OK, take care though, there are a few SD cards out there that don't 'take' to being reformatted.

If on the slightest chance you need read only with permissions then you may want to consider making a cramfs image, storing that on the card and mounting that.

Best of luck though.
Go to the top of the page
 
+Quote Post
gdog
post Aug 16 2004, 01:43 PM
Post #6





Group: Members
Posts: 246
Joined: 26-July 04
Member No.: 4,111



I went ahead and remade the fs, then changed my fstab changes and it worked like a charm. Thanks for the advice and the warnings.

Regards,

gdog
Go to the top of the page
 
+Quote Post
gdog
post Aug 16 2004, 01:53 PM
Post #7





Group: Members
Posts: 246
Joined: 26-July 04
Member No.: 4,111



Something that is wierd though, is that my CF card is a vfat fs and I can change permissions on the files on it....
Go to the top of the page
 
+Quote Post
iamasmith
post Aug 17 2004, 01:17 AM
Post #8





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



OK, what you can do and can't do with FAT/VFAT WRT:Ownership and permissions

Owner/Group display is controlled by flags on the mount options and effect the whole mounted volume so regardless of what you chown/chgrp to if you check the file again you will probably find it's still root access. The g (group) and o (other) mask may also be set in the fstab if you really want (see man pages for this).

When you set permissions you can effect the x bit and the w bit, as the attributes entry in fat allows limited storage for rights (including read only) - x is stored in... don't know, probably the 'archive' bit on fat.

Notice though that when you change perms you can only change u+perm and that the g+perm options don't do anything. Notice also that setting u+perm changes g+perm and o+perm. This is becasue fat doesn't provide storage for multiple permission sets and has nothing like an ACL.

Regards,

Andy
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st May 2013 - 02:49 AM