Hi, I am trying to restrict my FreeBSD users and only allow specific commands like traceroute,ping, arp, tcpdump etc.
I used restricted bash and limited user's PATH to programs which are I allowed. However traceroute didn't work on restricted user. So how can I allow a resctricted user to run traceroute without sudo?
I used restricted bash and limited user's PATH to programs which are I allowed. However traceroute didn't work on restricted user. So how can I allow a resctricted user to run traceroute without sudo?
Code:
$ traceroute 8.8.8.8
traceroute: icmp socket: Operation not permitted
Code:
chsh -s /usr/local/bin/rbash test
nano /home/test/.login_conf
me:\
:path=~/programs:
cap_mkdb /home/test/.login_conf
cp /usr/sbin/traceroute /sbin/ping /usr/sbin/tcpdump /usr/sbin/arp /home/test/programs/.