View previous topic :: View next topic |
Author |
Message |
Doctor Feelgood Arrrrghh!
Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
Posted: Wed, 15 Dec 2004 10:10:13 Post Subject: something like a universal chmod |
|
|
OK, so I have a folder where the databases are backed up to on a daily basis. But then they are overwitten each day. I just want to set up a cron similar to my other one where it copies that backup to a folder based on the day of the week, so I have 7 backups at any one time.
But, the permission seem to revert to 600 on that db backup each time it is written. I wind up manually having to change it to 777 to make sure it is accesible for copying, but is there a way I can make this happen automatically?
- Thanks |
|
Back to top |
|
|
Little Bruin
Boo Boo
Joined: 07 Apr 2003
Posts: 667
Location: Pic-A-Nic Basket |
|
|
Dud3! Forum abandoner
Joined: 21 Aug 2003 Posts: 1469 Location: Florida
|
|
Back to top |
|
|
Doctor Feelgood Arrrrghh!
Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
Posted: Wed, 15 Dec 2004 18:17:44 Post Subject: |
|
|
I tried that... there doesn't seem to be appropriate permissions on this level to do so. So, I logged in as root and setup a separate cron that only does that. Doesn't seem to do anything...
I now see that I can manually change permissions on this when logged into the server as root, but not when I am logged into the bigbruin area with that separate account... |
|
Back to top |
|
|
IceNine *The Freshest*
Joined: 08 Sep 2003 Posts: 1459 Location: Bel Air
|
Posted: Wed, 15 Dec 2004 18:30:28 Post Subject: |
|
|
Sounds like a group problem. Try chgrp'ing it. _________________
A letter to a soldier |
|
Back to top |
|
|
Doctor Feelgood Arrrrghh!
Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
Posted: Wed, 15 Dec 2004 18:36:56 Post Subject: |
|
|
IceNine wrote: | Sounds like a group problem. Try chgrp'ing it. |
can you give me some more info or an example? thanks!
|
|
Back to top |
|
|
IceNine *The Freshest*
Joined: 08 Sep 2003 Posts: 1459 Location: Bel Air
|
Posted: Wed, 15 Dec 2004 18:44:11 Post Subject: |
|
|
Oops, sorry. I meant CHOWN:
chown -R username *
Also, I just thought of recursion in CHMOD. These files are in subdirectories, right? You might need to use the -R flag... _________________
A letter to a soldier |
|
Back to top |
|
|
misty Mmmmm... Beer
Joined: 17 Jul 2003 Posts: 737 Location: In Dr. EvilCheeze's pants
|
|
Back to top |
|
|
Little Bruin
Boo Boo
Joined: 07 Apr 2003
Posts: 667
Location: Pic-A-Nic Basket |
|
|
Doctor Feelgood Arrrrghh!
Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
|
Back to top |
|
|
misty Mmmmm... Beer
Joined: 17 Jul 2003 Posts: 737 Location: In Dr. EvilCheeze's pants
|
|
Back to top |
|
|
thePMG Rated XXX
Joined: 24 Apr 2004 Posts: 393 Location: Germany
|
|
Back to top |
|
|
|