Visit Jeremy's Blog.
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, 07: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, 07:33 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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 07:34 AM.
Old 10-30-2004, 09: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, 09: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, 10:19 AM   #5
LQ Guru
Registered: Jan 2001
Posts: 24,149

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

All times are GMT -5. The time now is 06:09 AM.

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