Files listed in bold under SSH in Linux

Posted on 2011-04-30
Last Modified: 2012-05-11
I have a script on my CentOS 5.5 server.  I am not a Linux admin, so this questions is likely very basic.
I actually have two CentOS servers that are almost identical.   I set up a script on one many months ago and it lives in the /user/local/testing directory.  When I do an ls the script is displayed in bold with an * next to it.    I put the same script in the same location on the other server and when I ls there it shows up just a plain old file name with no bold and no *.

The script runs fine manually from either server.  However, on the server that does not display it as bold the script will not run when called from crontab.  On the server where it is listed in bold the crontab runs it fine.

I can't remember what I did on the original server to get it to run, but I am assuming it has something do to with security.

Please help a newbie Linux guy.
Question by:BladesAway
    LVL 35

    Accepted Solution

    The asterisk denotes a file with the executable bit set.

    chmod +x

    and then check to see if the crontab will run.
    LVL 1

    Assisted Solution

    Do a long form ls on the file on both systems.  the command is "ls -l".

    on the system where the file is executable you should see something like -rwxr-xr-x and on the system where it isn't you should see something like -rw-r--r--


    Author Closing Comment

    Thanks people! ;)

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Suggested Solutions

    Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    729 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

    19 Experts available now in Live!

    Get 1:1 Help Now