| View previous topic :: View next topic |
| Author |
Message |
mastabog Junior Member

Joined: 07 Mar 2004 Posts: 60
|
Posted: Tue May 29, 2012 9:10 pm Post subject: cannot copy to /system (or other root folders) |
|
|
Hi,
I've had this bug since early RC stages. Even though I'm rooted and I enabled root functions everywhere in TC, and I also manually remounted /system from .R to .RW, I still cannot copy files from the other panel or from clipboard into such folders. There is no error when copying. It just doesn't do it. It applies to other such folders like /data.
I compared to other file managers like ES File Manager and they don't have a problem writing files in those folders.
This is at the moment the biggest annoyance I have with TC for android. Otherwise it's truly great! |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Wed May 30, 2012 7:12 am Post subject: |
|
|
Please open the context menu of the /system folder and check what permissions it has. Make sure to set the "w" permissions for user, group, and other. I guess that ES file manager does this automatically when you try to write to a protected folder, but I think that this is quite risky. These folders are read only for a good reason. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
mastabog Junior Member

Joined: 07 Mar 2004 Posts: 60
|
Posted: Wed May 30, 2012 1:49 pm Post subject: |
|
|
I would think pretty much all users who root their phones are aware of the risks. I wouldn't have done it and activated the option of root functions everywhere otherwise.
The /system folder has 755 permissions but I'm not trying to write to /system. I'm trying to write to /data/local (for instance), which also has 755. I see TC has a button to remount into .RW mode from .R mode, which I activated.
Please correct me if I'm misinterpreting, but why offer the option to enable root functions everywhere and also the option to remount in .RW mode if you don't allow writing to / or /system folders?
The behaviour and attitude of ES File Explorer is correct in my opinion. It has two options in the menu "Root explorer" and "Mount file system" (the latter mounts / and /system as writable). It gives a warning when activating them. That's the correct attitude, i.e. leave the choice to the user, don't make it for him. TC should do the same.
Would you please consider implementing an option to mount system folders as writeable? |
|
| Back to top |
|
 |
dindog Junior Member

Joined: 18 Oct 2010 Posts: 88
|
Posted: Thu May 31, 2012 1:29 am Post subject: |
|
|
I don't think that is wise to offer universal root access by default.
too dangerous. |
|
| Back to top |
|
 |
mastabog Junior Member

Joined: 07 Mar 2004 Posts: 60
|
Posted: Thu May 31, 2012 7:50 am Post subject: |
|
|
| dindog wrote: | I don't think that is wise to offer universal root access by default.
too dangerous. |
It's not by default at all ... it's a user's choice since they would have to select it in the options. Whoever roots their phone knows the risks too. it would be an optional feature. Warn but leave the choice to the user, don't make it for him.
Right now it seems TC is not capable of writing to certain folders at all, be it by default or not. Maybe I'm missing something but can you tell me how I can use TC to write a file to /data/local for instance? (without manually remounting using external means) |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Thu May 31, 2012 1:29 pm Post subject: |
|
|
| Quote: | | Right now it seems TC is not capable of writing to certain folders at all, be it by default or not. |
I have already explained that this is a question of the rights YOU set for these folders. There are actually 3 precautions by the system to prevent accidental modification of files in system areas:
1. The tree is separated in various separate file systems like /system and /data. You need to make sure (with the mount button) that the file system is not read only, but allows reading+writing (rw).
2. The folder needs to have write rights, so users can add or delete files
3. If you want to modify an existing file, you also need write rights for that file
These rights aren't there for fun - otherwise they could have used something like FAT32 which does not handle user rights at all. Therefore TC respects these rights and doesn't change them by itself. It's very dangerous to just ignore these rights and write to locations which are actually write protected.
I'm considering to show a warning that the target is write protected, and give the user the option to unprotect it. But doing this without asking is going too far. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
mastabog Junior Member

