9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Requirement:
Under fuse application we have placeholders called containers;
Every container has their logs under:
<container1>/data/log/fuse.log
<container1>/data/log/fuse.log.1
<container1>/data/log/fuse.log.XX
<container2>/data/log/fuse.log... (6 Replies)
Discussion started by: Arjun Goswami
6 Replies
2. Linux
Hello all,
We would be migrating from HP-UX 11 to Red Hat Linux 5 shortly. On HP-UX we've been using RCS (Revision Control system). On RHEL I think there is an equivilant utility called Subversion..Is there a way to export the current contents from RCS in HP-UX and import it into Linux's... (2 Replies)
Discussion started by: luft
2 Replies
3. UNIX for Dummies Questions & Answers
Hi there, I am trying to utalise RCS on unix. I am including the following tags in my source code for RCS to populate based on rlog.
#$Author:$
#$Log:$
Everything i have read on the "co" man page of RCS indicates that the lines from the Log will be populated in the source file using the same... (0 Replies)
Discussion started by: cdoyle
0 Replies
4. UNIX for Dummies Questions & Answers
Hi guys,
Why is creating an RCS archive in /etc a "good thing"?? (1 Reply)
Discussion started by: lemon_06
1 Replies
5. Shell Programming and Scripting
Hi
Why is creating an RCS archive in /etc a "good thing"?
Hi
Why is creating an RCS archive in /etc a "good thing"? (2 Replies)
Discussion started by: scofiled83
2 Replies
6. UNIX for Dummies Questions & Answers
does anyone know if RCS is part of UNIX? Does a copy come with all UNIX systesm? Is it a seperate program? Is it purchased? Or is RSC a freeware program downloaded for everyone to use? (3 Replies)
Discussion started by: rtoba
3 Replies
7. UNIX for Advanced & Expert Users
I am not really sure whether i am posting this question in the right forum.....Can someone tell me why I should go for a rational Clearcase version controller when I can use the version controllers 'rcs' or 'sccs' available in UNIX. I want to know the advantage of Rational over these two. Also, I... (2 Replies)
Discussion started by: Abhishek Ghose
2 Replies
8. UNIX for Dummies Questions & Answers
I am a new user. Can anyone tell me where I can get documentation on the RCS feature? Thanks (1 Reply)
Discussion started by: Terry
1 Replies
9. UNIX for Dummies Questions & Answers
One of our DBAs is requesting RCS be installed on one of our boxes...what is it? Where do I get it from? Thanks. (2 Replies)
Discussion started by: debaire
2 Replies
NSS-MYHOSTNAME(8) nss-myhostname NSS-MYHOSTNAME(8)
NAME
nss-myhostname - Provide hostname resolution for the locally configured system hostname.
SYNOPSIS
nss-myhostname.la
DESCRIPTION
nss-myhostname is a plugin for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing hostname resolution
for the locally configured system hostname as returned by gethostname(2). Various software relies on an always-resolvable local hostname.
When using dynamic hostnames, this is usually achieved by patching /etc/hosts at the same time as changing the host name. This however is
not ideal since it requires a writable /etc file system and is fragile because the file might be edited by the administrator at the same
time. nss-myhostname simply returns all locally configured public IP addresses, or, if none are configured, the IPv4 address 127.0.0.2
(which is on the local loopback) and the IPv6 address ::1 (which is the local host) for whatever system hostname is configured locally.
Patching /etc/hosts is thus no longer necessary.
To activate the NSS modules, myhostname has to be added to the line starting with "hosts:" in /etc/nsswitch.conf
It is recommended to put myhostname last in the nsswitch.conf line to make sure that this mapping is only used as fallback, and any DNS or
/etc/hosts based mapping takes precedence.
EXAMPLE
# /etc/nsswitch.conf
passwd: compat
group: compat
shadow: compat
hosts: files dns myhostname
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
To test, use glibc's getent tool:
$ getent ahosts `hostname`
::1 STREAM omega
::1 DGRAM
::1 RAW
127.0.0.2 STREAM
127.0.0.2 DGRAM
127.0.0.2 RAW
In this case the local hostname is omega.
SEE ALSO
systemd(1), systemd-logind.service(8), logind.conf(5), loginctl(1), pam.conf(5), pam.d(5), pam(8), pam_loginuid(8)
systemd 208 NSS-MYHOSTNAME(8)