problem with file permissions on ext(2,3 or4)-partitions
Moderators: white, Hacker, petermad, Stefan2
problem with file permissions on ext(2,3 or4)-partitions
Asked already few weeks ago, but no one cared
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!
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!
- ghisler(Author)
- Site Admin
- Posts: 48083
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
https://www.ghisler.com
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!
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!
- ghisler(Author)
- Site Admin
- Posts: 48083
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 48083
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
https://www.ghisler.com
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!!!!!!!!!!!!!!!!!!!!!!!!
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!!!!!!!!!!!!!!!!!!!!!!!!