File Protection and Security


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting File Protection and Security
Prev   Next
# 1  
Old 02-21-2011
File Protection and Security

Since I'm just new in unix, can I ask the experts on how I can develop or enhance a unix utility in protecting or securing a file using scripts.

Im thinking chmod, is it enought? or are there other utilities in unix?

My algorithm is like there will be a menu that shows a list of types of protection that the user wants to put in his/her file. and also to unprotect files. *I need more ideas.

sample

1 Protect
2 Unprotect
3 etc that you can add
4 etc that you can add
5. maybe exit here.

then input will be

"filename" "choice"

Thanks in advance Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Linux

file security/protection

Hi All I am working on a site to help newbie to learn linux for free. demo.freelinuxconsole.info there is only one file index.php its been able to rename or deleted. Kindly let me know what permissions should i give to secure this file from editing or deleting by others. (8 Replies)
Discussion started by: smithjack
8 Replies
Login or Register to Ask a Question
PRDB.DB0(5)							AFS File Reference						       PRDB.DB0(5)

NAME
prdb.DB0, prdb.DBSYS1 - Contain the Protection Database and associated log DESCRIPTION
The prdb.DB0 file contains the Protection Database, which maps AFS user, machine, and group names to their respective IDs (AFS UIDs and GIDs) and tracks group memberships. The Protection Server (ptserver process) uses the information in the database to help the File Server grant data access to authorized users. The prdb.DBSYS1 file is a log file in which the Protection Server logs each database operation before performing it. When an operation is interrupted, the Protection Server replays the log to complete the operation. Both files are in binary format and reside in the /var/lib/openafs/db directory on each of the cell's database server machines. When the Protection Server starts or restarts on a given machine, it establishes a connection with its peers and verifies that its copy of the database matches the copy on the other database server machines. If not, the Protection Servers call on AFS's distributed database technology, Ubik, to distribute to all of the machines the copy of the database with the highest version number. Always use the commands in the pts suite to administer the Protection Database. It is advisable to create an archive copy of the database on a regular basis, using a tool such as the UNIX tar command. SEE ALSO
prdb_check(8), pts(1), ptserver(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 PRDB.DB0(5)