permission denied


Results 1 to 4 of 4

Thread: permission denied

  1. #1
    Join Date
    May 2002
    Location
    uk
    Posts
    93

    Smile permission denied

    platform:


    Redhat Fedora Core 2
    Apache
    Perl CGI
    PHP scripting
    mySQL
    qmail
    Plesk 10 Domains

    PROBLEM:

    [root@q74 root]# /etc/passwd
    -bash: /etc/passwd: Permission denied
    [root@q74 root]# /etc/group
    -bash: /etc/group: Permission denied
    [root@q74 root]# /etc/shadow
    -bash: /etc/shadow: Permission denied

    -bash: /etc/sysconfig/network: Permission denied

    AM i useing the incorrect command here?

    newbie question
    maybe ls?

    Andrew
    anand

  2. #2
    Join Date
    Sep 2002
    Location
    Harlow, UK
    Posts
    1,788
    All of those are actually files, so if you want to edit them your going to have to use a text editor, nano, kedit, vim, emacs etc. If you want to view them try

    cat /etc/passwd

    If you have to ask why you want to install Linux, then perhaps you shouldn't.
    -- Michael D. Watts (Gone but never forgotten)

    Linux is not Windows | Posting Guidelines

    Code Monkey (YouTube)

  3. #3
    Join Date
    Feb 2003
    Location
    Arkansas, CSA
    Posts
    886

    Re: permission denied

    Originally posted by andrew anand
    PROBLEM:

    [root@q74 root]# /etc/passwd
    -bash: /etc/passwd: Permission denied
    [root@q74 root]# /etc/group
    -bash: /etc/group: Permission denied
    [root@q74 root]# /etc/shadow
    -bash: /etc/shadow: Permission denied

    -bash: /etc/sysconfig/network: Permission denied

    AM i useing the incorrect command here?

    newbie question
    maybe ls?

    Andrew
    Obviously you are using the wrong command , but exactly what is it that you are trying to do?

    If you are trying to display the contents of a directory then you should:
    Code:
    ls -l /etc/password
    or
    dir /etc/password
    However I don't think that /etc/password is a directory, but rather a file. If that is the case, and you are wanting to display the contents of the file /etc/password, then do this:
    Code:
    less /etc/password
    Now, if you are wanting to EDIT that file then you would want to use a text editor, as a general rule I use vi, so to edit that file:
    Code:
    vi /etc/password
    HTH,
    MMYoung
    In the 60's people took LSD to make the world weird. Now the world is weird and people take Prozac to make it normal.

    Slackware 11.0 - Dropline GNOME 2.16.1 - kernel 2.6.18
    openSUSE 10.2 with Xgl/compiz/beryl
    Windows XP - kernel klink
    Buy Slack
    Dropline GNOME

  4. #4
    Join Date
    Jan 2003
    Posts
    208

    ???

    What exactly are you trying to accomplish? Do you want to view? edit? list the files in a certain directory????? Just typing the path of a file into the prompt will get you nowhere unless that file is executable and even then you need an sh in front or a ./ to execute it....

    If you are trying to edit the file, I suggest you look into an editor like vi, nano or emacs. If you are trying to simply look at the contents, I suggest you use more 'filename' or the pg command or even the cat command... If you are trying to list the contents of a directory use the ls command or l command. Anything else you need to know, I suggest you hit the tab key twice in quick succesion which will allow you to look at all the commands available on your system. Then from there you can read the man pages on those commands by typing:

    man 'command' (minus the single qoutes of course)

    Good luck!

    -Adam
    ***I have a lot of computers...currently at TEN, and I am trying to setup a cluster. ALL HELP IS WELCOME!

    ***I work for a large Corporation supporting an AS400 and roughly 300 UNIX boxes...

    **Registered Linux User: #371879

    IRC: StylusEater

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •