problem with file permissions on ext(2,3 or4)-partitions

Support for Android version of Total Commander

Moderators: sheep, Hacker, Stefan2, white

Post Reply
mankokoma
Junior Member
Junior Member
Posts: 17
Joined: 2011-06-14, 08:46 UTC

problem with file permissions on ext(2,3 or4)-partitions

Post by *mankokoma »

Asked already few weeks ago, but no one cared :cry:
Whenever I copy a file, the permissions are set to be owned by
TC (app_75) and -rw---------

Too test and prove it once more I copied one file from /mnt/sdcard to /sdext/02.backups folder (which is on a second ext4-partition on sdcard).

1. with Total Commander ("Root funcctions everywhere")
2. with terminal emulator (also as root)

http://dl.dropbox.com/u/22905577/tc.pics/01.folder.perm.png
http://dl.dropbox.com/u/22905577/tc.pics/02.file.perm.png
http://dl.dropbox.com/u/22905577/tc.pics/03.tc.cp.perm.png
http://dl.dropbox.com/u/22905577/tc.pics/04.term.cp.perm.png
http://dl.dropbox.com/u/22905577/tc.pics/term.ls.png

the permissions are set to (chown) app_75 (chmod) 600
via terminal to "*.1.txt" the permissions are different (chown) root (chmod) 755
So I have to change the permissions for every file I copy with TC manually :(
My workaround by now is ascript running on the folder,l copied with TC, but that's annoying...
Maybe it's just something easy like ~/.profile for the android-OS or put something to the mount-options, but I couldn't figure out yet...

Anyways, any help or idea is appreciated, thanks!

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39712
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC does not set any permissions when copying. To my knowledge, the permissions of the target folder determine the permissions of files copied to it on Linux (which is the base for Android).
Author of Total Commander
http://www.ghisler.com

mankokoma
Junior Member
Junior Member
Posts: 17
Joined: 2011-06-14, 08:46 UTC

Post by *mankokoma »

Alright then, but Total Commander is the only app with this issue. I can copy files with any other 'filemanaging' app, terminal or even adb shell, but TC is the only that takes (or is given) over the ownership and the files are set to 600...
Really, I don't mind too much about that, was just hoping for another idea to solve it, than always running a chmod-script after copying files...
Unfortunately TC is not able to set permissions for multiselected files, maybe this could be changed in upcoming versions?

For me it's nevertheless still THE BEST Programm on my Android and that won't change!!!
Thanks for your replies, Mr. Ghisler, didn't want to bother you!

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39712
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Try to turn off "root functions everywhere". "sdext" is not recognized as an SD-Card by TC, because there is no function to detect secondary SD-Cards. Most other file managers do NOT use root functions, so you should be OK when using the Java copy functions. TC will still use root functions if the Java functions fail.
Author of Total Commander
http://www.ghisler.com

mankokoma
Junior Member
Junior Member
Posts: 17
Joined: 2011-06-14, 08:46 UTC

Post by *mankokoma »

unfortunately switching off root functions did not change anything. but don't worry and please spend your time and energy on more important things!
i'm sure it's Carrier IQ's fault ;)

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39712
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, maybe you don't have the neccessary write rights for "sdext"? TC should try the Java functions first for copying, which should get the same results as when copying with other non-root file managers...
Author of Total Commander
http://www.ghisler.com

mankokoma
Junior Member
Junior Member
Posts: 17
Joined: 2011-06-14, 08:46 UTC

Post by *mankokoma »

I can also copy files from /mnt/sdcard/ via terminal emulator without root-rights to /sdext/02.backups/ (which has r/w right s for anyone) and there the permissions are OWNER: app_2 (Terminal Emulator) and -rwxrwx--x (which is also funny , should be 664)

Ah, now I copied a file with the "stock" filemanager (which first says /sdext is empty but after typing manual the whole path /sdext/02.backups/ it goes into the folder) does the same: OWNER app_154 (Filemanager) and -rw------

Okay, so I will try to change mountoptions (which is also a strange thing on Android, because /etc/fstab is there, but ignored. So I can try with a remount command...)
However I can see for sure now that the problem is NOT related to TC!!!!
Thanks a lot for your efforts!!!!!!!!!!!!!!!!!!!!!!!!

hugoland
Junior Member
Junior Member
Posts: 3
Joined: 2012-02-10, 09:23 UTC

Post by *hugoland »

I have the same issue with my new Samsung Tab 7.7. There is a solution at:

xda-developers > Samsung Galaxy Tab 7.7 > Galaxy Tab 7.7 General > [Q] First impressions & SD card issue

But I do not like to root my device. Is there any way to update the TC?

Christoph

Post Reply