Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-30-2004, 08:06 AM   #1
LQ Newbie
Registered: Sep 2004
Posts: 9

Rep: Reputation: 0
Question /var/log/news permission denied

I have SUSE 9.1 Pro. when I boot up, I got a bunch of these errors:
/var/log/news/news.crit : permission denied
/var/log/news/news.err : permission denied
/var/log/news/news.notice : permission denied

When I try to cd to /var/log/news to change the permission for these files, I got:

linux:/var/log/news # ls -ltr
/bin/ls: news.err: Permission denied
/bin/ls: news.notice: Permission denied
/bin/ls: news.crit: Permission denied

any ideas?

Old 10-30-2004, 08:33 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,845

Rep: Reputation: 342Reputation: 342Reputation: 342Reputation: 342
In SuSE 8.2, the users and group for /var/log/news are news:news. The permissions are rw- --- ---. Su to root, then cd to /var/log. Give the following commands: "chown -R news:news news", followed by "chmod u+rw-x news, go-rwx news". See if that clears it up.

Last edited by bigrigdriver; 10-30-2004 at 08:34 AM.
Old 10-30-2004, 10:35 AM   #3
LQ Newbie
Registered: Sep 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Still the same error:

linux:/var/log # cd /var/log
linux:/var/log # pwd
linux:/var/log # chown -R news:news news
chown: cannot access `news/news.err': Permission denied
chown: cannot access `news/news.notice': Permission denied
chown: cannot access `news/news.crit': Permission denied

weird! root should be able to chmod or chown of any file!

any idea?
Old 10-30-2004, 10:53 AM   #4
Registered: Oct 2004
Location: Northville, MI
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
Is your NNTP server up and running right now? Not sure it's an access clearance issue (since you're root), but more of a busy file issue. Try killing your NNTP server and then going directly into that /var/log/news/ directory and trying an ls to see if you can see anything.
Old 10-30-2004, 11:19 AM   #5
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
Why are you chowning with a -R? An even easier idea would be to add yourself to the news group, then chmod the /var/log/news directory so the news group has read access. Or even better, setup sudo and just become the news user.. sudo su - news ; then you'd have access.


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 Denied when trying to delete /var robintw Linux - General 4 09-17-2005 03:00 PM
/var/log/messages - kernel: audit(1107868785.573:0): avc: denied { getattr } lothario Linux - Security 2 02-10-2005 05:24 AM
cps printing problem - /var/spool (permission denied) carboncopy Slackware 10 11-11-2004 04:28 AM
Permission denied @ /var/log/mail Thorsten Linux - Software 1 11-03-2003 07:44 PM
How to remove files in /var/log /news and /mail keirobyn Linux - Newbie 6 07-19-2002 05:26 AM

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

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