Archivo de la categoría: Nix

Basic BASH Shell

-bash-3.00# who pedro pts/1 Aug 20 12:35 (172.16.2.80) pedro pts/2 Aug 20 13:06 (172.16.2.80) -bash-3.00# w 2:32pm up 2:02, 2 users, load average: 0.46, 0.46, 0.42 User tty login@ idle JCPU PCPU what pedro pts/1 12:35pm 50 21:16 14 sysbench –test=oltp –oltp-tabl pedro pts/2 1:06pm 1 -bash Current Terminal Session: -bash-3.00# tty /dev/pts/2 -bash-3.00# w/who… Leer más: Basic BASH Shell »

fcinfo HBA ports

A handy Solaris 10 command: fcinfo Filed under: Solaris, Storage — christianbilien @ 4:14 pm One the most useful new command I found in Solaris 10 is fcinfo, a command line interface that will display information on HBA ports on a host, but also many useful bits of information on connected storage remote port WWN,… Leer más: fcinfo HBA ports »

Using SMF Property to Allow Remote Access

The following sequence of commands allows remote access to WBEM-based applications, including the Solaris Management Console. # svccfg -s svc:/application/management/wbem setprop options/tcp_listen = true # svcadm refresh svc:/application/management/wbem

###Group Management###

groupadd / groupmod / newgrp / groups The file that stores group information is: /etc/group bash-3.00# cat /etc/group root::0: other::1:root bin::2:root,daemon sys::3:root,bin,adm adm::4:root,daemon uucp::5:root mail::6:root tty::7:root,adm lp::8:root,adm nuucp::9:root staff::10: daemon::12:root sysadmin::14: smmsp::25: gdm::50: webservd::80: postgres::90: nobody::60001: noaccess::60002: nogroup::65534: mysql::100: sasl::101: columns: group_name : optional_password : GID : list_ofmembers (comma-delimeted) Groups are basically use to restric… Leer más: ###Group Management### »

SMF INET Admin

###### Service Management with ‘inetadm’ ######### -bash-3.00# which inetadm /usr/sbin/inetadm inetadm controls INETD services Note: INETD is a super-server which proxies connections to servers ( such as telnet ) client -> INETD -> telnet Note: INETD services are traditionally defined in /etc/inetd.conf Telnet is enabled by default -bash-3.00# inetadm |grep online | wc -l 19… Leer más: SMF INET Admin »

SMF Service ADMIN

-bash-3.00# which svcadm /usr/sbin/svcadm -bash-3.00# svcadm Usage: svcadm [-v] [cmd [args … ]] svcadm enable [-rst] … – enable and online service(s) svcadm disable [-st] … – disable and offline service(s) svcadm restart … – restart specified service(s) svcadm refresh … – re-read service configuration svcadm mark [-It] … – set maintenance state svcadm clear… Leer más: SMF Service ADMIN »

«Best Practices» for an Internet Webserver

__________________________________________________________ The following a set of «Best Practices» for an Internet Webserver, based on my own experience and advisory J-042 from the U.S. Department of Energy Computer Incident Advisory Capability (CIAC) __________________________________________________________ PROBLEM: Public web servers continue to be attractive targets for hackers seeking to embarrass organizations or promote a political agenda. Good security practices… Leer más: «Best Practices» for an Internet Webserver »

Primary SMF Utilities

3 Primary SMF Utilities: 1. svcs – lists services and provides additional info 2. svcadm – permits interation with services, including state transitions. 3. svccfg – permits interaction with service configuration database bash-3.00# svcs -a |less STATE STIME FMRI legacy_run 14:43:50 lrc:/etc/rc2_d/S10lu legacy_run 14:43:50 lrc:/etc/rc2_d/S20sysetup legacy_run 14:43:50 lrc:/etc/rc2_d/S40llc2 legacy_run 14:43:50 lrc:/etc/rc2_d/S42ncakmod legacy_run 14:43:51 lrc:/etc/rc2_d/S47pppd legacy_run… Leer más: Primary SMF Utilities »