LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-24-2017, 04:06 AM   #1
swb666
LQ Newbie
 
Registered: Jan 2017
Posts: 12

Rep: Reputation: Disabled
Question FATAL: Failed to open file - No such file or directory but file exists


hello
whenever i try to use medusa it says; FATAL: Failed to open file /root/desktop/10000.lst - No such file or directory
but the file exists on my desktop i personally make a file using this command " nano 10000.lst " then i put 10000 words in to it, then ctrl+x then Y and then i moved this file to my desktop
i also changed it to .txt but didn't work

here are commands i use, but non of them works, always the same thing happens

" medusa -h (hostname) -u root -P /root/desktop/10000.lst -m ftp "
" medusa -h (hostname) -u root -P /root/desktop/10000 -m ftp "
" medusa -h (hostname) -u root -P root/desktop/10000.lst -m ftp"
" medusa -h (hostname) -u root -P root/desktop/10000 -m ftp "
" medusa -h (hostname) -u root -P /root/desktop/10000.txt -m ftp "
" medusa -h (hostname) -u root -P root/desktop/10000.txt -m ftp "
 
Old 01-24-2017, 04:27 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861
Your desktop is more than likely not located at /root/desktop (and may even have an initial capital letter i.e. /root/Desktop).

So, to give us a clue what is happening, which Linux distro are you using, and are you logged in as a user or as root?
 
1 members found this post helpful.
Old 01-24-2017, 06:13 AM   #3
swb666
LQ Newbie
 
Registered: Jan 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
im using kali linux 64 bit vmware image on a virtual machine
here are some thing that may help you find out if i've logged in as a root user
" terminal says root@kali "
" username is 'root' "
" there is not any warning to tell me ( you logged in as a root user be careful of what you're doing ) kali linux light kept showing this warning "
 
Old 01-24-2017, 06:29 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861
Ok, so you're root.

Can you please paste the output from ls /
 
1 members found this post helpful.
Old 01-24-2017, 06:41 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,083

Rep: Reputation: 4141Reputation: 4141Reputation: 4141Reputation: 4141Reputation: 4141Reputation: 4141Reputation: 4141Reputation: 4141Reputation: 4141Reputation: 4141Reputation: 4141
sometimes you entered /root, sometimes without / . Probably one of them is incorrect.
 
Old 01-24-2017, 09:10 AM   #6
swb666
LQ Newbie
 
Registered: Jan 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Ok, so you're root.

Can you please paste the output from ls /
root@kali:~# ls /
0 dev initrd.img lib64 mnt root srv usr vmlinuz.old
bin etc initrd.img.old lost+found opt run sys var
boot home lib media proc sbin tmp vmlinuz

Last edited by swb666; 01-24-2017 at 09:16 AM.
 
Old 01-24-2017, 09:15 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861
Quote:
Originally Posted by swb666 View Post
root@kali:~# ls /
0 dev initrd.img lib64 mnt root srv usr vmlinuz.old
bin etc initrd.img.old lost+found opt run sys var
boot home lib media proc sbin tmp vmlinuz
Thanks. Now please paste the output from ls /root
 
1 members found this post helpful.
Old 01-24-2017, 09:16 AM   #8
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651
Use this command to find the actual path of your file. Then plug it into your medusa command.

Code:
find / -name 10000.lst
 
1 members found this post helpful.
Old 01-24-2017, 09:51 AM   #9
swb666
LQ Newbie
 
Registered: Jan 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Thanks. Now please paste the output from ls /root
root@kali:~# ls /root
10000.lst Desktop Downloads Pictures Templates
10k Documents Music Public Videos
 
Old 01-24-2017, 10:04 AM   #10
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651
So with that output I would expect it to be this:

Code:
medusa -h (hostname) -u root -P /root/10000.lst -m ftp
 
1 members found this post helpful.
Old 01-24-2017, 10:09 AM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861
Quote:
Originally Posted by swb666 View Post
root@kali:~# ls /root
10000.lst Desktop Downloads Pictures Templates
10k Documents Music Public Videos
In addition to szboardstretcher's comment:

Linux directory and file names are case-sensitive.

So, if you want to refer to the file that's on your desktop, use:

/root/Desktop/... instead of /root/desktop/...
 
1 members found this post helpful.
Old 01-24-2017, 10:10 AM   #12
swb666
LQ Newbie
 
Registered: Jan 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by szboardstretcher View Post
Use this command to find the actual path of your file. Then plug it into your medusa command.

Code:
find / -name 10000.lst
worked although it shows the same path
" root@kali:~# find / -name 10000.lst /root/Desktop/10000.lst "
i copy pasted the path into the terminal and it worked...
 
Old 01-24-2017, 10:14 AM   #13
swb666
LQ Newbie
 
Registered: Jan 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by hydrurga View Post
In addition to szboardstretcher's comment:

Linux directory and file names are case-sensitive.

So, if you want to refer to the file that's on your desktop, use:

/root/Desktop/... instead of /root/desktop/...
ahhh yeah right desktop doesn't work while Desktop works
i didn't know i have to pay attention to upper and lower cases
thanks for your time you helped me alot
 
Old 01-24-2017, 10:20 AM   #14
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651
Congrats. I'd like to throw out some advice too. Kali is an advanced distribution for penetration testing based off of Backtrack - well sort of anyway - Kali is debian based and Backtrack was some live distribution. Anyway.

If you are having a hard time with just moving around the file system, you might want to take a step back and learn the basics first, before pushing ahead into the distribution. Here are some beginner links from google if you are interested.

http://linuxcommand.org/
http://www.ee.surrey.ac.uk/Teaching/Unix/
https://linuxnewbieguide.org/overview-of-chapters/
 
2 members found this post helpful.
Old 01-24-2017, 10:46 AM   #15
swb666
LQ Newbie
 
Registered: Jan 2017
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
Congrats. I'd like to throw out some advice too. Kali is an advanced distribution for penetration testing based off of Backtrack - well sort of anyway - Kali is debian based and Backtrack was some live distribution. Anyway.

If you are having a hard time with just moving around the file system, you might want to take a step back and learn the basics first, before pushing ahead into the distribution. Here are some beginner links from google if you are interested.

http://linuxcommand.org/
http://www.ee.surrey.ac.uk/Teaching/Unix/
https://linuxnewbieguide.org/overview-of-chapters/
ahh yeah basics sounds amazing.. thanks for sharing your opinion
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ./curl -V showing fatal: libldap.so.5: open failed: No such file or directory manalisharmabe Solaris / OpenSolaris 9 09-09-2013 12:56 PM
[SOLVED] httpd: fatal: libpng12.so.0: open failed: No such file or directory pliqui Solaris / OpenSolaris 9 08-02-2011 03:30 PM
fatal: libncurses.so.5: open failed: No such file or directory xpucto Solaris / OpenSolaris 8 09-08-2007 01:26 AM
awk: fatal:cannot open file for reading (no such file or Directory) in Linux sangati vishwanath Linux - Software 4 07-06-2005 12:59 AM
SIOCADDRT: File exists SIOCCADDRT: File Exists Failed to bring up eth0. opsraja Linux - Networking 0 01-10-2005 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration