In the following example I want to delete the improper ssh-key entries from an authorized_keys file.
Ex.
sed -e '/^environment.*USER.*/!d' .ssh/authorized_keys
I do not allow usage of ssh session without set USER environment variable.
Put your favourite unix on
sed -e '/^environment.*USER.*/!d' .ssh/authorized_keys
bladerunner [/usr/lib/breg/data]# cp RegistrationProfile.properties /tmp/
bladerunner [/usr/lib/breg/data]# cd /tmp
bladerunner [/tmp]# vim RegistrationProfile.properties
[...]
#
# Sun Online account information. A new account can be created by visiting
# http://updates.sun.com
#
userName=wisnios
password=MySunOnlinePassword
#
# Name (label) of this machine as you would like it to appear on the Sun Connection
# portal. If left blank hostname will be used
#
hostName=bladerunner
[...]
:wq
bladerunner [/tmp]# /usr/sbin/sconadm register -a -r /tmp/RegistrationProfile.properties
sconadm is running
Authenticating user ...
finish registration!
# /opt/SUNWdsee/ds6/lib/ns-slapd -v
Sun Microsystems, Inc.
Sun-Java(tm)-System-Directory/6.0 B2007.025.1834 32-bit
[...]
# dsadm --version
[dsadm]
dsadm : 6.0 B2007.025.1834
[slapd 32-bit]
Sun Microsystems, Inc.
Sun-Java(tm)-System-Directory/6.0 B2007.025.1834 32-bit
ns-slapd : 6.0 B2007.025.1834
Slapd Library : 6.0 B2007.025.1834
Front-End Library : 6.0 B2007.025.1834
[slapd 64-bit]
Sun Microsystems, Inc.
Sun-Java(tm)-System-Directory/6.0 B2007.025.1834 64-bit
ns-slapd : 6.0 B2007.025.1834
Slapd Library : 6.0 B2007.025.1834
Front-End Library : 6.0 B2007.025.1834
Call to undefined function pg_connect() in somescript.php on line XX
extension="pgsql.so"
zfs set zoned=on DATASET
sunflower [/]# zoneadm -z samba boot
zoneadm: zone 'samba': These file-systems are mounted on subdirectories of /export/zones/samba/root:
zoneadm: zone 'samba': /export/zones/samba/root/export/vol1
zoneadm: zone 'samba': call to zoneadmd failed
# svcadm disable cde-login
# /usr/dt/bin/dtconfig -d
grub edit> kernel$ /platform/i86pc/kernel/$ISADIR/unix -B atapi-cd-dma-enabled=0
# cd /cdrom/prltools/Drivers/Network/RTL8029/SOLARIS
# ./network.sh
[...]
Will you receive IP address from DHCP server (Y/N)
Enter IP address of the virtual machine:
Enter network address:
Enter network mask:
Enter default gateway IP address:
WARNING: ni0: niattach: SA_eeprom is funny, assuming byte-mode