04-03-2008
/etc/inet/hosts modification question
HI,
IF i modify /etc/inet/hosts file, do I need to reboot the box?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
When I scan my linux box for open ports, i have several of them, but they shouldn't be open. I removed the lines for them in /etc/services, and left just stuff like telnet, ssh, ftp. Why are they still open? I've restarted the network, and I've even restarted my box, but they still apear as open.... (4 Replies)
Discussion started by: sTorm
4 Replies
2. UNIX for Dummies Questions & Answers
Hi!
Im trying to use host.allow & host.deny to resrtic access to my sun machine, but it doesnt seem to work... I want to allow full access from certain IPīs (ssh,http,ftp,etc...) but deny all kind of conections from outsideworld, the way that im doing that is:
hosts.allow
ALL:127.0.0.1... (2 Replies)
Discussion started by: Sorrento
2 Replies
3. Solaris
Hi there
I have created a flash archive using flarcreate and rolled out via jumpstart and everything seems fine, however when I roll out the archive to another box, everything is fine apart from the /etc/hosts file which is the same as the masters hosts file (i.e. it still has the original... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
4. Solaris
I was trying to remove a symbolic link of /etc/hosts to /etc/inet/hosts
well i forgot the command and in the /etc directory i did unlink inet and now i can not get into inet and it does not exist in /etc
1) what do i do to fix the inet directory
2) how do i link /etc/hosts to... (1 Reply)
Discussion started by: deaconf19
1 Replies
5. Solaris
Hiii... Every One.....
I want to know about : /etc/init.d/nddconfig file, and all it's entries .And how this file controles parameters of OS Hardening......
If any one have related materials then plz HELP........ (2 Replies)
Discussion started by: prashantshukla
2 Replies
6. Solaris
I have two Unix (Solaris) hosts that are both attached to our SAN. They are both presented with the same luns.
What I want to do is have the same UFS filesystem mounted on both hosts at the same time. What I am trying to accomplish is creating a zone that will reside on both hosts but only... (2 Replies)
Discussion started by: beaker457
2 Replies
7. Solaris
I was told its better to run daemon instead of cron job to sync time.
but which approach is less resource hungry? (1 Reply)
Discussion started by: orange47
1 Replies
8. AIX
hi all
just installed the netsec.options.tcpwrapper from expansion pack, which used to be a rpm, for my aix 6.1 test box.
it is so unpredictable. i set up the hosts.deny as suggested for all and allow the sshd for specific ip addresses/hostnames.
the tcpdchk says the hosts allowed and... (0 Replies)
Discussion started by: wf201626
0 Replies
9. IP Networking
Old skool UNIX and Linux geek here, but newbie to the world of DNS and bind. I've recently been tasked with replacing our DNS infrastructure, currently on Windows, with a RHEL based solution. And I assume that means using bind, which I've not used before. Here's my question:
Suppose our company... (3 Replies)
Discussion started by: lupin..the..3rd
3 Replies
10. Solaris
Am trying to copy a tar file onto a series of remote hosts and untar it at the destination. Need to do this without having to do multiple ssh.
Actions to perform within a single ssh session via shell script
- copy a file
- untar at destination (remote host)
OS : Linux RHEL6 (3 Replies)
Discussion started by: sankasu
3 Replies
LEARN ABOUT LINUX
sys-unconfig
sys-unconfig(1M) System Administration Commands sys-unconfig(1M)
NAME
sys-unconfig - undo a system's configuration
SYNOPSIS
/usr/sbin/sys-unconfig
DESCRIPTION
The sys-unconfig command is used to restore a system's configuration to an "as-manufactured" state, ready to be reconfigured again. The
system's configuration consists of hostname, Network Information Service (NIS) domain name, timezone, IP address, IP subnet mask, and root
password. This operation is the inverse of those performed by the sysidnet(1M), sysidns(1M), and sysidsys(1M) programs run at boot. See
sysidtool(1M).
sys-unconfig does the following:
o Saves current /etc/inet/hosts file information in /etc/inet/hosts.saved.
o If the current /etc/vfstab file contains NFS mount entries, saves the /etc/vfstab file to /etc/vfstab.orig.
o Restores the default /etc/inet/hosts file.
o Removes the default hostname in /etc/hostname.interface files for all interfaces configured when this command is run. To determine
which interfaces are configured, run the command 'ifconfig-a'. The /etc/hostname.interface files corresponding to all of the inter-
faces listed in the resulting output, with the exception of the loopback interface (lo0), will be removed.
o Removes the default domainname in /etc/defaultdomain.
o Restores the timezone to PST8PDT in /etc/TIMEZONE.
o Disables the Network Information Service (NIS) and Network Information Service Plus (NIS+) if either NIS or NIS+ was configured.
o Removes the file /etc/inet/netmasks.
o Removes the file /etc/defaultrouter.
o Removes the password set for root in /etc/shadow.
o Removes the file /etc/.rootkey.
o Executes all system configuration applications. These applications are defined by prior executions of a sysidconfig -a application.
(See sysidconfig(1M)). When sys-unconfig is run, all system configuration applications are passed one argument, -u.
o Removes the file /etc/resolv.conf.
o Disables LDAP by removing /var/ldap/ldap_client_cache, /var/ldap/ldap_client_file, /var/ldap/ldap_client_cred, and
/var/ldap/cachemgr.log.
o Regenerates keys for sshd(1M).
When sys-unconfig is finished, it performs a system shutdown. sys-unconfig is a potentially dangerous utility and can only be run by the
super user.
FILES
/etc/default/init process control initialization
/etc/defaultdomain
/etc/defaultrouter
/etc/hostname.interface
/etc/inet/hosts host name database
/etc/inet/netmasks network mask database
/etc/nodename
/etc/.rootkey super-user's secret key
/etc/shadow shadow password file
/etc/vfstab virtual file system table
/var/nis/NIS_COLD_START
/var/yp/binding/*/ypservers
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWadmap |
+-----------------------------+-----------------------------+
SEE ALSO
init(1M), kdmconfig(1M), sshd(1M), sysidconfig(1M), sysidtool(1M), hosts(4), netmasks(4), shadow(4), attributes(5)
NOTES
sys-unconfig is not available on diskless clients.
SunOS 5.10 4 Jun 2004 sys-unconfig(1M)