From within a directory, how do I determine whether I have write permission for it.
test -w pwd ; echo ?
This doesn't work as it returns false, even though I have write permission. (4 Replies)
im running into changing the ownership of a file. I am trying to change the ownership to "system", but it doesn't want to work. I
sudo chown system /preferences.plist
Password:
chown: system: Invalid argument
is there a way to read the ownership of a file, something like
read chown... (3 Replies)
Hi Folks,
I know that changing users and groups is pretty basic admin, but this one has got me stumped. When I try to change the group of a file for which I am the owner for, it still gives me a 'Not owner' error.
For example, when I am logged in as 'webadmin', I have the following file:
... (4 Replies)
hi,
how can I get the owner of the file ( not uid) on windows plaform.
"getpwuid" is not working on windows. I knw it works on unix.
Thanks. (2 Replies)
I've read the following post here and I get no output from the command. I've tried changing the '$3' to $5, 7, 10...and still nothing. Ultimately what I'd like to is determine who owns the file and rename it to file_name_$USERNAME.
$ uname -a
SunOS sun001 5.10 Generic_118833-33 sun4u sparc... (3 Replies)
Hi all,
We have some files are under 744 permissions and the the owner is say owner1 and group1.
Now we have another user owner2 of group2, owner2 can remove files of the owner1 and the permission of those files are 744, unix admin told us he did some config at his side so we can do that.
... (14 Replies)
What i did:
- logged in with acc1 and created a new user acc2
commands used: useradd and passwd.
- Then i logged in acc2. but all the files are owned by acc1.
Issue: I try to change the owner of the files using chown command . But it gives me a error message.
All i want to do is... (13 Replies)
i need to do the following operations in solaris 10:
1.change owner and group owner for files which are not owned by the current user and user group
2.to can delete files in the /tmp directory which are not of the current user
3. allow to a standard user the deletion of files in the /tmp... (1 Reply)
Discussion started by: sirmark
1 Replies
LEARN ABOUT REDHAT
ldap_add_s
LDAP_ADD(3) Library Functions Manual LDAP_ADD(3)NAME
ldap_add, ldap_add_s - Perform an LDAP add operation
SYNOPSIS
#include <ldap.h>
int ldap_add(ld, dn, attrs)
LDAP *ld;
char *dn;
LDAPMod *attrs[];
int ldap_add_s(ld, dn, attrs)
LDAP *ld;
char *dn;
LDAPMod *attrs[];
DESCRIPTION
The ldap_add_s() routine is used to perform an LDAP add operation. It takes dn, the DN of the entry to add, and attrs, a null-terminated
array of the entry's attributes. The LDAPMod structure is used to represent attributes, with the mod_type and mod_values fields being used
as described under ldap_modify(3), and the ldap_op field being used only if you need to specify the LDAP_MOD_BVALUES option. Otherwise, it
should be set to zero.
Note that all entries except that specified by the last component in the given DN must already exist. ldap_add_s() returns an LDAP error
code indicating success or failure of the operation. See ldap_error(3) for more details.
The ldap_add() routine works just like ldap_add_s(), but it is asynchronous. It returns the message id of the request it initiated. The
result of this operation can be obtained by calling ldap_result(3).
ERRORS
ldap_add() returns -1 in case of error initiating the request, and will set the ld_errno field in the ld parameter to indicate the error.
ldap_add_s() will return an LDAP error code directly (LDAP_SUCCESS if everything went ok, some error otherwise).
SEE ALSO ldap(3), ldap_modify(3)ACKNOWLEDGEMENTS
OpenLDAP is developed and maintained by The OpenLDAP Project (http://www.openldap.org/). OpenLDAP is derived from University of Michigan
LDAP 3.3 Release.
OpenLDAP 2.0.27-Release 22 September 1998 LDAP_ADD(3)