LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vFense server Installation (https://www.linuxquestions.org/questions/linux-newbie-8/vfense-server-installation-4175506084/)

akhilesh_03 05-26-2014 02:20 AM

vFense server Installation
 
Hi,

I am trying to install vFense server on CentOS 6.5,when I run vFense server initilization script 'initialize_vFense.py' then I get below message..

" Rethink instances.d directory could not be removed
patching file /usr/lib64/python2.6/site-packages/apscheduler/scheduler.py
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file /usr/lib64/python2.6/site-packages/apscheduler/scheduler.py.rej
adduser: unrecognized option '--disabled-password'
Usage: useradd [options] LOGIN

Options:
-b, --base-dir BASE_DIR base directory for the home directory of the
new account
-c, --comment COMMENT GECOS field of the new account
-d, --home-dir HOME_DIR home directory of the new account
-D, --defaults print or change default useradd configuration
-e, --expiredate EXPIRE_DATE expiration date of the new account
-f, --inactive INACTIVE password inactivity period of the new account
-g, --gid GROUP name or ID of the primary group of the new
account
-G, --groups GROUPS list of supplementary groups of the new
account
-h, --help display this help message and exit
-k, --skel SKEL_DIR use this alternative skeleton directory
-K, --key KEY=VALUE override /etc/login.defs defaults
-l, --no-log-init do not add the user to the lastlog and
faillog databases
-m, --create-home create the user's home directory
-M, --no-create-home do not create the user's home directory
-N, --no-user-group do not create a group with the same name as
the user
-o, --non-unique allow to create users with duplicate
(non-unique) UID
-p, --password PASSWORD encrypted password of the new account
-r, --system create a system account
-s, --shell SHELL login shell of the new account
-u, --uid UID user ID of the new account
-U, --user-group create a group with the same name as the user
-Z, --selinux-user SEUSER use a specific SEUSER for the SELinux user mapping

Sleeping until rethink starts
rethinkdb: vFense: Starting instance. (logging to `/var/lib/rethinkdb/vFense/data/log_file')"

Thanks in advace

Thanks

dijetlo 05-26-2014 03:37 PM

Quote:

adduser: unrecognized option '--disabled-password'
Usage: useradd [options] LOGIN
It looks like it's trying to make a user, a lot of servers and daemons do that however
Quote:

Z, --selinux-user SEUSER use a specific SEUSER for the SELinux user mapping
the S and E in SELinux stand for security enhanced so.... no dice.
The solution from vFense is this.
Quote:

python tp/src/scripts/initialize_vFense.py --dnsname=dns_goes_here --password=password_goes_here
but if you're putting the password for a user capable of loading kernel patches in a plain text file on your machine... why are you worried about security patches? You've got a root like password in plain text?

akhilesh_03 05-27-2014 12:55 AM

Hi dijetlo,

Thanks for your reply.

I have successfully installed vFense server.I am able to access UI from one of my windows machine.
But now I am not able to login to the vFense server.I am providing the same user name and password
that I used at the time of vFense server initialization.

How can I solve this login issue

Thanks

dijetlo 05-27-2014 01:34 AM

Quote:

.I am able to access UI from one of my windows machine.
What message do you get when you try to connect from the Linux box?

akhilesh_03 05-27-2014 01:40 AM

Hi dijetlo,

I am accessing Linux vFense server from windows machine and getting Web User Interface asking for username and password.
When I give username and password it says "invalid username and/or password"

Thanks

dijetlo 05-27-2014 02:15 AM

If I understand what your saying is you have a Linux server and a windows client...
Assuming that vFense is is properly configured and running on the Linux server the windows client still must remotely access the machine via ssh most likely. That means it initiate a password authentication sequence with the Linux server. Does the username and psswd exist on the Linux server?

Code:

cat /etc/passwd | grep -i  <the user name you're using on the windows box>
Did you get a result?

akhilesh_03 05-27-2014 02:31 AM

Hi,

Yes that user is in /etc/passwd file,here is the result :

"cat /etc/passwd | grep -i toppatch
toppatch:x:500:500::/home/toppatch:/bin/bash"

Thanks

dijetlo 05-27-2014 03:35 AM

reset the password on the server to match the one your using from your windows machine. It doesn't matter how certain you are you did it right the first time, at this point we're eliminating possible sources for the error, let's start with the most obvious and work our way down.

if you have a windows ssh client installed, use it to access the server, don't involve the vFense software yet, we're just trying to verify that you can access via ssh from the windows machine, we need to determine for certain which side of client/Server is screwing this up.

If you can access:
Go through the ini and/or config files on the windows installation of vFence and removed any reference to the now defunct password, I'd suggest you leave it blank but reference the documentation.
Conversely there is probably a way to make changes directly into the GUI but I have never heard of vFense prior to beginning this conversation so... take a look and let me know.

How did you solve the password problem from above? Did you map the user "toppatch" to an existing account?


All times are GMT -5. The time now is 04:55 PM.