Operating System - HP-UX
1833783 Members
2326 Online
110063 Solutions
New Discussion

sys -lu do I need to install it?

 
anilezfa
Advisor

sys -lu do I need to install it?

I want a user to be able to run sys -lu. When I do
#whereis sys
sys:

should I install anything else in order to have sys? I'm running hpux 11.11 version. Please help me.
2 REPLIES 2
Steve Steel
Honored Contributor

Re: sys -lu do I need to install it?

Hi


I have seen a lot of HP-UX but do not know this . Where did you find a reference to it.



Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
anilezfa
Advisor

Re: sys -lu do I need to install it?

I was bale to use sys -lu on one of my server.

# whereis sys
sys: /usr/bin/sys /usr/local/bin/sys /usr/local/man/man1/sys.1

# man sys
SYS(1) SYS(1)
GJD RR.LL YY/MM/DD

NAME
sys - an alternative to the su and su2 commands

SYNOPSIS
sys [-u username] [-g groupname] [-n niceincr] [-r rtprio] cmd

or

sys [-u username] [-g groupname] [-n niceincr] [-r rtprio] [-c cmd]

or

sys -l [-u username] [-g groupname] [-n niceincr] [-r rtprio]

DESCRIPTION
The sys command runs the specified command as user username, group, groupname, real time priority rtprio, and with niceincr added to the initial nice value.

If the second form is used, the shell specified by $SHELL is run, or /bin/sh if $SHELL isn't set. If the -c option is given, it is passed to the shell. The current environment is left unchanged.

If the third form is used, the a login shell specified by $SHELL is
run, or /bin/sh if $SHELL isn't set.

The user's login name is checked against a list of authorized users in
the file /usr/local/lib/sysuser, and access is denied if the user is
not on the list. An appropriate entry is made in the syslog using
facility auth and level info (see syslogd(1M)) in either case. Note
that Solaris systems do not log these types of messages by default.
See syslog.conf(4) for details.