05-21-2008
Without more information, a guess:
Either a privileged app or user is resetting the protections on the directory.
Try using inotifywatch to see who/what is changing the protections on that directory.
What error do you get when trying to view files?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, first post here be gentle. Very new to Unix. Using HP-UX 10.20
I CD into a remote directory on one machine
$ cd /net/remote hostname
yet when I do an ll in this directory none of the contents appear. It just is empty.
when I do the same command from another machine,
$ cd... (13 Replies)
Discussion started by: maddave
13 Replies
2. UNIX for Dummies Questions & Answers
#!/bin/env perl
read(STDIN,$temp,$ENV{'CONTENT_LENGTH'});
@pairs=split(/&/,$temp);
$DISPLAY1 = "/u/inarram111/dev/web/HNW/BNY/unsecure-html/myscript2.html";
$DATAFILE1 = "/u/inarram111/dev/web/HNW/BNY/unsecure-cgi-bin/datafile";
open (DATAFILE1, ">$DATAFILE1") || die " Error opening log file... (0 Replies)
Discussion started by: rishchand
0 Replies
3. UNIX for Dummies Questions & Answers
Hi Everybody,
I am Unable to view files in a particular directory under /opt. But, when I reboot the server, I am able to view the files.. Its happening daily. Do u 've n e answers/suggestions.
Kindly help..
:eek: (1 Reply)
Discussion started by: its.simron
1 Replies
4. Shell Programming and Scripting
Hi all,
I'm trying to write a single line command to do this
1. ssh user@hostA
2. Check whether the dir /opt/IBM/ exists
3. copy -a /opt/IBM/config.sh /opt/IBM/config.sh.old
This is the command
ssh -v user@hostA "test -d /opt/IBM" && cp -a /opt/IBM/config.sh /opt/IBM/config.sh.old ||... (3 Replies)
Discussion started by: chanti
3 Replies
5. Shell Programming and Scripting
Hi,
Can you help me in providing me a command to view all files present in a directory.
Thanks a lot.
-Vamsi (1 Reply)
Discussion started by: VamsiVasili
1 Replies
6. Shell Programming and Scripting
Hi,
Can u provide me the command to view files in a directory.Urgent Pls.
-Vamsi (4 Replies)
Discussion started by: VamsiVasili
4 Replies
7. Red Hat
I have directory that has some billion file inside , i tried copy some files for specific date but it's always did not respond for long time and did not give any result.. i tried everything with find command and also with xargs..
even this command find . -mtime -2 -print | xargs ls -d did not... (2 Replies)
Discussion started by: before4
2 Replies
8. UNIX for Dummies Questions & Answers
Hi
I am unable to find files, those are present anywhere in the same directory tree, based on the creation date. I need to find the files with their path, as I need to create them in another location and move them. I need some help with a script that may do the job.
Please help (2 Replies)
Discussion started by: sam192837465
2 Replies
9. Solaris
Hi have a system running solaris with a mount point running 58% capacity used, but unfortunately when I type ls -lrtin a specific directory, it returns: ls: Not enough space. I suspect there are millions of files in this directory.
So what I did is to create a script like this:
touch -mt... (13 Replies)
Discussion started by: fretagi
13 Replies
10. Shell Programming and Scripting
#!/bin/bash
script_work_dir="/home/websys/TEST_dpi_42_file_trnsfer_engine/PORT22/script_work_area"
script_config_dir="/home/websys/TEST_dpi_42_file_trnsfer_engine/PORT22/script_config"
dpi_sourceServerList=$script_config_dir"/dpi_sourceServerList"
dpi_srvr_42="rtm@1.1.1.1"... (8 Replies)
Discussion started by: sadique.manzar
8 Replies
LEARN ABOUT OPENSOLARIS
mprotect
mprotect(2) System Calls mprotect(2)
NAME
mprotect - set protection of memory mapping
SYNOPSIS
#include <sys/mman.h>
int mprotect(void *addr, size_t len, int prot);
DESCRIPTION
The mprotect() function changes the access protections on the mappings specified by the range [addr, addr + len), rounding len up to the
next multiple of the page size as returned by sysconf(3C), to be that specified by prot. Legitimate values for prot are the same as those
permitted for mmap(2) and are defined in <sys/mman.h> as:
PROT_READ /* page can be read */
PROT_WRITE /* page can be written */
PROT_EXEC /* page can be executed */
PROT_NONE /* page can not be accessed */
When mprotect() fails for reasons other than EINVAL, the protections on some of the pages in the range [addr, addr + len) may have been
changed. If the error occurs on some page at addr2, then the protections of all whole pages in the range [addr, addr2] will have been modi-
fied.
RETURN VALUES
Upon successful completion, mprotect() returns 0. Otherwise, it returns -1 and sets errno to indicate the error.
ERRORS
The mprotect() function will fail if:
EACCES The prot argument specifies a protection that violates the access permission the process has to the underlying memory object.
EINVAL The len argument has a value equal to 0, or addr is not a multiple of the page size as returned by sysconf(3C).
ENOMEM Addresses in the range [addr, addr + len) are invalid for the address space of a process, or specify one or more pages which are
not mapped.
The mprotect() function may fail if:
EAGAIN The address range [addr, addr + len) includes one or more pages that have been locked in memory and that were mapped MAP_PRIVATE;
prot includes PROT_WRITE; and the system has insufficient resources to reserve memory for the private pages that may be created.
These private pages may be created by store operations in the now-writable address range.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
mmap(2), plock(3C), mlock(3C), mlockall(3C), sysconf(3C), attributes(5), standards(5)
SunOS 5.11 12 Jan 1998 mprotect(2)