Joined: 07 Mar 2004 Posts: 60
|
Posted: Thu May 31, 2012 3:20 pm Post subject: |
|
|
| ghisler(Author) wrote: | These rights aren't there for fun - otherwise they could have used something like FAT32 which does not handle user rights at all. Therefore TC respects these rights and doesn't change them by itself. It's very dangerous to just ignore these rights and write to locations which are actually write protected.
I'm considering to show a warning that the target is write protected, and give the user the option to unprotect it. But doing this without asking is going too far. |
I never said that write access should be the default. Why are you both implying that? I specifically suggested to warn but leave the choice to the user by offering such an option.
All of us who root our phones are aware of the risks and we root it for one reason: to be *less* restricted than Google intended. You seem to have already acknowledged that (though only partly) since you do have an option called "Root functions everywhere".
If you want to gain more user-base, i.e. those of use who want to use TC for writing to protected dirs, then just add the option for us to enable to do so (warn and shout beforehand if you wish, we won't mind). ES File Explorer did, but TC has so much more potential in many respects.
I don't know how much clearer I can be. It's just a suggestion for a much needed feature for advanced users. I'm not looking to have an argument ... |
|
| Back to top |
|
 |
dindog Junior Member

Joined: 18 Oct 2010 Posts: 88
|
Posted: Fri Jun 01, 2012 2:29 am Post subject: |
|
|
| mastabog wrote: | | dindog wrote: | I don't think that is wise to offer universal root access by default.
too dangerous. |
It's not by default at all ... it's a user's choice since they would have to select it in the options. Whoever roots their phone knows the risks too. it would be an optional feature. Warn but leave the choice to the user, don't make it for him.
Right now it seems TC is not capable of writing to certain folders at all, be it by default or not. Maybe I'm missing something but can you tell me how I can use TC to write a file to /data/local for instance? (without manually remounting using external means) |
get the right to edit is one thing, universal is another.
I bet many people been root and modified file in system, even they do that wrong, they can flash the rom again and fixed everything... but not the case with some other folder, and I don't believe all people knowing that |
|
| Back to top |
|
 |
mastabog Junior Member

Joined: 07 Mar 2004 Posts: 60
|
Posted: Fri Jun 01, 2012 6:20 am Post subject: |
|
|
| dindog wrote: | get the right to edit is one thing, universal is another.
I bet many people been root and modified file in system, even they do that wrong, they can flash the rom again and fixed everything... but not the case with some other folder, and I don't believe all people knowing that |
Ok, on that note I think I won't upset strong opinions even further. Maybe Christian will (please) consider my suggestion: an option, with a warning, but an option nonetheless. A damn useful one. You would gain back this user. |
|
| Back to top |
|
 |
dr.science Junior Member

Joined: 06 Jun 2012 Posts: 4
|
Posted: Wed Jun 06, 2012 8:50 pm Post subject: |
|
|
| As I know, every file explorer for the android has a "mount system" option. I'm surprised that the TC has not. There must be such an option in a professional file explorer. |
|
| Back to top |
|
 |
mastabog Junior Member

Joined: 07 Mar 2004 Posts: 60
|
Posted: Thu Jun 07, 2012 3:08 am Post subject: |
|
|
| dr.science wrote: | | As I know, every file explorer for the android has a "mount system" option. I'm surprised that the TC has not. There must be such an option in a professional file explorer. |
Thank you. My point exactly. |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Thu Jun 07, 2012 4:14 am Post subject: |
|
|
Do you mean re-mounting a read only partition as read-write? This requires root rights. You can add a button to TC's toolbar which does this if your devices is rooted, by choosing "Root functions everywhere" in the settings. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
dr.science Junior Member

Joined: 06 Jun 2012 Posts: 4
|
Posted: Thu Jun 07, 2012 12:56 pm Post subject: |
|
|
| ghisler(Author) wrote: | | Do you mean re-mounting a read only partition as read-write? This requires root rights. You can add a button to TC's toolbar which does this if your devices is rooted, by choosing "Root functions everywhere" in the settings. |
Thank you for the solution. It works.
But it would be nice to have a switcher in the settings menu:
| Code: | [ON] mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
[OFF] mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
|
|
|
| Back to top |
|
 |
mastabog Junior Member

Joined: 07 Mar 2004 Posts: 60
|
Posted: Thu Jun 07, 2012 2:15 pm Post subject: |
|
|
| dr.science wrote: | | ghisler(Author) wrote: | | Do you mean re-mounting a read only partition as read-write? This requires root rights. You can add a button to TC's toolbar which does this if your devices is rooted, by choosing "Root functions everywhere" in the settings. |
Thank you for the solution. It works.
But it would be nice to have a switcher in the settings menu:
| Code: | [ON] mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
[OFF] mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
|
|
I think it is essential to have that as a menu option (which was my point all along) if TC is to be regarded as a powerful file manager. I understand it's an advanced feature, but otherwise there's little point in having other kind of "root functions everywhere" options to be honest. |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Fri Jun 08, 2012 5:45 am Post subject: |
|
|
Why a menu when you can have a button? _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
|