This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
domain: 112.249.80.in-addr.arpa | |
nserver: ns1.ptco.net | |
nserver: ns2.ptco.net | |
admin-c: PA8872-RIPE | |
tech-c: PA8872-RIPE | |
zone-c: PA8872-RIPE | |
mnt-by: ir-ptcopjs-1-mnt | |
created: 2019-05-15T06:00:50Z | |
last-modified: 2019-05-15T06:00:50Z | |
source: RIPE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./ssacli ctrl slot=0 logicaldrive 1 show |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unix systems provide the chroot command which allows you to reset the / of the user to some directory in the filesystem hierarchy, where they cannot access "higher-up" files and directories. | |
However in your case, it would appropriate to provide a virtual chroot implemented by the remote shell service. sftp can be easily configured to restrict a local user to a specific subset of the filesystem. | |
hence in your case, you want to chroot let's say, user foo user into the /var/www/vhosts/ directory. | |
You can set a chroot directory for your user to confine them to the subdirectory /var/www/vhosts/ like so in /etc/ssh/sshd_config; | |
Create user foo with password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sshfs#[email protected]:/data/www /mnt/logs/ fuse IdentityFile=/home/USER/.ssh/id_rsa,uid=UID,gid=GUID,users,idmap=user,noatime,allow_other,_netdev,reconnect,ro 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SmsIR_UltraFastSend { | |
/** | |
* gets API Ultra Fast Send Url. | |
* | |
* @return string Indicates the Url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$VCUSER = "qweqwe" #$Parameters.Get_Item("VCUSER") | |
$VCPASS = "qweqwe"#$Parameters.Get_Item("VCPASS") | |
$VCNAME = "qweqwe" #$Parameters.Get_Item("VCNAME") | |
Describe "Checking PowerCLI Cmdlets available" { | |
$cmdletname = "Connect-VIServer" | |
It "Checking $cmdletname is available" { | |
$command = Get-Command $cmdletname | |
$command | Select Name, Version | |
$command.Name| Should Be $cmdletname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$VCUSER = "qweqwe" #$Parameters.Get_Item("VCUSER") | |
$VCPASS = "qweqwe"#$Parameters.Get_Item("VCPASS") | |
$VCNAME = "qweqwe" #$Parameters.Get_Item("VCNAME") | |
Describe "Checking PowerCLI Cmdlets available" { | |
$cmdletname = "Connect-VIServer" | |
It "Checking $cmdletname is available" { | |
$command = Get-Command $cmdletname | |
$command | Select Name, Version | |
$command.Name| Should Be $cmdletname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ip route add 192.168.0.0/24 dev ens192 tab 1 | |
sudo ip route add 192.168.1.0/24 dev ens224 tab 2 | |
sudo ip route add default via 192.168.0.1 dev ens192 tab 1 | |
sudo ip route add default via 192.168.1.1 dev ens224 tab 2 | |
sudo ip rule add from 192.168.0.10/32 tab 1 priority 100 | |
sudo ip rule add from 192.168.1.10/32 tab 2 priority 200 | |
sudo ip route flush cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Downgrade sources.list | |
$ sudo sed -i 's/cosmic/bionic/g' /etc/apt/sources.list | |
2. Pin packages | |
/etc/apt/preferences | |
Package: * | |
Pin: release a=bionic | |
Pin-Priority: 1001 | |
3. Downgrade Ubuntu system |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo sed -i 's/enforcing/disabled/g' /etc/selinux/config /etc/selinux/config |