Author Topic: Linux Filesystem And File Access Privileges  (Read 3364 times)

matthis

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://badaboum.bidibom.free.fr/mat/
Linux Filesystem And File Access Privileges
« on: August 20, 2007, 11:38:02 am »
I have formatted my sl-c3200's hard drive as ext2, and moved back the files that were on it before, when it was in fat (dos?). Since then, I have trouble dealing with files as normal zaurus user, and have to do things as root. I have tried chown -R zaurus /hdd3/ but it doesn't change anything...
Any suggestions?

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Linux Filesystem And File Access Privileges
« Reply #1 on: August 20, 2007, 12:10:41 pm »
try moving the files off the disk as root, then becoming a normal user and copying them back. chowning the directory to a normal user makes the directory the user's, but not the files/dirs inside of it. Copying the files back to it as a normal user should solve that issue.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

T3_slider

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Linux Filesystem And File Access Privileges
« Reply #2 on: August 20, 2007, 03:32:58 pm »
That's why he added the -R option, which does recursively make all directories/files belong to the user (unless I'm mistaken). I always do chown -R user:group, but your syntax looks fine (assuming your data is mounted at /hdd3).

You may also want to check your fstab file to see if it is mounting it read-only or something like that.
Conics SL-C3200 running pdaXrom beta3 and XFCE with a Planex WiFi CF card.

Slackware rules!

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Linux Filesystem And File Access Privileges
« Reply #3 on: August 20, 2007, 07:37:39 pm »
Quote
I have formatted my sl-c3200's hard drive as ext2, and moved back the files that were on it before, when it was in fat (dos?). Since then, I have trouble dealing with files as normal zaurus user, and have to do things as root. I have tried chown -R zaurus /hdd3/ but it doesn't change anything...
Any suggestions?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=166481\"][{POST_SNAPBACK}][/a][/div]


if you have installed the tetsu kernel without also installing the associated modules, then i have observed the same behaviour. after installing the modules, all become as it should....
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

matthis

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://badaboum.bidibom.free.fr/mat/
Linux Filesystem And File Access Privileges
« Reply #4 on: August 21, 2007, 09:27:45 am »
Thanks for your suggestions.

- I'd rather not copy all files off and on again...
- I already had the tetsu kernel modules installed.

I'll look further into the issue. What would be the normal mounting command options  to have in rc.rofilesys? I have "mount -t ext2 -o noatime /dev/${IDE1}3 /hdd3"

thanks for your help