In slackware when I cd to /sbin cannot do ls -al
It says permission dennied.
Please some one help.
Printable View
In slackware when I cd to /sbin cannot do ls -al
It says permission dennied.
Please some one help.
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?
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).
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.
su root
check your PATH by type
Code:#echo $PATH