suattr man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



suattr(1M)							    suattr(1M)

NAME
     suattr - Execute shell command with specified capabilities at specified
     MAC label

SYNOPSIS
     suattr  [ -M label ] [ -C capability set ] [ -m ][ arg ... ]

DESCRIPTION
     suattr allows root to execute a command using the given capabilities set
     and at the given MAC label.

     suattr is designed primarily for system initialization, to grant commands
     executed by startup scripts the privileges they need.  To use suattr, the
     real user id must be 0.

OPTIONS
     -C <capability set>
	  Execute the requested command with the specified capability set . If
	  capabilities are not configured on your system, this option is
	  silently ignored.

     -M <MAC label>
	  Execute the requested command at the specified label . The invoker
	  of su must be cleared to operate at the requested label. If that
	  label is different than the user's current label, stdin, stdout, and
	  stderr will be closed.  If MAC is not configured on your system,
	  this option is silently ignored.

     -m	  Execute the command with a moldy process label.

     The remaining arguments given on the command line are passed to /bin/sh.
     An arg of the form -c string executes string via the shell and an arg of
     -r gives the user a restricted shell.

EXAMPLES
	  /sbin/suattr -M dbadmin -c "killall syslogd"

     The command killall syslogd is executed at the dbadmin label.

	  /sbin/suattr -C CAP_SWAP_MGT+ip -c "/sbin/swap -m"

     Set the inherited and permitted capability set to	CAP_SWAP_MGP and
     execute swap.  This has the effect of granting swap the  capability to
     execute the swap(2) system call.

									Page 1

suattr(1M)							    suattr(1M)

	  /sbin/suattr -m -c "mv /tmp /.oldtmp"

     Has the effect of preserving the moldy bit when /tmp is moved.

FILES
     /etc/passwd     system's password file
     /etc/capability system's capability file
     /etc/clearance  user clearance label information file

SEE ALSO
     capability(4), clearance(4), newlabel(1m), chcap(1).

DIAGNOSTICS
     Unexpected results, including a system which hangs during startup, may
     occur if the user root is removed from /etc/passwd or if root's
     capability set or clearance range is altered.

									Page 2

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net