客户端 RedHat 的系统

假想控 edited this page Jun 22, 2016 · 24 revisions

客户端 无需安装agent

适用于版本:v0.3.1-2

Redhat/Centos/Fedora 环境要满足以下条件:which 查看

CentOS 6.5
[root@CentOS ~]# which sudo

/usr/bin/sudo

[root@CentOS ~]# which su

/bin/su

[root@CentOS ~]# which visudo

/usr/sbin/visudo

[root@CentOS ~]# which python

/usr/bin/python

[root@CentOS ~]# ls -l /etc/sudoers

-r--r-----. 1 root root 4082 Feb 29 17:44 /etc/sudoers
CentOS 7.0
[root@CentOS ~]# which sudo

/usr/bin/sudo

[root@CentOS ~]# which su

/usr/bin/su

[root@CentOS ~]# which visudo

/usr/sbin/visudo

[root@CentOS ~]# which python

/usr/bin/python

[root@CentOS ~]# ls -l /etc/sudoers

-r--r-----. 1 root root 4080 Feb 29 04:44 /etc/sudoers
RedHat 6.5
[root@RedHat ~]# which sudo

/usr/bin/sudo

[root@RedHat ~]# which su

/bin/su

[root@RedHat ~]# which visudo

/usr/sbin/visudo

[root@RedHat ~]# which python

/usr/bin/python

[root@RedHat ~]# ls -l /etc/sudoers

-r--r-----. 1 root root 4082 Feb 29 17:44 /etc/sudoers
Fedora 23
[root@Fedora ~]# which sudo

/usr/bin/sudo

[root@Fedora ~]# which su

/usr/bin/su

[root@Fedora ~]# which visudo

/usr/sbin/visudo

[root@Fedora ~]# which python

/usr/bin/python

[root@Fedora ~]# ls -l /etc/sudoers

-r--r-----. 1 root root 3333 Feb 29 09:45 /etc/sudoers

注:

 1. 客户端需要有python,sudo 环境,

 2. 跟which 查看路径是否一样

 3. 客户端如果开启了selinux,请安装 libselinux-python,

 其中ReHat6.5、Fedora23 需要执行 yum -y install libselinux-python

如果系统环境不满足以上条件(包括其它版本系统),会导致jumpserver在推送系统用户、批量执行命令等功能失败