Sunday, December 16, 2012

create command ping and deny any order command

[root]# which bash
/bin/bash
Create symbolic link
ln -s /bin/bash /opt/hipbash
useradd hip -s /opt/hipbash
passwd hip

mkdir /home/hip/bin


VD: create command ping and deny any order command

ln -s /bin/ping /home/hip/bin/ping

chown root. /home/hip/.bash_profile
chmod 755 /home/hip/.bash_profile

vi /home/hip/.bash_profile
search and replace PATH
PATH=$HOME/bin

1 comment:

Anonymous said...

Excellent web site. Lots of useful info here. I am sending it to a few friends ans
also sharing in delicious. And certainly, thanks on your sweat!


Here is my page ... Home Income Kit