Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8326459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:46:07+00:00 2026-06-09T00:46:07+00:00

I was trying out a very small script #!/bin/sh test=$(/home/dell/case3.3/private.key) echo $test I call

  • 0

I was trying out a very small script

#!/bin/sh

test="$(/home/dell/case3.3/private.key)"

echo $test

I call this file test1.sh

I try to access a file named private.key
Here is the permission set for the file private.key
-rw-rw-r--

Here is the permission set for the file test1.sh
-rwxrwxrwx

I have also tried to do

chmod u+x test1.sh

and

chmod 755 test1.sh

In my agony, I also tried
chmod 777 test1.sh

I believe that 777 should give it all the permissions like it did ..

I don’t understand what the problem is, why is there a permission denied

I act as the super user

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:46:11+00:00Added an answer on June 9, 2026 at 12:46 am

    /home/dell/case3.3/private.key is not a script, and not executable. $(/home/dell/case3.3/private.key) tries to execute that file. It’s unclear what you’re trying to do, but perhaps what you want is:

    test="$(cat /home/dell/case3.3/private.key)"
    echo "$test"
    

    Edit in response to OP’s comments

    You don’t need to save a whole file to a variable in order to simply display its contents. Instead, use:

    cat /home/dell/case3.3/private.key
    

    If, however, you do want to save off some part of the file, use sed, grep, or awk. For example

    test="$(grep 'somethingInTheFile' /home/dell/case3.3/private.key)"
    echo "$test"
    

    Or, you could process the file line by line:

    while read line; do
      echo $line
    done < /home/dell/case3.3/private.key
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been working very long on trying to straighten this out, but I just
After I watched this NetTUTs video , I'm very interested in trying out the
I'm trying to figure out how to best use MongoDB for a very small
Very confused here, trying out the yuicompressor on a simple javascript file. My js
I am very new to using dependency injection, and I am trying it out
I am very new to Backbone and just trying to figure out the way
I am very new to Python, and trying to figure out how to create
I have a very simple question. Trying to figure out what is the simplest
I'm trying to write a very simple program, I want to print out the
Very strange bug I can't seems to figure out. I am trying to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.