diff options
author | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
---|---|---|
committer | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
commit | 7c478bd95313f5f23a4c958a745db2134aa03244 (patch) | |
tree | c871e58545497667cbb4b0a4f2daf204743e1fe7 /usr/src/cmd/Adm | |
download | illumos-gate-7c478bd95313f5f23a4c958a745db2134aa03244.tar.gz |
OpenSolaris Launch
Diffstat (limited to 'usr/src/cmd/Adm')
-rw-r--r-- | usr/src/cmd/Adm/.proto | 28 | ||||
-rw-r--r-- | usr/src/cmd/Adm/Makefile | 91 | ||||
-rw-r--r-- | usr/src/cmd/Adm/adm | 26 | ||||
-rw-r--r-- | usr/src/cmd/Adm/at.deny | 3 | ||||
-rw-r--r-- | usr/src/cmd/Adm/cron.deny | 3 | ||||
-rw-r--r-- | usr/src/cmd/Adm/group | 19 | ||||
-rw-r--r-- | usr/src/cmd/Adm/project | 5 | ||||
-rw-r--r-- | usr/src/cmd/Adm/queuedefs | 2 | ||||
-rw-r--r-- | usr/src/cmd/Adm/root | 32 | ||||
-rw-r--r-- | usr/src/cmd/Adm/sun/Makefile | 69 | ||||
-rw-r--r-- | usr/src/cmd/Adm/sun/README | 87 | ||||
-rw-r--r-- | usr/src/cmd/Adm/sun/ioctl.syscon | 1 | ||||
-rw-r--r-- | usr/src/cmd/Adm/sun/passwd | 15 | ||||
-rw-r--r-- | usr/src/cmd/Adm/sun/release_info | 0 | ||||
-rw-r--r-- | usr/src/cmd/Adm/sun/shadow | 15 | ||||
-rw-r--r-- | usr/src/cmd/Adm/sys | 26 | ||||
-rw-r--r-- | usr/src/cmd/Adm/ttysrch | 60 | ||||
-rw-r--r-- | usr/src/cmd/Adm/zones-index | 29 |
18 files changed, 511 insertions, 0 deletions
diff --git a/usr/src/cmd/Adm/.proto b/usr/src/cmd/Adm/.proto new file mode 100644 index 0000000000..2e3929d377 --- /dev/null +++ b/usr/src/cmd/Adm/.proto @@ -0,0 +1,28 @@ +# +# Copyright 2005 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */ +cd $d +umask $m +$< diff --git a/usr/src/cmd/Adm/Makefile b/usr/src/cmd/Adm/Makefile new file mode 100644 index 0000000000..571fdc960b --- /dev/null +++ b/usr/src/cmd/Adm/Makefile @@ -0,0 +1,91 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +# Copyright 2003 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# ident "%Z%%M% %I% %E% SMI" +# + +CRON_ENT= adm root sys +CRON_LIB= .proto at.deny cron.deny queuedefs +ETC_SCRIPT= group project ttysrch +ZI_SPECIAL= zones-index +SUBDIRS= sun + +include ../Makefile.cmd + +all:= TARGET= all +install:= TARGET= install +clean:= TARGET= clean +clobber:= TARGET= clobber +lint:= TARGET= lint + +CROND= $(ROOT)/var/spool/cron +CRONTABD= $(ROOT)/var/spool/cron/crontabs +CRONLIBD= $(ROOT)/etc/cron.d +ETCZONESD= $(ROOT)/etc/zones +DIRS= $(CROND) $(CRONTABD) $(CRONLIBD) + +CRONTABS= $(CRON_ENT:%=$(CRONTABD)/%) +CRONLIBS= $(CRON_LIB:%=$(CRONLIBD)/%) +ETCSCRIPTS= $(ETC_SCRIPT:%=$(ROOTETC)/%) +ZISPECIALS= $(ETCZONESD)/index + +FILEMODE= 0644 +GROUP= sys + +$(CRONLIBD)/.proto := FILEMODE = 0744 +$(CRONTABD)/adm := FILEMODE = 0600 +$(CRONTABD)/sys := FILEMODE = 0600 +$(CRONTABD)/root := FILEMODE = 0600 + +.KEEP_STATE: + +all: $(CRON_ENT) $(CRON_LIB) $(ETC_SCRIPT) $(SUBDIRS) + +install: all $(DIRS) $(CRONTABS) $(CRONLIBS) $(ETCSCRIPTS) $(ETCZONESD) \ + $(SUBDIRS) + +$(CRONTABD)/% : % + $(INS.file) + +$(CRONLIBD)/% : % + $(INS.file) + +$(ETCZONESD): $(ZI_SPECIAL) + $(CP) -f $(ZI_SPECIAL) $(ZISPECIALS) + $(CHMOD) $(FILEMODE) $(ZISPECIALS) + +$(SUBDIRS): FRC + @cd $@; pwd; $(MAKE) $(MFLAGS) $(TARGET) + +$(DIRS): + $(INS.dir) + +FRC: + +clean: + +lint: + +clobber: diff --git a/usr/src/cmd/Adm/adm b/usr/src/cmd/Adm/adm new file mode 100644 index 0000000000..7b87b41507 --- /dev/null +++ b/usr/src/cmd/Adm/adm @@ -0,0 +1,26 @@ +#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +# The adm crontab file should contain startup of performance collection if +# the profiling and performance feature has been installed. +# diff --git a/usr/src/cmd/Adm/at.deny b/usr/src/cmd/Adm/at.deny new file mode 100644 index 0000000000..dda982def7 --- /dev/null +++ b/usr/src/cmd/Adm/at.deny @@ -0,0 +1,3 @@ +daemon +bin +nuucp diff --git a/usr/src/cmd/Adm/cron.deny b/usr/src/cmd/Adm/cron.deny new file mode 100644 index 0000000000..dda982def7 --- /dev/null +++ b/usr/src/cmd/Adm/cron.deny @@ -0,0 +1,3 @@ +daemon +bin +nuucp diff --git a/usr/src/cmd/Adm/group b/usr/src/cmd/Adm/group new file mode 100644 index 0000000000..20e9789527 --- /dev/null +++ b/usr/src/cmd/Adm/group @@ -0,0 +1,19 @@ +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: +nobody::60001: +noaccess::60002: +nogroup::65534: diff --git a/usr/src/cmd/Adm/project b/usr/src/cmd/Adm/project new file mode 100644 index 0000000000..615f5de2b5 --- /dev/null +++ b/usr/src/cmd/Adm/project @@ -0,0 +1,5 @@ +system:0:::: +user.root:1:::: +noproject:2:::: +default:3:::: +group.staff:10:::: diff --git a/usr/src/cmd/Adm/queuedefs b/usr/src/cmd/Adm/queuedefs new file mode 100644 index 0000000000..05c95b07e4 --- /dev/null +++ b/usr/src/cmd/Adm/queuedefs @@ -0,0 +1,2 @@ +a.4j1n +b.2j2n90w diff --git a/usr/src/cmd/Adm/root b/usr/src/cmd/Adm/root new file mode 100644 index 0000000000..aaa964d393 --- /dev/null +++ b/usr/src/cmd/Adm/root @@ -0,0 +1,32 @@ +#ident "%Z%%M% %I% %E% SMI" +# +# Copyright 2005 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +# The root crontab should be used to perform accounting data collection. +# +# +10 3 * * * /usr/sbin/logadm +15 3 * * 0 /usr/lib/fs/nfs/nfsfind +30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean diff --git a/usr/src/cmd/Adm/sun/Makefile b/usr/src/cmd/Adm/sun/Makefile new file mode 100644 index 0000000000..017f4ff8d4 --- /dev/null +++ b/usr/src/cmd/Adm/sun/Makefile @@ -0,0 +1,69 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +#ident "%Z%%M% %I% %E% SMI" +# +# Copyright (c) 1989, 1995, 1997 by Sun Microsystems, Inc. +# All Rights Reserved +# + +ETCFILES= ioctl.syscon passwd shadow motd +KVMFILES= README + +include ../../Makefile.cmd + +ROOTETCFILES= $(ETCFILES:%=$(ROOTETC)/%) +ROOTUSRKVMFILES= $(KVMFILES:%=$(ROOTUSRKVM)/%) + +FILEMODE= 0644 +OWNER= root +GROUP= sys + +$(ROOTETC)/shadow := FILEMODE = 400 + +.KEEP_STATE: + +all: $(ETCFILES) $(KVMFILES) + +install: all $(ROOTETCFILES) $(ROOTUSRKVMFILES) + +clean: + +lint: + +clobber: + +motd: FRC + @-$(ECHO) "rebuilding motd" + @$(RELEASE_BUILD)-$(ECHO) "Sun Microsystems Inc.\tSunOS $(RELEASE)\t$(VERSION)\t$(RELEASE_DATE)" > motd + @$(NOT_RELEASE_BUILD)-$(ECHO) "Sun Microsystems Inc.\tSunOS $(RELEASE)\t$(VERSION)\t`date +'%h. %d, %Y'`" > motd + @$(NOT_RELEASE_BUILD)-$(ECHO) $(DEV_CM) | sed -e "s/@(#)//" >> motd + @-$(CAT) release_info >> motd + +clean: + +lint: + +clobber: + $(RM) motd + +FRC: diff --git a/usr/src/cmd/Adm/sun/README b/usr/src/cmd/Adm/sun/README new file mode 100644 index 0000000000..f333944663 --- /dev/null +++ b/usr/src/cmd/Adm/sun/README @@ -0,0 +1,87 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +Elimination of /usr/kvm +======================= + +Copyright (c) 1995-2000 by Sun Microsystems, Inc. +All rights reserved. + +#ident "%Z%%M% %I% %E% SMI" + +As of Solaris 2.5, the /usr/kvm directory is no longer needed by the +operating environment. The mount point continues to be provided for +backward compatibility although all of the contents have been removed. + +In earlier releases, /usr/kvm contained the platform specific implementations +of programs and libraries. The interface to these platform specific +implementations was generally advertized to be in a platform independent +directory and a symbolic link was used to bind the advertized platform +independent interface to the platform specific implementation in /usr/kvm. + +Implementation Interface(s) + +/usr/kvm/adb /usr/bin/adb + +/usr/kvm/arch /usr/ucb/arch + + Note: Source Compatibility Package Component + +/usr/kvm/crash /usr/bin/mdb + + Note: Solaris Modular Debugger Guide describes how to + transition from crash(1M) to mdb(1). + +/usr/kvm/eeprom /usr/sbin/eeprom + +/usr/kvm/i286,i386,i486,i860,i86pc,iAPX286,m68k,mc68000,mc68010,mc68020, + mc68030,mc68040,sparc,sun,sun2,sun3,sun3x,sun4,sun4c,sun4d,sun4e, + sun4m,u370,u3b,u3b15,u3b2,u3b5,vax + /usr/bin/i286,i386,i486,i860,i86pc,iAPX286,m68k, + mc68000,mc68010,mc68020,mc68030,mc68040,sparc,sun, + sun2,sun3,sun3x,sun4,sun4c,sun4d,sun4e,sun4m,u370, + u3b,u3b15,u3b2,u3b5,vax + + Note: These are documented on the machid(1) manual + page. These are fully deprecated interfaces. + +/usr/kvm/libkvm.a /usr/lib/libkvm.a + + Note: /usr/lib/libkvm.a is no longer a component + of SunOS. + +/usr/kvm/libkvm.so.1 /usr/lib/libkvm.so.1 +/usr/kvm/libkvm.so /usr/lib/libkvm.so + + +The following platform specific objects were also delivered in previous +releases of SunOS. They are only of use with specific platforms and +it was always documented that the path to these objects was uncommitted. + +2.4 (and earlier) 2.5 + +/usr/kvm/cg14config /usr/platform/sun4m/sbin/cg14config sun4m only + +/usr/kvm/sxconfig /usr/platform/sun4m/sbin/sxconfig sun4m only + +/usr/kvm/prtdiag /usr/platform/sun4d/sbin/prtdiag sun4d only + diff --git a/usr/src/cmd/Adm/sun/ioctl.syscon b/usr/src/cmd/Adm/sun/ioctl.syscon new file mode 100644 index 0000000000..bf38cc8442 --- /dev/null +++ b/usr/src/cmd/Adm/sun/ioctl.syscon @@ -0,0 +1 @@ +2502:1805:bd:8a3b:0:3:1c:7f:15:4:0:0:0 diff --git a/usr/src/cmd/Adm/sun/passwd b/usr/src/cmd/Adm/sun/passwd new file mode 100644 index 0000000000..588dbd6b82 --- /dev/null +++ b/usr/src/cmd/Adm/sun/passwd @@ -0,0 +1,15 @@ +root:x:0:0:Super-User:/:/sbin/sh +daemon:x:1:1::/: +bin:x:2:2::/usr/bin: +sys:x:3:3::/: +adm:x:4:4:Admin:/var/adm: +lp:x:71:8:Line Printer Admin:/usr/spool/lp: +uucp:x:5:5:uucp Admin:/usr/lib/uucp: +nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico +smmsp:x:25:25:SendMail Message Submission Program:/: +listen:x:37:4:Network Admin:/usr/net/nls: +gdm:x:50:50:GDM Reserved UID:/: +webservd:x:80:80:WebServer Reserved UID:/: +nobody:x:60001:60001:NFS Anonymous Access User:/: +noaccess:x:60002:60002:No Access User:/: +nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/: diff --git a/usr/src/cmd/Adm/sun/release_info b/usr/src/cmd/Adm/sun/release_info new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/usr/src/cmd/Adm/sun/release_info diff --git a/usr/src/cmd/Adm/sun/shadow b/usr/src/cmd/Adm/sun/shadow new file mode 100644 index 0000000000..8c2c3def56 --- /dev/null +++ b/usr/src/cmd/Adm/sun/shadow @@ -0,0 +1,15 @@ +root::6445:::::: +daemon:NP:6445:::::: +bin:NP:6445:::::: +sys:NP:6445:::::: +adm:NP:6445:::::: +lp:NP:6445:::::: +uucp:NP:6445:::::: +nuucp:NP:6445:::::: +smmsp:NP:6445:::::: +listen:*LK*::::::: +gdm:*LK*::::::: +webservd:*LK*::::::: +nobody:*LK*:6445:::::: +noaccess:*LK*:6445:::::: +nobody4:*LK*:6445:::::: diff --git a/usr/src/cmd/Adm/sys b/usr/src/cmd/Adm/sys new file mode 100644 index 0000000000..c258c7dc19 --- /dev/null +++ b/usr/src/cmd/Adm/sys @@ -0,0 +1,26 @@ +#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +# The sys crontab should be used to do performance collection. See cron +# and performance manual pages for details on startup. +# diff --git a/usr/src/cmd/Adm/ttysrch b/usr/src/cmd/Adm/ttysrch new file mode 100644 index 0000000000..ef3bd2e4ed --- /dev/null +++ b/usr/src/cmd/Adm/ttysrch @@ -0,0 +1,60 @@ +# +# Copyright 2005 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +#ident "%Z%%M% %I% %E% SMI" +# +# This file is used by ttyname(3C) to minimize search time +# during attempts to determine the name of a terminal device. +# +# This is done by providing the names of directories which +# are most likely to contain device entries for terminal +# devices. These directories will be searched in the order +# listed prior to an exhaustive search of the rest of /dev. +# +# Each line contains the name of a directory (which must +# begin with "/dev") and (optionally) a set of flags which +# modify the criteria used to determine a match. By default, +# an exact match requires that the major/minor device number +# (the M flag), the file system identifier (the F flag), and +# the inode number (the I flag) all match. Normally, a partial +# match on the major/minor device and the file system identifier +# is accepted only after exhausting all entries under /dev. +# By specifying only the M and F flags, an exact match will +# be accepted regardless of the value of the inode number as +# soon as it is found. This is especially useful for cloned +# devices, which generally will not match inode numbers. +# +# For additional information see ttysrch(4). +# +# EXAMPLE: +# +# /dev/slan MF +# +# This would improve performance for Starlan network connections +# if all Starlan network clone device entries were contained +# in the /dev/slan directory. +# +/dev/pts +/dev/term +/dev/zcons diff --git a/usr/src/cmd/Adm/zones-index b/usr/src/cmd/Adm/zones-index new file mode 100644 index 0000000000..91fe7a9421 --- /dev/null +++ b/usr/src/cmd/Adm/zones-index @@ -0,0 +1,29 @@ +# ident "%Z%%M% %I% %E% SMI" +# Copyright 2005 Sun Microsystems, Inc. All rights reserved. +# Use is subject to license terms. +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License, Version 1.0 only +# (the "License"). You may not use this file except in compliance +# with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# +# DO NOT EDIT: this file is automatically generated by zoneadm(1M) +# and zonecfg(1M). Any manual changes will be lost. +# +global:installed:/ |