Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't execute on /home
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
recluse
n00b
n00b


Joined: 18 Apr 2002
Posts: 18

PostPosted: Mon Apr 29, 2002 6:10 am    Post subject: Can't execute on /home Reply with quote

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
View user's profile Send private message
Target
Apprentice
Apprentice


Joined: 25 Apr 2002
Posts: 200

PostPosted: Mon Apr 29, 2002 8:34 am    Post subject: Reply with quote

Make sure user recluse has execute permissions on those files.

They should be in, or in a path in:
Code:
/home/recluse/

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. :P
Back to top
View user's profile Send private message
recluse
n00b
n00b


Joined: 18 Apr 2002
Posts: 18

PostPosted: Mon Apr 29, 2002 1:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Mon Apr 29, 2002 2:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Mon Apr 29, 2002 2:20 pm    Post subject: Re: Can't execute on /home Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum