You are not logged in.
Hey guys, I can't seem to change any permissions or owners of any files on the sd card, even logged in as root. Can anyone help me out? I don't know too much about Linux but I'm learning pretty fast.
Offline
You need to reformat the sd card to ext2. Just a note the card will only be readable Linux after this. That is unless you install an ext2 driver on the windows system you want to read it.
Offline
Qatz wrote:
You need to reformat the sd card to ext2. Just a note the card will only be readable Linux after this. That is unless you install an ext2 driver on the windows system you want to read it.
Why need to reformat the sd card ? The system is able to read, write to the SD card in Fat !
Offline
"Why need to reformat the sd card ? The system is able to read, write to the SD card in Fat !"
"I can't seem to change any permissions or owners of any files on the sd card"
Fat filesystems do not support file permissions or file ownership.
Offline
PickleHead wrote:
Hey guys, I can't seem to change any permissions or owners of any files on the sd card, even logged in as root. Can anyone help me out? I don't know too much about Linux but I'm learning pretty fast.
As I understand, files written to the SD card will belong to root. What exactly do you want to do with the files. I am not a linux guru, but I sure know how to help you on this.
Do you use console to change the permissions, or you just type su or sudo in the console and return to the File Manager trying to change the permission ?
Offline
I was trying to do it through console. Couldn't chown or chmod. It makes sense that you can't on fat.
But I guess the real problem is that I can't run programs or shell scripts off the car, I tried to put filezilla on the sd card and when I double click on it, it brings up an open with dialog. When I try to start it via console, it gives me permission errors - even on root.
Offline
Qatz wrote:
"Why need to reformat the sd card ? The system is able to read, write to the SD card in Fat !"
"I can't seem to change any permissions or owners of any files on the sd card"
Fat filesystems do not support file permissions or file ownership.
I am no linux guru, I only know windows do not honour file ownership in Fat.
This is a file in SD (Fat)
You can change permission if you are the owner (root)
You can also change the ownership
Offline
PickleHead wrote:
I was trying to do it through console. Couldn't chown or chmod. It makes sense that you can't on fat.
But I guess the real problem is that I can't run programs or shell scripts off the car, I tried to put filezilla on the sd card and when I double click on it, it brings up an open with dialog. When I try to start it via console, it gives me permission errors - even on root.
Have you prefix your command with sudo ?
Offline
Yes but once he removes the card and then replaces it... poof.
Offline
Hard to imagine that people will format already ready for use SD card to ext2 ![]()
Offline
Its just one of the choices. I find it easier then resetting the permissions each time you insert the card. Also its safer then trying to get someone who doesn't know what they are doing to edit the fstab to change the sd cards defaults.
Offline
o2smartphone wrote:
PickleHead wrote:
I was trying to do it through console. Couldn't chown or chmod. It makes sense that you can't on fat.
But I guess the real problem is that I can't run programs or shell scripts off the car, I tried to put filezilla on the sd card and when I double click on it, it brings up an open with dialog. When I try to start it via console, it gives me permission errors - even on root.Have you prefix your command with sudo ?
sudo: ./filezilla: command not found
Offline
PickleHead wrote:
o2smartphone wrote:
PickleHead wrote:
I was trying to do it through console. Couldn't chown or chmod. It makes sense that you can't on fat.
But I guess the real problem is that I can't run programs or shell scripts off the car, I tried to put filezilla on the sd card and when I double click on it, it brings up an open with dialog. When I try to start it via console, it gives me permission errors - even on root.Have you prefix your command with sudo ?
sudo: ./filezilla: command not found
I think you got it wrong, if the application is in SD and you have not prepare a soft link, then the correct location should be /media/MMC-SD/partition1/....
But if you already CD to the correct folder, then you need to check the attrib, if it is 0644 then it is not allowed to execute.
But are you sure you will use filezilla in the 480 height screen ?
In the site it mention: It is recommended to use the package management system of your distribution or to manually compile FileZilla instead.
Have you tried the Fireftp (plug-in for Firefox) ?
Last edited by o2smartphone (2007-11-01 11:34:47 am)
Offline
I was already in the correct directory, If I were to run ./filezilla without sudo, it would give me a permission error. And then I go and try and change the permissions and I don't have permissions to change permissions lol. Even if I am logged in as root, I get an error when I try to change permissions on the file.
Offline
PickleHead wrote:
I was already in the correct directory, If I were to run ./filezilla without sudo, it would give me a permission error. And then I go and try and change the permissions and I don't have permissions to change permissions lol. Even if I am logged in as root, I get an error when I try to change permissions on the file.
what command you issue to change the permissions ?
Offline
Bump!
Offline
Sorry, I can confirm now Qatz may be right.
Even if you use root to change the permisson, it reverse back to 666 after you leave.
Offline
You can't execute binaries on the external SD card. It is automounted with the noexec option.
You can see this by typing:
cat /proc/mounts
Offline
arcaneman wrote:
You can't execute binaries on the external SD card. It is automounted with the noexec option.
You can see this by typing:
cat /proc/mounts
so can we change that to exec ?
Offline
The only way I can think of to change the noexec option right now is to unmount and remount. I guess you can write a shell script to do this to save time. If anyone knows where to reconfigure the automounter you might be able to change it there.
Offline
There's a file in /sbin called probedevice which sets up the options for mounting different filesystems. The 'FAT' and 'msdos' filesystem types are configured with 'noexec' (which turns off the ability to run programs from the filesystem), and a fmask of '111' (which doesn't permit the changing of the execute bit even if the 'noexec' option isn't present).
On lines 43 and 44 of the file, if you change the 2 'noexec' options to 'exec', and change the value of fmask from '111' to '0', save and reboot, then you'll be able to execute programs from the SD card (and probably USB memory devices too).
EDIT: You'll need to do this as root, normal users don't have permission to modify this file.
Last edited by Damaniel (2007-11-04 11:27:16 pm)
Offline
Damaniel wrote:
There's a file in /sbin called probedevice which sets up the options for mounting different filesystems. The 'FAT' and 'msdos' filesystem types are configured with 'noexec' (which turns off the ability to run programs from the filesystem), and a fmask of '111' (which doesn't permit the changing of the execute bit even if the 'noexec' option isn't present).
On lines 43 and 44 of the file, if you change the 2 'noexec' options to 'exec', and change the value of fmask from '111' to '0', save and reboot, then you'll be able to execute programs from the SD card (and probably USB memory devices too).
EDIT: You'll need to do this as root, normal users don't have permission to modify this file.
You are the One !
Offline
Thanks for the info damaniel. I was looking for that file.
Offline
I have a similar problem. Somehow all my folders, files on my sd card are root only now even though that wasn`t the case yesterday. I tried to change the permission back to user, but all I get is this:
If everything else fails I don`t mind formating, but someone will have to tell me how to go about it please.
Offline