does anyone know in solaris 10, can you lock an account if the user does not change their password within a certain amount of time?
What i want to do is, if a user doesnt change their password within 90 days, i want the account locked.
This is similar to the redhat linux passwd -i command.
... (3 Replies)
I am using Net::SSH::Expect to connect to the device(iLO) with SSH. After the $ssh->login() I'm able to view the prompt, but not able to send any coommands.
With the putty I can connect to the device and execute the commands without any issues.
Here is the sample script
my $ssh =... (0 Replies)
Hi,
I want to use ssh to add a register key on remote ssh server. Since there are space characters in my register key string, it always failed. If there is no space characters in the string, it worked fine. The following is what I have tried. It seems that "ssh" command doesn't care about double... (9 Replies)
I have write a script which contains
ssh -p 12345 dcplatform@10.125.42.50
ssh 127.0.0.1 -p 5555 "$CMD"
ssh root@$GUEST_IP "$CMD"
before I use public key, it works well, now I want to change to "expect", BUT I don't want to change above code and "parameter position"
I can post a... (1 Reply)
I'm trying to setup a link between my home pc (work-machine) and a server at work (tar-machine) that is behind a gateway (hop-machine) and not directly accessible.
my actions:
work-machine$ ssh -L 1234:tar-machine:22 hop-machine
work-machine$ ssh -p 1234 user@127.0.0.1
- shh access on... (1 Reply)
Hi,
I want to validate ssh connection one after one for multiple servers..... password less keys already setup but now i want to validate if ssh is working fine or not...
I have .sh script like below and i have servers.txt contains all the list of servers
#/bin/bash
for host in $(cat... (3 Replies)
Hi,
I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step:
#!/bin/bash
# LAN SSH KEYS DISCOVERY SCRIPT
</etc/passwd \
grep /bin/bash |
cut -d: -f6 |
sudo xargs -i -- sh -c '
&& cat... (11 Replies)
Discussion started by: syrius
11 Replies
LEARN ABOUT OPENDARWIN
pkginfo
pkginfo(1) User Commands pkginfo(1)NAME
pkginfo - display software package information
SYNOPSIS
pkginfo [-q | -x | -l] [-p | -i] [-r] [-a arch] [-v version] [-c category...] [pkginst...]
pkginfo [-d device] [-R root_path] [-q | -x | -l] [-a arch] [-v version] [-c category...] [pkginst...]
DESCRIPTION
pkginfo displays information about software packages that are installed on the system (with the first synopsis) or that reside on a par-
ticular device or directory (with the second synopsis).
Without options, pkginfo lists the primary category, package instance, and the names of all completely installed and partially installed
packages. It displays one line for each package selected.
OPTIONS
The -p and -i options are meaningless if used in conjunction with the -d option.
The options -q, -x, and -l are mutually exclusive.
-a arch Specify the architecture of the package as arch.
-c category Display packages that match category. Categories are defined with the CATEGORY parameter in the pkginfo(4) file. If more
than one category is supplied, the package needs to match only one category in the list. The match is not case specific.
-d device Defines a device, device, on which the software resides. device can be an absolute directory pathname or the identifiers
for tape, floppy disk, removable disk, and so forth. The special token spool may be used to indicate the default installa-
tion spool directory (/var/spool/pkg).
-i Display information for fully installed packages only.
-l Specify long format, which includes all available information about the designated package(s).
-p Display information for partially installed packages only.
-q Do not list any information. Used from a program to check whether or not a package has been installed.
-r List the installation base for relocatable packages.
-R root_path Defines the full path name of a directory to use as the root_path. All files, including package system information files,
are relocated to a directory tree starting in the specified root_path.
-v version Specify the version of the package as version. The version is defined with the VERSION parameter in the pkginfo(4) file.
All compatible versions can be requested by preceding the version name with a tilde (~). Multiple white spaces are replaced
with a single white space during version comparison.
-x Designate an extracted listing of package information. The listing contains the package abbreviation, package name, package
architecture (if available) and package version (if available).
OPERANDS
pkginst A package designation by its instance. An instance can be the package abbreviation or a specific instance (for example,
inst.1 or inst.2). All instances of a package can be requested by inst.*. The asterisk character (*) is a special character
to some shells and may need to be escaped. In the C-Shell, "*" must be surrounded by single quotes (') or preceded by a
backslash ().
EXIT STATUS
0 Successful completion.
>0 An error occurred.
FILES
/var/spool/pkg default installation spool directory
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO pkgtrans(1), pkgadd(1M), pkgask(1M), pkgchk(1M), pkgrm(1M), pkginfo(4), attributes(5)
Application Packaging Developer's Guide
SunOS 5.10 6 Nov 2000 pkginfo(1)