Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have several log files in /var/log/mythtv that need to be owned by mythtv.users. In versions of Ubuntu prior to 12.10 if I did:

sudo chown mythtv.users mylogfile

that worked fine and my log files would stay belonging to mythtv.users. However, since upgrading to 12.10 Ubuntu keeps changing the ownership of my log files back to syslog.adm.

Is there any way to stop Ubuntu changing the ownership of my log files?

share|improve this question
    
Would it be a solution to add mythtv to the group adm ? That way you wont need the logfiles to be owned by mythtv. –  rechengehirn Dec 23 '12 at 10:17
    
Thanks I did try that, but whatever is changing the permissions sets the file to be read only for the adm group. –  Ian Barton Dec 28 '12 at 12:58
add comment

1 Answer 1

Try to change the setgid of the /var/log/mythtv ( http://docs.oracle.com/cd/E19683-01/816-4883/6mb2joass/index.html )

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.