su命令:switchuser登陆式切换:会通过读取目标用户的配置文件来重新初始化su-usernamesu-lsername非登陆式切换:不会读取目标用户的配置文件进行初始化suusername注意:管理员可无密码切换至其它任何用户;-c‘COMMAND‘:仅以指定用户的身份运行此次处指定的命令;
分类:
其他好文 时间:
2019-02-22 21:27:09
阅读次数:
160
var pageObj={}; var url = decodeURI(location.search); //获取url中"?"符后的字串 ('?modFlag=business&role=1') if ( url.indexOf( "?" ) != -1 ) { var str = url.su... ...
分类:
Web程序 时间:
2019-02-22 12:15:11
阅读次数:
180
Linux特殊位SUID、SGID、SBIT 前言 Linux中的文件权限一般有x、w、r,在某个情况下有需要用到s、t,即特殊位。 进程运行时能够访问哪些资源或文件,不取决于进程文件的属主属组,而是取决于运行该命令的用户身份的uid/gid,以该身份获取各种系统资源。 SUID SUID即setu ...
分类:
系统相关 时间:
2019-02-19 01:19:23
阅读次数:
233
Linux学习之日志管理 目录 日志管理 rsyslogd日志服务 日志轮替 日志管理 日志服务 rsyslogd的新特点 启动日志服务 常见日志的作用 日志文件的一般格式 /etc/rsyslog.conf配置文件 etc/rsyslog.conf配置文件 服务名称 连接符号 日志等级 日志记录位 ...
分类:
系统相关 时间:
2019-02-16 13:29:37
阅读次数:
237
``` bash dnf install git y id it useradd git su git cd mkdir .ssh && chmod 700 .ssh touch .ssh/authorized_keys && chmod 600 .ssh/authorized_keys cat / ...
分类:
系统相关 时间:
2019-02-14 13:35:15
阅读次数:
230
1、以oracle身份登录数据库,命令:su – oracle 2、执行以下命令查看数据库监听器的状况: lsnrctl status 3、执行以下命令停止数据库监听器运行: lsnrctl stop 4、执行以下命令进入SQLPlus: sqlplus / nolog connect / as s ...
分类:
数据库 时间:
2019-02-14 00:21:09
阅读次数:
230
Chiaki has n intervals and the i-th of them is [li, ri]. She wants to delete some intervals so that there does not exist three intervals a, b and c su ...
分类:
其他好文 时间:
2019-02-13 22:33:38
阅读次数:
191
用于求对于多个$k$的 $$ \sum_{i=0}^kf(i)g(k i) $$ 即求多项式 $$ h(x)=\sum_k\sum_{i=0}^kf(i)g(k i) $$ 则$h(x)=f(x)g(x)$。考虑如何设计$f(x)$与$g(x)$。 例题:求多项式 $$ h(x)=\sum_k\su ...
分类:
其他好文 时间:
2019-02-12 01:46:43
阅读次数:
178
Given an array A of positive integers, call a (contiguous, not necessarily distinct) subarray of A good if the number of different integers in that su ...
分类:
其他好文 时间:
2019-02-10 23:33:31
阅读次数:
293
Linux学习之用户管理命令与用户组管理命令 目录 用户管理命令 用户添加命令useradd 修改用户密码passwd 修改用户信息usermod 修改用户密码状态chage 删除用户userdel 用户切换命令su 用户组管理命令 添加用户组 修改用户组 删除用户组 将用户添加到组或者从组中删除 ...
分类:
系统相关 时间:
2019-02-10 23:05:33
阅读次数:
221