【ubuntu】tacacs+服务器搭建

千万不要用ubuntu16.04版本搭建,使用该版本执行/etc/init.d/tacacs_plus star报错到哭,目前都还没办法解决!!!!!

在这里插入图片描述

使用系统版本ubuntu18.04
Tacacs 安装

执行apt-get install tacacs+
安装完成后,我们继续根据需要配置 tacacs+ 服务器。默认安装时,配置文件在此处 /etc/tacacs+/tac_plus.conf
vi etc/tacacs+/tac_plus.conf

#Make this a strong key
key = testing123

#Am using local PAM which allows us to use local linux users, you can use any backend like Windows AD
default authentication = file /etc/passwd
 
#Define groups that we shall add users to later
#In this example I have defined 2 groups support and unicorns and assign them respective privileges

group = support {
    default service = deny
    service = exec {
    priv-lvl = 1
    }
}

group = unicorns {
    default service = permit
    service = exec {
    priv-lvl = 15
    }
}
#Defining my users and assigning them to groups above
user = mary {
    name = "Network Support"
    member = support
}

user = tina {
    name = "Network Unicorn"
    member = unicorns
}

每次修改配置文件需要重启服务器
/etc/init.d/tacacs_plus restar
在这里插入图片描述
接下来添加系统用户以匹配 tacacs+ 中的用户

root@m:~# adduser tina
root@m:~# adduser mary

查看日志tail -f /var/log/syslog查看在这里插入图片描述

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值