LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-28-2014, 09:54 PM   #1
sunardy
LQ Newbie
 
Registered: Oct 2014
Posts: 7

Rep: Reputation: Disabled
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.
 
Old 10-28-2014, 11:29 PM   #2
ilesterg
Member
 
Registered: Jul 2012
Distribution: CentOS, SLES, RHEL, HP-UX, OpenSUSE Tumbleweed KDE
Posts: 505

Rep: Reputation: 54
Can you execute
Code:
ls -C -b
which is equivalent of the dir command.

Also, what's your distro?
 
Old 10-29-2014, 04:22 PM   #3
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,176

Rep: Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837
...and inside which directory are you trying this?
 
  


Reply

Tags
bash


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Permission denied as root to a root-owned directory threevolve Ubuntu 3 06-06-2013 08:27 AM
mkdir throws Permission Denied error in a directoy even with root ownership and 777 permission surajchalukya Linux - Security 14 09-03-2012 09:34 AM
Permission Denied Login eluser Ubuntu 3 07-23-2007 12:36 PM
su root permission denied stardotstar Linux - Software 6 08-20-2006 09:24 PM
root gets permission denied Nightfrost Debian 22 11-21-2004 06:19 AM


All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration