??? 06/05/08 16:30 Read: times |
#155546 - Exec bit not set? Responding to: ???'s previous message |
Check the file permissions. When you run "ls -l prog89S52", you should get something like: -rw-r--r-- <some int> <yourlogin> <yourgroup> <size in bytes> <modify date> prog89S52 ^^^ The missing bit is here. You need to set execute permission on the file. You do this using the "chmod" command. It accepts a couple formats, octal flags, or a descriptive string. Using the octal format, assuming you own the file, "chmod 744 prog89S52" will fix it, and the permissions flags will become "-rwxr--r--". But I'm going to guess you'll need root privs to access the ports directly. So you might want to try "chmod 755 prog89S52", which allows anyone to execute it. Setting the suid bit will convert it to a "set uid" executable, where it will assume the privileges of the file owner. So you could: chown root prog89S52 chmod 4755 prog89S52 Then you would no longer need to be root to run the program. Note, this is potentially a security hole. Probably not an issue on a personal workstation, but keep it in mind. It's not to be used trivially on big multiuser production boxes. Rob |
Topic | Author | Date |
Programmer for at89s52 | 01/01/70 00:00 | |
google pointed me to 8052.com | 01/01/70 00:00 | |
Thanks | 01/01/70 00:00 | |
check PATH | 01/01/70 00:00 | |
Path dusnt work | 01/01/70 00:00 | |
when will they ever learn (PP&M) | 01/01/70 00:00 | |
CWD not in path | 01/01/70 00:00 | |
still not working | 01/01/70 00:00 | |
Exec bit not set?![]() | 01/01/70 00:00 | |
Is a Linux tool | 01/01/70 00:00 |