- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Unable to execute files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 12:10 AM
04-03-2003 12:10 AM
Unable to execute files
I've got a problem with one Linux Redhat 7 workstation here on our network.
It seems like we are unable to execute any new file placed into the system no matter what user you are logged in as.
For example, I logged in as root in order to install open office and even thought the "install" file is properly flagged as an executable, when running it I get a "permission denided".
The same problem exists when trying to run any other new file I copy to this system.
I'm suspecting the problem has got something to do with the system's shell environment. I tried bash and tcsh and the results were the same.
Any ideas ?
Thanks.
Chris Partsenidis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 12:51 AM
04-03-2003 12:51 AM
Re: Unable to execute files
can u just write a single script and see if you are able to execute it.
also are there read+ execute permission for the entire directory tree and the file.
hth
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 01:27 AM
04-03-2003 01:27 AM
Re: Unable to execute files
I've checked the directory permissions and they are fine, I've even tried chmod 777 but still the same result.
Simple scripts will not execute, same problem arises.
Cheers,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 01:39 AM
04-03-2003 01:39 AM
Re: Unable to execute files
++++++++++
#!/bin/bash
echo abcd
++++++++++
also, see if there is /bin/bash available, and also, try executing the script like /bin/bash
hth
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 02:07 AM
04-03-2003 02:07 AM
Re: Unable to execute files
Executing the script from its directory gave me the same error, while /bin/bash 'script'
resulted in the proper execution of the script !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 02:10 AM
04-03-2003 02:10 AM
Re: Unable to execute files
how are you executing the script.
script
or
./script
try the second one. i guess your current directory is not in the path (it should not be for security).
hth
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 02:15 AM
04-03-2003 02:15 AM
Re: Unable to execute files
/bin/bash script OR
/bin/bash /home/user/script
will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 02:27 AM
04-03-2003 02:27 AM
Re: Unable to execute files
tried out what u say. i am unable to reproduce.
./script gives permission denied only when it doesnt have execute permission.
i hope u have checked that already. can u try some other shell , say /bin/sh or /bin/ksh.
hth
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2003 08:26 PM
04-03-2003 08:26 PM
Re: Unable to execute files
The problem is that /bin directory is not added to your PATH variable.
#echo $PATH
look for /bin . if it is not there then run this command.
#export $PATH=$PATH:/bin
Edit .bash_profile and add /bin to the PATH variable declaration.
Try executing scripts now.
regards,
U.SivaKumar