OESF Portables Forum

General Forums => General Discussion => Topic started by: matthis on August 20, 2007, 11:38:02 am

Title: Linux Filesystem And File Access Privileges
Post by: matthis 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?
Title: Linux Filesystem And File Access Privileges
Post by: Capn_Fish 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.
Title: Linux Filesystem And File Access Privileges
Post by: T3_slider 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.
Title: Linux Filesystem And File Access Privileges
Post by: Meanie 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....
Title: Linux Filesystem And File Access Privileges
Post by: matthis 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