This package is no longer maintained, but
setstate command is now included in
idtools is a set of tools for working with user and group IDs. These tools can be used to construct login services or other services (typically in the form of a simple shell script) that must prompt for a username and password. They can also be used in other situations that require similar process-state changes.
This package is discussed on the prjware list. New releases are announced on the prjware-announce list.
idtools is devoid of warranty and is distributed under the GNU General Public License, version 2. But that doesn't mean it's necessarily a good idea for you to distribute modified versions. (That includes repackaging.) I'd like to know if you plan to do that.
This link always points to the latest version (currently 2006.09.30).
Older versions are published for historical interest.
To build idtools, you need Laurent Bercot's
package and Bruce Guenter's
conf-compile/depend_* as necessary during
slashpackage is a good thing. You can
read more about it
here. If you don't already have
/package, create it (on any
filesystem you like, as long as it's accessible by the name
# mkdir -p /usr/local/package # ln -s /usr/local/package / # chmod +t /package/.
# sp-install idtools-VERSION.tar.bz2
Or, if you like to do things manually, unpack the tarball and run
# cd /package # bunzip2 < /path/to/idtools-VERSION.tar.bz2 | > tar -xpf - # cd admin/idtools-VERSION # package/install
more detailed instructions.
cvmloginprogram is a login program that authenticates via a CVM module.
setstateprogram modifies its process state and executes a given command.
cvmlogindoesn't build on Solaris with the default
conf-compile/configuration. Workaround: add "
-lsocket -lnsl" to the end of the
gcccommand line in
cvmlogindoesn't build with the latest
bglibs. Workaround: add "
compile/host/bglibs/lib/libbg-crypto.a" to the end of the
gcccommand line in
setstate -Lfails due to the process already being a session leader, it leaves a stray process sleeping forever.
cvmsudobe a better idea?
cvmlogin(or, better, a separate program) do
getpwnam, etc., that reads a directory structure instead of
/etc/passwd. Hmm, somebody beat me to it. (See also...)