02-10-2012
any special characters in the gecos attribute?
I had the same problem on our Sol10 servers, the "getent passwd" command stopped after 4300 entries (from 12.000 entries). But the getent command on Sol8 and Linux clients still worked well.
I found out, that the reason for this behaviour was in my case a ":" character in the gecos attribute string of one user on the Oracle Directory Server. This is a bug in the LDAP client implementation of Solaris10.
10 More Discussions You Might Find Interesting
1. Solaris
I have a very simple c++ program like:
> cat easy_gcc.cc
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
int debugging = 1;
int main()
{
printf ("This is a... (2 Replies)
Discussion started by: miltony123
2 Replies
2. Solaris
Hi
I compiled an executable on Solaris 10 which creates semaphore ( semget)
but it didn't work on solaris 9 , while it is executing sucessfully on solaris 10. It is throwing the system error that Invalid arguments ( system error 22) on solaris 9.
the ldd for the executable on two servers is as... (4 Replies)
Discussion started by: ash_bit2k2
4 Replies
3. UNIX for Dummies Questions & Answers
Hi
Got 2 solaris boxes - one uses set -o vi happily (put it in .profile)
The other reports: -o: bad option(s)
Both are solaris 9 and both users have $SHELL set to /bin/ksh
Any ideas??
Thanks (4 Replies)
Discussion started by: robbien
4 Replies
4. Solaris
HI,
When I tried to use the nc or netcat command in SOLARIS 10 server, it says
bash: nc: command not found
Any package needs to be installed for this command to work in SOL 10?:
Please someone let me know how to resolve this issue. (1 Reply)
Discussion started by: mgmk.84
1 Replies
5. Solaris
Hi All, I have a problem with FTP service on Solaris 10.
Whenever I try to FTP to one machine locally (ftp localhost) or from other machine I don't get any response, I see the ftp service on the machine is online and listening to port 21 but ftp is not responding.
Also it seems i can't... (16 Replies)
Discussion started by: belal84
16 Replies
6. Solaris
Hello
I've installed Solaris 11 on Sparc T4-1,
I tried to launch IPS GUI:
# packagemanager
/usr/lib/python2.6/vendor-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
Unable to initialize gtk
could not open... (12 Replies)
Discussion started by: samer.odeh
12 Replies
7. Shell Programming and Scripting
korn shell script on Solaris
getent hosts <hostname> returns
IP FQDN
But I just want the output to be like this
<hostname> IP
things I have tried so far
getent hosts <hostname> |awk '{print $2,$1}'
using awk and substr
getent hosts <hostname> |nawk '{print substr($2,1,5)}'
... (1 Reply)
Discussion started by: snoman1
1 Replies
8. UNIX for Dummies Questions & Answers
I'm typing "id <user's id>" and its returning a different UID that what is defined in our administration system. Where does id / getent query and where is it configured to query? I'm guessing it queries the local /etc/passwd file first, and then if it doesn't find anything it would query LDAP... (2 Replies)
Discussion started by: MaindotC
2 Replies
9. Solaris
Hi All, im a bit new to Solaris 10 iv been working on Redhat and cant seem to get the sudo working on Solaris 10:D
Iv installed the below packages via pkgadd command:
gcc-4.7.2-sol10-x86-local
libiconv-1.14-sol10-x86-local
libintl-3.4.0-sol10-x86-local
sudo-1.8.13-sol10-x86-local
... (1 Reply)
Discussion started by: SolarisRSA
1 Replies
10. Solaris
hi,
I enabled bsm modules (/etc/security/bsmconv) and rebooted Solaris 10. But service is going into maintenance state. I rebooted server and I see one error saying "sys/c2audit:audit_kssl() not defined properly". I am not sure, what it is indicating and how it should be fixed. Please suggest, how... (5 Replies)
Discussion started by: solaris_1977
5 Replies
getent(1M) getent(1M)
NAME
getent - get entries from administrative database
SYNOPSIS
getent database [key...]
getent gets a list of entries from the administrative database specified by database. The information generally comes from one or more of
the sources that are specified for the database in /etc/nsswitch.conf.
database is the name of the database to be examined. This can be passwd, group, hosts, ipnodes, services, protocols, ethers, project, net-
works, or netmasks. For each of these databases, getent uses the appropriate library routines described in getpwnam(3C), getgrnam(3C),
gethostbyaddr(3NSL), gethostbyname(3NSL), getipnodebyaddr(3SOCKET), getipnodebyname(3SOCKET), getservbyname(3SOCKET), getprotoby-
name(3SOCKET), ethers(3SOCKET), getprojbyname(3PROJECT) and getnetbyname(3SOCKET), respectively.
Each key must be in a format appropriate for searching on the respective database. For example, it can be a username or numeric-uid for
passwd; hostname or IP address for hosts; or service, service/protocol, port, or port/proto for services.
getent prints out the database entries that match each of the supplied keys, one per line, in the format of the matching administrative
file: passwd(4), group(4), project(4), hosts(4), ipnodes(4), services(4), protocols(4), ethers(3SOCKET), networks(4), or netmasks(4). If no
key is given, all entries returned by the corresponding enumeration library routine, for example, getpwent() or gethostent(), are printed.
Enumeration is not supported on ipnodes.
The following exit values are returned:
0 Successful completion.
1 Command syntax was incorrect, an invalid option was used, or an internal error occurred.
2 At least one of the specified entry names was not found in the database.
3 There is no support for enumeration on this database.
/etc/nsswitch.conf name service switch configuration file
/etc/passwd password file
/etc/group group file
/etc/inet/hosts IPv4 host name database
/etc/inet/ipnodes IPv4 and IPv6 host name database
/etc/services Internet services and aliases
/etc/project project file
/etc/protocols protocol name database
/etc/ethers Ethernet address to hostname database or domain
/etc/networks network name database
/etc/netmasks network mask database
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
ethers(3SOCKET), getgrnam(3C), gethostbyaddr(3NSL), gethostbyname(3NSL), gethostent(3NSL), getipnodebyaddr(3SOCKET), getipnodeby-
name(3SOCKET), getnetbyname(3SOCKET), getprojbyname(3PROJECT), getprotobyname(3SOCKET), getpwnam(3C), getservbyname(3SOCKET), group(4),
hosts(4), ipnodes(4), netmasks(4), networks(4), nsswitch.conf(4), passwd(4), project(4), protocols(4), services(4), attributes(5)
1 Feb 2005 getent(1M)