Feb 262015
 

Installation des aktuellsten „sudo“-Pakets:

# pkg install sudo

Deinstallation des aktuellsten „sudo“-Pakets:

# pkg uninstall sudo

 

Installation älterer Versionen von IPS-Paketen

Versuch der Installation eines älteren „sudo“-Pakets:

# pkg list -af security/sudo 
NAME (PUBLISHER) VERSION IFO 
security/sudo (solaris) 1.8.6.7-0.175.1.7.0.3.0 --- 
security/sudo (solaris) 1.8.4.5-0.175.1.6.0.2.0 --- 
security/sudo (solaris) 1.8.4.5-0.175.1.0.0.24.0 --- 

# pkg install security/sudo@1.8.4.5-0.175.1.0.0.24.0 
Creating Plan (Solver setup): \ 
pkg install: No matching version of security/sudo can be installed: 
Reject: pkg://solaris/security/sudo@1.8.4.5,5.11-0.175.1.0.0.24.0:20120904T174146Z 
Reason: This version is excluded by installed incorporation pkg://solaris/consolidation/userland/userland-incorporation@0.5.11,5.11-0.175.1.8.0.4.0:20130531T202551Z

Unlock des Versions-Facets für dieses „sudo“-Paket

# pkg contents -rm pkg://solaris/consolidation/userland/userland-incorporation@0.5.11,5.11-0.175.1.8.0.4.0:20130531T202551Z | grep "security/sudo" 
depend facet.version-lock.security/sudo=true fmri=pkg:/security/sudo@1.8.6.7,5.11-0.175.1.7.0.3.0 type=incorporate 

# pkg change-facet facet.version-lock.security/sudo=false 

# pkg facet facet.version-lock.security/sudo 
FACETS VALUE 
facet.version-lock.security/sudo False

 

Installation eines älteren „sudo“-Pakets:

# pkg install security/sudo@1.8.4.5-0.175.1.0.0.24.0 

# pkg list -af security/sudo 
NAME (PUBLISHER) VERSION IFO 
security/sudo (solaris) 1.8.6.7-0.175.1.7.0.3.0 --- 
security/sudo (solaris) 1.8.4.5-0.175.1.6.0.2.0 --- 
security/sudo (solaris) 1.8.4.5-0.175.1.0.0.24.0 i—

Freeze des älteren „sudo“-Pakets:

  • Unterbindet Update des Paketes
# pkg freeze security/sudo 
security/sudo was frozen at 1.8.4.5-0.175.1.0.0.24.0:20120904T174146Z 

# pkg list -af security/sudo 
NAME (PUBLISHER) VERSION IFO 
security/sudo (solaris) 1.8.6.7-0.175.1.7.0.3.0 --- 
security/sudo (solaris) 1.8.4.5-0.175.1.6.0.2.0 --- 
security/sudo (solaris) 1.8.4.5-0.175.1.0.0.24.0 if-

 

Wiederherstellung von gelöschten Elementen aus IPS-Paketen

Fehlendes /usr/bin/sudo:

# sudo 
bash: sudo: command not found

In welchen Paket ist das File enthalten ?

# pkg search -rl /usr/bin/sudo 
INDEX ACTION VALUE PACKAGE 
path file usr/bin/sudo pkg:/security/sudo@1.8.6.7-0.175.1.7.0.3.0

Wiederherstellung:

# pkg verify security/sudo 
PACKAGE STATUS 
pkg://solaris/security/sudo ERROR 
file: usr/bin/sudo 
Missing: regular file does not exist 

# pkg revert usr/bin/sudo

 

Wiederherstellung von Installationsdefaults von IPS-Paketen

Abweichende/veränderte Permissions /usr/bin/sudo:

# sudo 
bash: /usr/bin/sudo: Permission denied

In welchen Paket ist das File enthalten ?

# pkg search -rl /usr/bin/sudo 
INDEX ACTION VALUE PACKAGE 
path file usr/bin/sudo pkg:/security/sudo@1.8.6.7-0.175.1.7.0.3.0

Wiederherstellung:

# pkg verify security/sudo 
PACKAGE STATUS 
pkg://solaris/security/sudo ERROR 
file: usr/bin/sudo 
Mode: 04000 should be 04511 
# pkg fix security/sudo
 Posted by at 8:11 am