Find the answer to your Linux question:
Results 1 to 6 of 6
In slackware when I cd to /sbin cannot do ls -al It says permission dennied. Please some one help....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    4

    cannot run ls in /sbin


    In slackware when I cd to /sbin cannot do ls -al
    It says permission dennied.

    Please some one help.

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    As a normal user you may not have permission to view the contents of /sbin, since that directory contains commands only accessible by the root user. Why do you need to see the contents of /sbin?
    Registered Linux user #270181
    TechieMoe's Tech Rants

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Are you logged in as root? Because non-root users won't have appropriate permissions.

    Yeah, I just figured it out...

    /sbin has the execute permission set for whoever you're logged in as. That means that you can enter the folder.

    However, it has the read permission turned off, so you can't read the files inside (which is what ls does).

  4. #4
    Just Joined!
    Join Date
    Aug 2005
    Posts
    4
    I am logged in as root. When I run ls I get /usr/bin/ls
    permission denied. also when I run netconfig to
    configure the network at the end I get no space in /sbin/cat

    What is a quick way to fix the permissions for /sbin

    Thanks
    in advance.

  5. #5
    Linux Newbie
    Join Date
    Apr 2005
    Location
    CT --> PA
    Posts
    170
    su root
    Chicks dig giant mechanized war machines

  6. #6
    Just Joined!
    Join Date
    Aug 2005
    Location
    China
    Posts
    10
    check your PATH by type
    Code:
    #echo $PATH

Posting Permissions

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