Debian11 打开ROOT登录SSH权限
1.获取root权限
su -
2.安装vim
apt install vim
如果装系统时没有安装ssh还要安装ssh
apt install ssh
3.root权限修改ssh配置
vim /etc/ssh/sshd_config
PermitRootLogin yes
4.重启ssh服务后即可用root登录
/etc/init.d/ssh restart
1.获取root权限
su -
2.安装vim
apt install vim
如果装系统时没有安装ssh还要安装ssh
apt install ssh
3.root权限修改ssh配置
vim /etc/ssh/sshd_config
PermitRootLogin yes
4.重启ssh服务后即可用root登录
/etc/init.d/ssh restart
转自:零度解说
1.Fosshub: https://www.fosshub.com
免费开源实用工具下载
2.Aconvert:https://www.aconvert.com
免费文档格式转换
3.MuscleWiki: https://musclewiki.com
指定部位肌肉锻炼建议
4.Soundcloud:https://soundcloud.com
免费无版权的背景音乐
5.Speedyfox:https://crystalidea.com/speedyfox
浏览器加速
6.https://en.aptoide.com/
安卓手机app下载网站
转自:https://blog.csdn.net/w657395940/article/details/20312053
1.配置全局共享参数 系统默认不允许root用户访问samba,如果要用root用户 配置文件路径为 /etc/samba/smb.conf ,将 [global] 中的 invalid users = root 注掉,前面添加#
2.创建组和用户与设置密码
groupadd guanli //新增叫guanli的组
useradd xiaoming -g guanli //新增在guanli组的xiaoming用户
smbpasswd -a xiaoming //帮xiaoming设置密码
3.共享文件夹的用户配置中
valid users = @guanli,xiaohong //设置运行guanli组的所有用户,和xiaohong用户可访问
4.samba服务启动、关闭和重启
/etc/init.d/samba start
/etc/init.d/samba stop
/etc/init.d/samba restart
5.windows用户异常
不允许一个用户使用一个以上用户名与一个服务器或共享资源的多重连接问题的解决
在cmd中输入:net use * /delete
6.linux用户相关
(1)使用smbclient
smbclient//192.168.1.1/Normal -U user%passwd
(2)挂载到某个目录使用
mkdir/mnt/share
mount -o username=youruser,password=passwd //192.168.1.1/Normal /mnt/share
设置开机挂载将如下命令写入/etc/fstab
//192.168.1.1/share /mnt/ml45 cifs defaults,auto,username=youruser,password=passwd 0 0
然后mount -a
转自:https://www.jb51.net/article/194017.htm
先修改php的配置文件php.ini,将disable_function里面如下几个函数名删除掉
system, exec, passthru
测试:
<?php
$shell = "ls -la";
echo "<pre>";
system($shell, $status);
echo "</pre>";
//注意shell命令的执行结果和执行返回的状态值的对应关系
$shell = "<font color='red'>$shell</font>";
if( $status ){
echo "shell命令{$shell}执行失败";
} else {
echo "shell命令{$shell}成功执行";
}
?>
一:进入“外观”——“编辑当前外观”
1.编辑function.php文档,在function themeConfig下添加可修改变量代码
$bei = new Typecho_Widget_Helper_Form_Element_Text('bei', NULL, NULL, _t('工信部备案号'), _t('留空则不显示'));
$form->addInput($bei->addRule('xssCheck', _t('工信部备案号不能使用特殊字符')));
2.编辑footer.php文档,在footer元素下添加显示代码
<div class="blog-text-center"><a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow"><?php $this->options->bei(); ?></a></div>
二:进入“外观”——“设置外观”
即可添加ICP备案号