Permission Denied when trying to run a script.

Posted on 2014-08-09
Last Modified: 2014-08-11
Hello everyone, Im upgrading a software on our server. However when I try to run the script named to update the mysql tables I run into this issue. Im using Centos

Last login: Sat Aug  9 22:19:29 2014
$ cd $GTS_HOME
$ bin/ -tables=cak
-bash: bin/ Permission denied

The user and group are correctly typed. This used to work the last time I run this around 3 months ago.

drwxr-xr-x  17 joe joe      4096 Jul  3 10:59 softwarenamehere

Any advice will be appreciated.
Question by:prsn
    LVL 3

    Expert Comment

    Enter the following command and post the result:

    head $GTS_HOME/bin/

    also post the result of running the command

    LVL 48

    Assisted Solution

    what does

    ls -l $GTS_HOME/bin/


    Do you have execute permission set on
    LVL 1

    Expert Comment

    echo $GTS_HOME

    is the directory what you expect?
    LVL 13

    Accepted Solution

    check with user having more privileges..  Because it seems like user is trying to execute some instructions which are not being allowed as per the currently user rights.


    Author Comment

    Thanks everyone for the help

    I solved the issue
    In case someone had the same issue. The "executable" permission was not assigned to the


    I Run this and it solve it.
    cd $GTS_HOME/bin/
    chmod a+x .pl
    chmod a+x .sh

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    SIP Trunk provider 20 64
    IPA client Config problems 2 57
    powershell backup 2 61
    MySQL going to sleep 4 58
    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now