LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 06: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, 06: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: 335Reputation: 335Reputation: 335Reputation: 335
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 06:08 PM.
 
Old 03-06-2011, 06: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:23 AM.

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
Open Source Consulting | Domain Registration