i am new in unix/freebsd. my boss asked me for customizing openssh authentication method. i should create a "Master Password" for all users who want to login as root. if they have the Master Password, they can log in as root, else ever they should have root password. i downloaded the openssh source code and made some changes over there. whether or not the customized version works well, i need to build and install my version on FreeBSD 9.2 but there is two problem:
1) i do not know how to remove pre installed version of openssh. after 2h searching, i could not found a way to properly remove that.
2) how do i install the customized version?
OS: FreeBSD 9.2.
To remove openssh from the base system, what you could try is this (you need to have the OS source installed);
Add WITHOUT_OPENSSH=true
to /etc/src.conf
.
Then go to /usr/src
, and run make check-old
as root
. That should list the files from openssh. If that checks out OK, run make -DBATCH_DELETE_OLD_FILES delete-old
as root
.