[Last Call] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2008-11-13
Medium Priority
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
  • 2
  • 2
LVL 29

Expert Comment

ID: 22954632
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 62

Accepted Solution

gheist earned 300 total points
ID: 22962016
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

ID: 31516562
thanks for going the extra mile.
LVL 29

Expert Comment

ID: 22966297
Funny how an answer that's more or less repeating my comment gets the points.
LVL 62

Expert Comment

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


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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 how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.
Suggested Courses
Course of the Month18 days, 6 hours left to enroll

829 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