LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-06-2011, 07:02 PM   #1
zman71
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Permission denied when logged in as Root


I am taking an intro to Linux class and trying to do file navagation exercises but I am getting denied when logged in as Root

root@zman-desktop:~# /var/log/boot.log
-bash: /var/log/boot.log: Permission denied
root@zman-desktop:~#
 
Old 03-06-2011, 07:06 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Quote:
Originally Posted by zman71 View Post
I am taking an intro to Linux class and trying to do file navagation exercises but I am getting denied when logged in as Root

root@zman-desktop:~# /var/log/boot.log
-bash: /var/log/boot.log: Permission denied
root@zman-desktop:~#
It appears that you are trying to execute a log file. The log file cannot be executed. You should put some kind of file reading command in front.
Code:
cat /var/log/boot.log

Last edited by stress_junkie; 03-06-2011 at 07:08 PM.
 
Old 03-06-2011, 07:12 PM   #3
zman71
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stress_junkie View Post
It appears that you are trying to execute a log file. The log file cannot be executed. You should put some kind of file reading command in front.
Code:
cat /var/log/boot.log
that worked. Thanks very much!!!
 
  


Reply


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
permission, read only directory, logged in as root ted_chou12 Linux - Software 3 08-22-2010 04:10 PM
Permission denied as root bowbalitic Linux - Server 5 08-21-2009 04:55 PM
permission issues in terminal while logged in as root tekyd Debian 6 03-03-2006 11:39 PM
wolf et needs to be logged in as root for sound (permission issue) dr_unpleasant Linux - Software 0 07-17-2004 03:26 PM
Permission Denied when logged in as root? mackdady Linux - Software 6 03-30-2004 05:31 PM


All times are GMT -5. The time now is 04: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