Node:SOLARIS 2, Neste:FreeBSD, Forrige:SUN (4.1.*), Opp:FAQS and Tips
/local/etc/rc.local
which
looks something like this:
# # rc.local # PATH=/local/gnu/bin:/bin:/usr/bin:/usr/sbin; export PATH #!/bin/sh if [ "`hostname`" = "net-server" ]; then echo Starting WWW server /local/httpd_1.4/httpd -d /local/httpd_1.4 echo Starting GNU finger server /local/etc/fingerd fi echo Starting ypbind /usr/lib/netsvc/yp/ypbind echo Adding a default route and flushing table route -f add default my-gateway 1 echo Starting xdm /local/bin/start-xdm
Now add an entry to your cfengine.conf
file like this
solaris:: { /etc/rc3.d/S99rc-local AutoCreate AppendIfNoSuchLine "exec sh /local/etc/rc.local" }
/tmp
without
the sticky bit set, so that any user can delete any files in /tmp
.
It also means that a race condition can occur in the kernel which
can give away root access to any user!
files: /tmp mode=1777 action=fixdirs
/etc/shells
.
Add a line something like this:
editfiles: { /etc/shells AppendIfNoSuchLine "/local/bin/tcsh" }
tcsh
prints an error message on startup and will not read my
.cshrc
file.
tcsh
can't understand it. Add a line
disable: /etc/.login type=file
You might want to replace this with a link to your own file.
/etc/defaultrouter
with the IP
address of your local gateway, if you don't intend to run your
system as a router. For instance:
files: solaris:: /etc/defaultrouter o=root g=other m=644 act=touch editfiles: solaris:: { /etc/defaultrouter AppendIfNoSuchLine "xxx.xxx.xxx.1" }
where xxx.xxx.xxx.1
is the IP address of your gateway.
/etc/system
has probably been corrupted. If this
file does not exist, solaris establish the kernel properly
and will not fork any processes. Things usually die early
on in the boot process. This causes the side effect that the
first fork the system needs to perform (to check the disk file
systems) fails and misinterprets the reason for failure of the
command. This makes it look as though something is wrong with
the disks. Add a line:
files: /etc/system o=root g=root m=0644 action=touch
$(root)/filename
and set $(root)
to ""
or "/a"
depending on context?
That way you could the above without screwing up other things which
might be needed. You can switch off the locks with -K
. And you
could override the vfstab
location for solaris in the resource file.