How is the level of access on a particular folder determined? I have heard (its just hearsay so am not particularly sure of it) that the access a particular user/group has to a low level directory is also affected by the level of access granted to the user/group on its parent directories. e.g.
If user has read and write access on
but no access on
will he/she/it still be able to read and write files on /usr/local/temp/a?
What logic (if any) is used here to determine the level of access? And is it different for individual users and application accounts (which intuition tells me are one and the same thing for the OS)?
This is quite a general question:
I am trying to detect whether people accessing my network are using a proxy server. This is *not* to ensure that web pages are not cached!
The only way that I can think of doing this is to intercept at packet level and examine the source port for... (1 Reply)
Hi, I've been racking my brains trying to remember, but, whats the command to change the default shell? I'm currently always in the Korn shell and I want to start out in the Bash shell. I'm running a variant of BSD I guess in Mac OS X 10.2.2 and Mandrake. Thanks.
ccindyderek:confused: (4 Replies)
hi,
need help in writing a script in perl.
requirement :
1. Search for the files in a particular folder
2. search for a string in the file names
3. Delete the file which matches the string.
Ex: if the folder is C:\TEST
and the folder has 5 files like
2009ABCG.txt
2009MNO.txt... (2 Replies)
I have installed ubuntu. And I have create users ans groups.
Suppose if the user enter into through Putty SSH. He should have access only to home folder and cannot move to other than $HOME. User should not able to root files and /$ files.
Kindly provide solution.
Regards
Vasanth kumar (3 Replies)
Hi:
I have:
folderA
|----folderB
|----folder1
|----folder2
|----folder3
|----folder3.1
Question:
How can I find *.txt ONLY from /folderA/folderB/ and not the others folder1,2,3??
I tried:
find... (8 Replies)
Hello,
Well I have a web with a very bad structure (a vBulletin forum) and I want it redirected to a newer folder in the same server but with a upper level folder.
Current structure is:
https://www.unix.com/vbulletin/upload/index.php
And I want it to be:... (0 Replies)
I am looking for an alternate solution other than gzip or bzip2 to compress files that are 3 to 4 GB each and will be hundreds per day. Aside from increasing storage anybody found a good tool? (5 Replies)
Hi All,
I have a requirement to monitor the sub-directories under /home in a way that if the the folder size increases by 30 GB in a span of like an hour then it needs to send email alerts listing what as the actual size was and what's the current size which the subject listing the sub-directory... (25 Replies)
Discussion started by: Shailesh6
25 Replies
LEARN ABOUT OPENSOLARIS
wsreg_can_access_registry
wsreg_can_access_registry(3WSREG) Product Install Registry Library Functions wsreg_can_access_registry(3WSREG)NAME
wsreg_can_access_registry - determine access to product install registry
SYNOPSIS
cc [flag ...] file ...-lwsreg [library ...]
#include <fcntl.h>
#include <wsreg.h>
int wsreg_can_access_registry(int access_flag);
DESCRIPTION
The wsreg_can_access_registry() function is used to determine what access, if any, an application has to the product install registry.
The access_flag argument can be one of the following:
O_RDONLY Inquire about read only access to the registry.
O_RDWR Inquire about modify (read and write) access to the registry.
RETURN VALUES
The wsreg_can_access_registry() function returns non-zero if the specified access level is permitted. A return value of 0 indicates the
specified access level is not permitted.
EXAMPLES
Example 1: Initialize the registry and determine if access to the registry is permitted.
#include <fcntl.h>
#include <wsreg.h>
int main(int argc, char **argv)
{
int result;
if (wsreg_initialize(WSREG_INIT_NORMAL, NULL)) {
printf("conversion recommended, sufficient access denied
");
}
if (wsreg_can_access_registry(O_RDONLY)) {
printf("registry read access granted
");
} else {
printf("registry read access denied
");
}
if (wsreg_can_access_registry(O_RDWR)) {
printf("registry read/write access granted
");
} else {
printf("registry read/write access denied
");
}
}
USAGE
The wsreg_initialize(3WSREG) function must be called before calls to wsreg_can_access_registry() can be made.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO wsreg_initialize(3WSREG), attributes(5)SunOS 5.10 22 Sep 2000 wsreg_can_access_registry(3WSREG)