5 More Discussions You Might Find Interesting
1. Solaris
Hello All,
Below I'm posting a question regarding a possible Solaris 10 310-202 exam question that I think is wrong. I do not agree that the answer is B. The inetadm command does not even have a flag/option of -a. Can anyone provide any assistance?
Thanks!
You've tried connecting to... (2 Replies)
Discussion started by: VeeDub78
2 Replies
2. AIX
Hi AIX Experts,
i need your help in this issue,
i want to change user id of xyz user from 200 to 202
note that this xyz user owner for many files and directories
so my issue how to change the user id from 200 to 202 and the files still under his ownership
this is an urgent work ,... (4 Replies)
Discussion started by: sh_day1
4 Replies
3. Solaris
hi can any1 pls ans these questions
22. Which two statements about the functionality of the syslogd daemon are true? (Choose two)
A. Error messages can only be logged locally in a system log.
B. The kernel, daemons, and syslogd each write directly to a system log.
C. Syslogd can write... (1 Reply)
Discussion started by: azeem_3001
1 Replies
4. Solaris
Hello,
I'm going to be studying for my Solaris 9 System Administrator Certification and wondered if anyone had taken the exams and could recommend some good study guides / crams / books.
Cheers, (8 Replies)
Discussion started by: unrealuk
8 Replies
5. Solaris
I think I am ready for the 310-014 exam but not quite ready for the 310-015 exam as I still have a lot of study and practice to do to prepare for it..
Do most people sit the 014 exam and then prepare for the second exam?
Any advice on how to tackle these is appreciated.. (3 Replies)
Discussion started by: frustrated1
3 Replies
LEARN ABOUT REDHAT
getuserattr
getuserattr(3SECDB) getuserattr(3SECDB)
NAME
getuserattr, getusernam, getuseruid, free_userattr, setuserattr, enduserattr, fgetuserattr - get user_attr entry
SYNOPSIS
cc [ flag... ] file... -lsecdb -lsocket -lnsl [ library... ]
#include <user_attr.h>
userattr_t *getuserattr(void);
userattr_t *getusernam(const char *name);
userattr_t *getuseruid(uid_t uid);
void free_userattr(userattr_t *userattr);
void setuserattr(void);
void enduserattr(void);
userattr_t *fgetuserattr(FILE *f);
The getuserattr(), getusernam(), and getuseruid() functions each return a user_attr(4) entry. Entries can come from any of the sources
specified in the nsswitch.conf(4) file. The getuserattr() function enumerates user_attr entries. The getusernam() function searches for a
user_attr entry with a given user name name. The getuseruid() function searches for a user_attr entry with a given user ID uid. Successive
calls to these functions return either successive user_attr entries or NULL.
The fgetuserattr() function does not use nsswitch.conf but reads and parses the next line from the stream f. This stream is assumed to have
the format of the user_attr files.
The free_userattr() function releases memory allocated by the getusernam(), getuserattr(), and fgetuserattr() functions.
The internal representation of a user_attr entry is a userattr_t structure defined in <user_attr.h> with the following members:
char *name; /* name of the user */
char *qualifier; /* reserved for future use */
char *res1; /* reserved for future use */
char *res2; /* reserved for future use */
kva_t *attr; /* list of attributes */
The setuserattr() function "rewinds" to the beginning of the enumeration of user_attr entries. Calls to getusernam() may leave the enumer-
ation in an indeterminate state, so setuserattr() should be called before the first call to getuserattr().
The enduserattr() function may be called to indicate that user_attr processing is complete; the library may then close any open user_attr
file, deallocate any internal storage, and so forth.
The getuserattr() function returns a pointer to a userattr_t if it successfully enumerates an entry; otherwise it returns NULL, indicating
the end of the enumeration.
The getusernam() function returns a pointer to a userattr_t if it successfully locates the requested entry; otherwise it returns NULL.
USAGE
The getuserattr() and getusernam() functions both allocate memory for the pointers they return. This memory should be deallocated with the
free_userattr() function.
Individual attributes can be referenced in the attr structure by calling the kva_match(3SECDB) function.
WARININGS
Because the list of legal keys is likely to expand, code must be written to ignore unknown key-value pairs without error.
/etc/user_attr extended user attributes
/etc/nsswitch.conf configuration file lookup information for the name server switch
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
getauthattr(3SECDB), getexecattr(3SECDB), getprofattr(3SECDB), user_attr(4), attributes(5)
31 Mar 2005 getuserattr(3SECDB)