permission denied  when I perform a /etc/fstab in freebsd 7

Posted on 2008-11-13
Last Modified: 2013-11-22
I am using freebsd 7 and when I type in as root /etc/fstab I get permission denied message? what am I doing wrong and how can I fix it?

Question by:moman61
    LVL 29

    Expert Comment

    Do you want to edit the file? It's not an executable but a text/ configuration file.

    What editor(s) have you installed?

    Try this at the command line:

    vi /etc/fstab
    LVL 61

    Accepted Solution

    You are trying to execute non-executable file. Thus permission denied.

    To fix what? What are you trying to accpmplish???

    I suggest
    $ file /etc/fstab
    $ cat /etc/fstab
    $ file /bin/sh
    $ /bin/sh

    Author Closing Comment

    thanks for going the extra mile.
    LVL 29

    Expert Comment

    Funny how an answer that's more or less repeating my comment gets the points.
    LVL 61

    Expert Comment

    I agree with you. Just added something interesting to use... Ask for 50:50


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
    Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    746 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

    16 Experts available now in Live!

    Get 1:1 Help Now