write permissions for directory - not accidently move/deleted the directory
Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
As far as I know, there are three different persmissions: read, write and execute. However, if you are granted a write permission, you will always be able to delete it. (think about it.. if you can write on it.. you can delete what it said or replace it at your own will).
Anyway, the command for changing it is chmod ... you could get more info with a man chmod in the terminal.
I suggest a different approach to the problem. Keep several generations of backup. If you lose yesterday's backup you still have the day before yesterday backup and the lost backup is not a total disaster.
Or you could make two simultaneous backups, one to hard disk and the other to CD-RW.
Originally posted by linuxgamer
I have a program that does incremental backups and deletes the
old ones after 7 days. Each backup is about 15GBx7, so my hard drive
space is large but not enough for 30GBx7 for each backup.
I just need to make sure that the main backup folder does not accidently
get removed by a user.
A work-around would be to deny the
"normal users" read-write access to
the directory in question, but allow
them read-write to the files therein.
That way they can read/write the
contained file/directory, but can't
I am still playing with that stuff and in the process of migrating my WindowZ stuff
to SuSE. It sounds like that will work, but I have not fully tested it yet.
I will need to play with for example: chown user:user
for both /dontremove/writablebackupdirectory