Permissions of logs

Asked by Jon Charge

I moved the logs from var/log to a separate partition and set fstab to mount that partition in /var/log. I noticed that during the move (which I completed with the live cd) the permissions are not correct. (what should be owned by syslog, not owned by syslog anymore) Is there a program I can run to reset all the permissions back?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1
Revision history for this message
Jon Charge (seropith) said :
#2

Yes, I see. That would cause me to have to change each one individually. Do you know of one that exists that will intelligently do this for me in one batch?

Jon

Revision history for this message
Ian Ace (iaculallad) said :
#3

You can use the (-R) recurse option of chown and chmod:

sudo chown -R username:username /directory/folder/*
sudo chmod -R 755 /directory/folder/*

Can you help with this problem?

Provide an answer of your own, or ask Jon Charge for more information if necessary.

To post a message you must log in.