View previous topic :: View next topic |
Author |
Message |
recluse n00b
Joined: 18 Apr 2002 Posts: 18
|
Posted: Mon Apr 29, 2002 6:10 am Post subject: Can't execute on /home |
|
|
When I try to run any program on my /home partition I get various errors:
Code: |
::recluse@chifoo:~::
=>programming/perl/tests/hello_world2.pl
bash: programming/perl/tests/hello_world2.pl: /usr/bin/perl: bad interpreter: Permission denied
|
Code: |
::recluse@chifoo:~::
=>programming/cs1440/proj09/./mazeTest
bash: programming/cs1440/proj09/./mazeTest: Permission denied
|
Obviously hello_world2.pl is a perl script and mazeTest would be a binary (compiled from c++ source). I don't know if this will help but here' the line from my /etc/fstab/
Code: |
/dev/hda6 /home ext2 defaults,user 0 0
|
How can I execute stuff on my /home partition? _________________ =recluse= |
|
Back to top |
|
|
Target Apprentice
Joined: 25 Apr 2002 Posts: 200
|
Posted: Mon Apr 29, 2002 8:34 am Post subject: |
|
|
Make sure user recluse has execute permissions on those files.
They should be in, or in a path in:
Owned by user recluse.
...and chmod u+x
The first two should take care of themselves provided user recluse created the files in the first place.
I hope that maze isn't the "mouse maze" exercise using stacks that I keep seeing in absolutely every CS course on earth. |
|
Back to top |
|
|
recluse n00b
Joined: 18 Apr 2002 Posts: 18
|
Posted: Mon Apr 29, 2002 1:57 pm Post subject: |
|
|
I definitely have execute permissons on the files and I did a 'export $PATH' and this is the output
Code: | bash: export: `/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/kde/3/bin:/home/recluse/:/home/recluse': not a valid identifier] |
Could this have something to do with it? _________________ =recluse= |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Mon Apr 29, 2002 2:15 pm Post subject: |
|
|
recluse wrote: | I definitely have execute permissons on the files and I did a 'export $PATH' and this is the output
|
Perhaps you meant to do 'echo $PATH'?
Regarding your trouble, chances are the first line of your perl script is pointing at the wrong location. Where is perl installed on your system? ('which perl') Does this match up against the first line in your script? (probably '#!/usr/bin/perl' when it should be '#!/path/to/your/perl/install')
Of course, another obvious question is; did you emerge perl and are the permissions set on perl such that your user id can execute it?
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Mon Apr 29, 2002 2:20 pm Post subject: Re: Can't execute on /home |
|
|
recluse wrote: | When I try to run any program on my /home partition I get various errors: |
Another thought; what does your /etc/fstab file look like? Specifically, what does the entry for your /home partition look like? (or /, if /home isn't on its own partition)
If you've got it set up so user accounts can't execute on that particular partition, that would certainly cause the problem you're describing.
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
|