LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-21-2003, 10:56 AM   #1
acadcworks
LQ Newbie
 
Registered: Oct 2002
Posts: 21

Rep: Reputation: 15
Angry Bloody File Permissions


Hi All,

File permissions are really getting annoying. I have installed tomcat4 and it contains a lot of logs in the /var/tomcat4/logs directory.

I also have 4 users who I want to be able to see these logs with TAIL and MORE. However, I do not want them to have root access to the system, only to these logs.

The logs belong to user and group TOMCAT4. They are also created only with owner read/write which is crap.

I tried changing the log file perms to group read/write and added my users to the TOMCAT4 group. This did not work. In fact for some reason chmod 777 does not work either. I have even tried setting /var/ and /var/tomcat4 and /var/tomcat4/logs permissions.

Why is this so difficult to do - i thought linux was good at this stuff grrr
 
Old 03-21-2003, 01:34 PM   #2
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Re: Bloody File Permissions

Quote:
Originally posted by acadcworks
I tried changing the log file perms to group read/write and added my users to the TOMCAT4 group. This did not work. In fact for some reason chmod 777 does not work either. I have even tried setting /var/ and /var/tomcat4 and /var/tomcat4/logs permissions.
What does is mean when you say 'this did not work'? The chmod failed / The users still weren't able to access the files?

Quote:
Originally posted by acadcworks
Why is this so difficult to do - i thought linux was good at this stuff grrr
If the machine doesn't behave the way you intended, it is only because the your intentions weren't communicated properly to the machine.


I would've chosen the sudo approach if I cant change the permissions on the freshly created logfiles automatically throug some tomcat conf option. With tail and rvim ( instead of more/less, so they cant open a root shell from it or suspend it and spawn a root shell ), but you dont necessarily need to go that route since this involves only file-read permissions and when it comes to that, there is nothing that can't be achieved - if know what you're doing.

Go ahead and post your directory listing ( ls -al /var/tomcat4 ) and id <username> and whoever sees it first should be able to help you out.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM
CVS - file permissions and file ownership Osten Linux - Software 3 01-18-2004 04:08 PM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 06:03 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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