Sponsored Content
Top Forums Shell Programming and Scripting Need a script to create file permission change restriction Post 302968621 by mr.trilok on Friday 11th of March 2016 04:41:58 PM
Old 03-11-2016
Debian

Thanks for reply, Let me again try to explain more about the issue,

With the 'ram' user only we all dba login and do our dba administration activity.

now let take if we are 5 dba in that any one of dba unfortunately fire "chmod * .txt" command under /home/ram directory where those 4 txt file exist.

now in this case what would happen, all user,group members have read,write,execution privilege.

I am looking for any script which execute in regular interval time frame by crone job schedule and check in case those .txt file found with any other permission then other dba can able to get an alert immediately so DBA could able to take appropriate action ASAP.

Regards,

---------- Post updated at 04:41 PM ---------- Previous update was at 04:34 PM ----------

it my understanding, I am thinking like lets make a kind of shell script which can monitor those 4 file by cron job, in case if some change permission, we could minimum able to get email alert, so we could able to take appropriate action.

Looking your advice which can help us to fight with this kind of issue, We are OK with the resolution and will try to apply it accordingly so please test the case and advice it according.

Regards,
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Timestamp of File permission change

Hi!! Experts, Is there any way to find the timestamp when the permission of a file was modified?? I mean no change to file contents.. Just the chnage of permissions. :) (1 Reply)
Discussion started by: jyotipg
1 Replies

2. UNIX for Dummies Questions & Answers

How to change the default permission of a file

I am creating a file using the UTL_FILE command of oracle. This creates a file with the oracle user id. The file does not have permission for being read by any other user id. Is there a way that I can change this default permission. I tried using umask in the .login. Setting the umask to 022 works... (2 Replies)
Discussion started by: reachsamir
2 Replies

3. Shell Programming and Scripting

How to create a file with full permission in unix script

In my script, I am creating a file ----> then writting one line (i.e. Timestamp) ----> then FTP'ing. The same script can be executed by many other users. While other users executing this script, they couldn't Over write this one line (i.e. Timestamp) My expectation So I wanted to create a... (2 Replies)
Discussion started by: sbmk_design
2 Replies

4. UNIX for Dummies Questions & Answers

Create a new user with restriction

Hello, I would to create a new user with some restriction: 1. The user will not be able to CD any directory (I mean he'll login to the defined home directory and that's all). 2. The user will not be able to delete anything in that home directory Thanks a lot in advance, Shahar (1 Reply)
Discussion started by: shaharoz
1 Replies

5. UNIX for Dummies Questions & Answers

How to create a file with 777 permission.?

Hi Guys, I want to know is there any method to create a file having 777 permission. I am aware of umask, since it is only giving max. 666 permission for files this is not fulfilling my needs. Thanks in advance ---------- Post updated at 12:49 AM ---------- Previous update was at 12:31... (10 Replies)
Discussion started by: sanoop
10 Replies

6. Shell Programming and Scripting

Change the file permission

Guys, I need help. I need to change the .txt file permission after I have reset the file content to 0. The code that reset the file content to 0 is as follows: #!/bin/sh for i in /root/script/*.txt do echo "0" > $i done However, the file is generated by the apache application,... (3 Replies)
Discussion started by: jasperux
3 Replies

7. Shell Programming and Scripting

Script to Change Permission on a directory after every hour

I want to change the permission of a dir to 777 after every hour in a background process.I do not have the access to the crontab , is there another way of doing it a scrit of some thing like that . Any help will be great. (1 Reply)
Discussion started by: neeraj617
1 Replies

8. Shell Programming and Scripting

Trying to create a script to run as root, permission denied

Hello all, I am trying to create a script or a .command file that will run for me and my other techs on many, many Mac OSX computers that will add a file to the /etc/ folder called /etc/launchd.conf Every time I try to run the script, I get "Permission Denied" when trying to put the file into... (13 Replies)
Discussion started by: DonnieNarco
13 Replies

9. Shell Programming and Scripting

Change permission on a file recursively

Hi, this is the structure of the directory /local/home/app/cases under cases directory, below are the sub directories and each directory has files. /local/home/app/cases/1 /local/home/app/cases/2 /local/home/app/cases/3 /local/home/app/cases/4 File types are .txt .sh and so... (5 Replies)
Discussion started by: lookinginfo
5 Replies
CUBRID_LOB_CLOSE(3)							 1						       CUBRID_LOB_CLOSE(3)

cubrid_lob_close - Close BLOB/CLOB data

SYNOPSIS
bool cubrid_lob_close (array $lob_identifier_array) DESCRIPTION
cubrid_lob_close(3) is used to close all BLOB/CLOB returned from cubrid_lob_get(3). PARAMETERS
o $lob_identifier_array -LOB identifier array return from cubrid_lob_get. RETURN VALUES
TRUE, when process is successful. FALSE, when process is unsuccessful. EXAMPLES
Example #1 cubrid_lob_close(3) example <?php $conn = cubrid_connect ("localhost", 33000, "demodb", "dba"); cubrid_execute($conn,"DROP TABLE if exists doc"); cubrid_execute($conn,"CREATE TABLE doc (id INT, doc_content CLOB)"); cubrid_execute($conn,"INSERT INTO doc VALUES (5,'hello,cubrid')"); $lobs = cubrid_lob_get($conn, "SELECT doc_content FROM doc WHERE id=5"); echo "Doc size: ".cubrid_lob_size($lobs[0])." bytes"; cubrid_lob_export($conn, $lobs[0], "doc_5.txt"); cubrid_lob_close($lobs); cubrid_disconnect($conn); ?> SEE ALSO
cubrid_lob_get(3), cubrid_lob_size(3), cubrid_lob_export(3), cubrid_lob_send(3). PHP Documentation Group CUBRID_LOB_CLOSE(3)
All times are GMT -4. The time now is 05:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy