09-14-2011
The read/write/execute access
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Is it true that if I am not the root I can not select access permissions to a file that I own so that my friend (who also isn't the root) can access that file?
And is it true that the only way to accomplish it is to ask the root to "put" my friend into "my" group? Then I could simply set... (1 Reply)
Discussion started by: rudo
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I want to execute a customised process like rating engine using a shell script from a directory other than the directory where the customizes process is placed.
I have tried it in the following way...and faced a issue
when shell script is available in directory /dir1/ and customized... (1 Reply)
Discussion started by: vkishore.btw
1 Replies
3. Solaris
Hi ,
Could you please give me the commands for the following.
1.list users who have direct access to solaris database at os-level
2.list users who have administrative access at os-level in solaris
Please also let me know how to figure out these specific users i need from a... (6 Replies)
Discussion started by: James777
6 Replies
4. UNIX for Dummies Questions & Answers
Hi Folks,
My problem is an easy one for the experts here. All my applications run using a user id that creates files with only the following default rights:
-rw-r-----
I want to modify this user's account such that it creates files that assign read access to the everyone group by default:... (7 Replies)
Discussion started by: umairrahman
7 Replies
5. UNIX for Advanced & Expert Users
Hello all,
I am currently writing an application that besides other thing ,ftps files from remote machines (running linux and solaris). My problem is this: i am connecting to remote machines as a user other than root and i have found that there is a possibility that i will encounter folders with... (3 Replies)
Discussion started by: noam128
3 Replies
6. UNIX for Dummies Questions & Answers
Hello Guru,
I have very unique requirement , need some help.
I have one folder created in one the server A. In this folder , the file getting uploaded from some java based page.
then i am calling scp through key file, which works fine in another folder of server B.
Currently , what i am... (2 Replies)
Discussion started by: u263066
2 Replies
7. UNIX for Dummies Questions & Answers
hi all,
i want to know y kernel is giving access for multiple users to access a file when one user may be the owner is executing that file. Because other user can manipulate that file when the other user is executing that file, it will give the unexpected result to owner . plz help me... (1 Reply)
Discussion started by: jimmyuk
1 Replies
8. Red Hat
well hi to all
The thing is I need to allow particular site to just one or 2 user
not to everybody. Can anybody tell me how do i do it. If i put there
ip in exception then whole Restriction would be bypassed which i dont
want. Your Responses would be highly appreciated
THANKS in ADVANCE (0 Replies)
Discussion started by: achtani_jeetu
0 Replies
9. Solaris
Hi All,
I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be possible and how can this be achieved within samba configuration.
Regards,
Sahil (1 Reply)
Discussion started by: sahil_shine
1 Replies
10. Red Hat
Hi,
I have three servers,For 3 servers how i can take output,all the local accounts and details of whether the access is Root or User access.
cheers (1 Reply)
Discussion started by: ranjithm
1 Replies
LEARN ABOUT OSF1
pthread_rwlock_tryrdlock
pthread_rwlock_tryrdlock(3) Library Functions Manual pthread_rwlock_tryrdlock(3)
NAME
pthread_rwlock_tryrdlock - Attempts to acquire a read-write lock for read access without waiting.
LIBRARY
DECthreads POSIX 1003.1c Library (libpthread.so)
SYNOPSIS
#include <pthread.h>
int pthread_rwlock_tryrdlock(
pthread_rwlock_t *rwlock);
PARAMETERS
Address of the read-write lock object to acquire for read access.
DESCRIPTION
This routine attempts to acquire a read-write lock for read access, but does not wait for the lock if it not immediately available.
If a thread already holds the lock for read access, the lock is granted and this routine returns. If no thread already holds the lock for
write access and there are no writers waiting to acquire the lock, the lock for read access is granted to the calling thread and this rou-
tine returns.
If some thread already holds the lock for write access, the calling thread will not acquire the read lock. Results are undefined if the
calling thread has already acquired a lock for write access on rwlock when this routine is called.
A thread can hold multiple, concurrent locks for read access on the same read-write lock. In a given thread, for each call to this routine
that successfully acquires the same read-write lock for read access, a corrresponding call to pthread_rwlock_unlock must be issued.
If the read-write lock object referenced by rwlock is not initialized, the results of calling this routine are undefined.
RETURN VALUES
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows:
Successful completion. The read-write lock could not be acquired for read access because another thread already acquired it for write
access or is blocked and waiting for it for write access. The value specified by rwlock does not refer to an initialized read-write lock
object. The current thread already owns the read-write lock for writing. The lock for read access could not be acquired because the maxi-
mum number of read lock acquisitions for rwlock has been exceeded.
ERRORS
None
RELATED INFORMATION
Functions: pthread_rwlock_init(3), pthread_rwlockattr_init(3), pthread_rwlock_rdlock(3), pthread_rwlock_wrlock(3), pthread_rwlock_unlock(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
pthread_rwlock_tryrdlock(3)