LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permission denied after login as root (https://www.linuxquestions.org/questions/linux-newbie-8/permission-denied-after-login-as-root-4175523625/)

sunardy 10-28-2014 08:54 PM

Permission denied after login as root
 
hi dear all,

i have some problem.

after i log on as root.
and and type dir, i got error message like this :
#dir
bash: /usr/bin/dirermission denied.

and when I run ls -l
#ls -l , i see
-rw-r--r-- 1 root root
-rw-r--r-- 1 root root
-rw-r--r-- 1 root root
-rw-r--r-- 1 root root
-rw-r--r-- 1 root root

so whats the mind of some error was in my command prompt?

I already check vi /etc/passwd and I see so many nologin in every line message in my command prompt

I already check my vi /etc/securetty ad I see vc/1 vc/2 vc/3 vc/4 vc/5 vc/6 vc/7 vc/8 vc/9 vc/10 vc/11 tty1 tty2 tty3 tty4 tty5 tty6 tty7 tty8 tty9 tty10 tty11


thanks.

ilesterg 10-28-2014 10:29 PM

Can you execute
Code:

ls -C -b
which is equivalent of the dir command.

Also, what's your distro?

ondoho 10-29-2014 03:22 PM

...and inside which directory are you trying this?


All times are GMT -5. The time now is 02:59 AM.