|
2008-04-12
, 00:58
|
|
Posts: 127 |
Thanked: 15 times |
Joined on Feb 2008
|
#2
|
|
2008-04-12
, 01:17
|
|
Posts: 100 |
Thanked: 13 times |
Joined on Mar 2008
|
#3
|
Anyways, did you move that python file on to your tablet from a linux based computer?
|
2008-04-12
, 15:45
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#4
|
Can someone please tell me how to change file permissions in xterm? I´m a linux noob. The command I picked up at linuxcommad.org says it should work like so:
chmod 755 [file_name]
in order to set the file permissions to rwxr-xr-x. While logged in as root, xterm doesn't seem to do anything with this. It doesn't give me an error message, it doesn't seem to respond at all. I just get another # command prompt. And, ls -l makes it clear that the permissions remain the same as before the command.
I´m trying to begin to teach myself python, I´m just beginning to work my way through the online guide at byteofpython.info. I´ve saved my first helloworld.py and the guide now instructs me to change the file permissions as so
chmod a+x helloworld.py
But that gives me the same effect as chmod 755, none at all.
What am I doing wrong?
|
2008-04-12
, 15:55
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#5
|
|
2008-04-12
, 20:57
|
|
Posts: 100 |
Thanked: 13 times |
Joined on Mar 2008
|
#6
|
|
2008-04-12
, 21:18
|
|
Posts: 5,478 |
Thanked: 5,222 times |
Joined on Jan 2006
@ St. Petersburg, FL
|
#7
|
And BTW, what the difference between using chmod 755 and chmod a+x? Are they the same thing?
chmod [octal number] files(s)
chmod 777 files(s)
chmod 644 files(s)
chmod [reference][operator][modes] files(s)
chmod a+x files(s)
chmod ug=rx files(s)
|
2008-04-12
, 21:39
|
|
Posts: 693 |
Thanked: 502 times |
Joined on Jul 2007
|
#8
|
/media/mmc1 # ./helloworld.py
/bin/sh: ./helloworld.py: Permission denied
Can anyone spot my error?
The Following 3 Users Say Thank You to pipeline For This Useful Post: | ||
|
2008-04-12
, 21:46
|
|
Posts: 100 |
Thanked: 13 times |
Joined on Mar 2008
|
#9
|
you've been trying to set exec on a file on mmc1 which wont work cause the filesystem is fat32
- try python helloworld.py
- or move py file to home directory, chmod there and run there
you could also format the mmc to filesystem that supports permissions like ext2 or try mounting mmc1 without the noexec option in /etc/fstab but not really worth it for py files which are interpreted anyways
chmod 755 [file_name]
in order to set the file permissions to rwxr-xr-x. While logged in as root, xterm doesn't seem to do anything with this. It doesn't give me an error message, it doesn't seem to respond at all. I just get another # command prompt. And, ls -l makes it clear that the permissions remain the same as before the command.
I´m trying to begin to teach myself python, I´m just beginning to work my way through the online guide at byteofpython.info. I´ve saved my first helloworld.py and the guide now instructs me to change the file permissions as so
chmod a+x helloworld.py
But that gives me the same effect as chmod 755, none at all.
What am I doing wrong?