Results 1 to 5 of 5

Thread: Metasploit "please run msfdb as non root user"

  1. #1
    Join Date
    2015-Oct
    Posts
    2

    Metasploit "please run msfdb as non root user"

    When i updated my MSF to the latest nightly build 4.11.4 ,whenever i try to launch msfconsole it says that i have to initialize msfdb as a non rot user ,what to do?
    OS:Kali Linux 2.0 64 bit
    Last edited by theo1996; 2015-10-29 at 10:53. Reason: Added adional information.

  2. #2
    By the sounds of it, you are not using the Metasploit package in Kali.
    Either their package/setup or from the github.

    You would need to contact them (rapid7).
    This is a Kali-Linux support forum - not general IT/infosec help.

    Useful Commands: OS, Networking, Hardware, Wi-Fi
    Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
    Hardware: Recommended 802.11 Wireless Cards

    Documentation: http://docs.kali.org/ (Offline PDF version)
    Bugs Reporting & Tool Requests: https://bugs.kali.org/
    Kali Tool List, Versions & Man Pages: https://tools.kali.org/

  3. #3
    Join Date
    2015-Oct
    Posts
    2
    [QUOTE]Please run msfdb as a non-root user

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%
    %% %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%
    %% %% %%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%
    %% % %%%%%%%% %%%%%%%%%%% http://metasploit.pro %%%%%%%%%%%%%%%%%%%%%%%%%
    %% %% %%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%
    %% %%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%
    %%%%% %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%
    %%%% %% %%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% %%%%%
    %%%% %% %% % %% %% %%%%% % %%%% %% %%%%%% %%
    %%%% %% %% % %%% %%%% %%%% %% %%%% %%%% %% %% %% %%% %% %%% %%%%%
    %%%% %%%%%% %% %%%%%% %%%% %%% %%%% %% %% %%% %%% %% %% %%%%%
    %%%%%%%%%%%% %%%% %%%%% %% %% % %% %%%% %%%% %%% %%% %
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% %%%%%%% %%%%%%%%%%%%%%
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% %%%%%%%%%%%%%%
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%


    =[ metasploit v4.11.4-dev-a65172bbcbb32e42575fba0345b29d62cb8e273e]
    + -- --=[ 1500 exploits - 863 auxiliary - 251 post ]
    + -- --=[ 432 payloads - 37 encoders - 8 nops ]
    + -- --=[ Free Metasploit Pro trial: http://r-7.co/trymsp ]

    msf >
    [/QUOTE]

    Then i try to run it as a new non root user1

    msf > gksu[*] exec: gksu

    /opt/metasploit-framework/embedded/framework/msfdb:128:in `initialize': No such file or directory @ rb_sysopen - /home/user1/.msf4/database.yml (Errno::ENOENT)
    from /opt/metasploit-framework/embedded/framework/msfdb:128:in `open'
    from /opt/metasploit-framework/embedded/framework/msfdb:128:in `init_db'
    from /opt/metasploit-framework/embedded/framework/msfdb:232:in `<main>'
    msf >

  4. #4
    Join Date
    2013-Jun
    Location
    I'm everywhere you want to be - but I prefer to drink all the booze and hack all the things. (>_>)
    Posts
    6
    Yeah. I'm using a fresh Kali rolling install - and I get the same error. Plus, only using the Kali rolling repos and not Rapid7's metasploit package. What information should I post to help everyone troubleshoot this thing and move forward?

  5. #5
    Do this:
    sudo apt-get update
    sudo apt-get upgrade
    cd [whatever directory you put msfconsole in, usually /opt]
    sudo msfconsole [if this doesn't do anything do "sudo ./msfconsole"]

Similar Threads

  1. ~Unable To Add "Non Root User", To Kali Linux~
    By strangedays in forum General Archive
    Replies: 5
    Last Post: 2017-10-18, 00:19
  2. cannot download "metasploit-framework" and "exploitdb" packages
    By fsasse in forum TroubleShooting Archive
    Replies: 4
    Last Post: 2016-08-01, 11:24
  3. Replies: 0
    Last Post: 2016-04-25, 14:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •