You are not logged in.
Pages: 1
I just added a new partition for my /home folder and copied everything over. Somehow my permissions are all screwed up.
When i try to compile a Script in my folder I get
zsh: permission denied: SCRIPT_NAME (I am using zsh)
Permissions look fine, everything is set to 644 and all scripts are executable, It seems that I lost my permission to run scripts in my home folder...
How can I fix this?
Thanks.
Offline
Scripts should have the executable bit set, ie, have their permissions as 755 (or something similar). You'll need to change your script permissions.
Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB
Offline
Hi, the executable bit is set already
i still have the same problem
Thanks for your reply
Offline
I just tried changing my shell to bash
I get this error now
-bash: SCRIPT_NAME: /usr/bin/env: bad interpreter: Permission denied (for scripts using env)
and the same error but with /usr/bin/sh for bash scripts
Offline
also
bash/python/ruby/sh SCRIPT_NAME
works fine
it has to do with env and the #!/path/to/prog at the start of each script
Offline
/usr/bin/sh does not exist. /bin/sh does. Check the path - it needs to be valid to work
Offline
yes it certainly appears to be the 'env' binary...
i'd recommend maybe,
running the env command to see if it werks.
or
checking the permissions on it or something.
[edit++]
also i did some google searches on the issue, many people have encountered such errors, and it appears that there may be an issue with the file permissions on SCRIPT_NAME ... also there may be an end of lien issue here if you transferred the file across different file-systems ... you may try just replacing the white space at the end of the file with new line in ur editor...
hope all goes well
The.Revolution.Is.Coming - - To fight, To hunger, To Resist!
Offline
thanks for the help guys
yea sorry its /bin/sh... that was a typo
env works fine, permissions on env are ok
The new partition is ext3, the existing was reisferfs so i did copy the files across different file systems
I tried replacing white spaces, but still the same error
man this is strange...
Offline
Just a guess: that partition is mounted with 'noexec' or 'user(s)'?
1000
Offline
Hey byte, your right!
it was my mounting options
I had ext3 defaults,user
but i needed to add 'exec'
I thought the 'exec' bit was covered with 'defaults' but i guess not...
Thanks again everyone!
Offline
defaults implies exec, but then user implies noexec...
Offline
Pages: 1