LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-01-2010, 05:52 PM   #1
nevermind04
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Rep: Reputation: 0
Adding CIFS support to Ophcrack (SliTaz)


Hi, I've used linux for basic things in the past but I'm afraid I need to recompile a kernel and I don't even know where to get started. There's so much information on google and I'm not familiar with the terminology to even know how to effectively search for what I'm looking for.

Basically, I'm loading Ophcrack via TFTP/PXE, but I want to be able to mount one of the shares on my samba server instead of it looking for a /tables/ folder on the current device. I already know how to modify the launch.sh script to get it to do what I want, however I'm stuck on how to mount a samba share through CIFS.

Code:
modprobe mount.cifs
returns that the module is not loaded or is not found. Is there a way to add mount.cifs?
Code:
su
root
mkdir -p /mnt/tables/
mount -t cifs //10.10.2.3/pxeboot/ophcrack/tables/XP/ /mnt/tables/
Doesn't work either. I'm kinda stuck.
 
Old 10-02-2010, 11:16 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Try running:

# modprobe cifs

and see if that helps. I think you just have the kernel module name wrong for starters. Then check this out for how to mount using cifs with the mount.cfis command:

http://www.samba.org/samba/docs/man/...nt.cifs.8.html

As you can see from the above, mount.cifs is a command, not a loadable kernel module. Once you load the cifs module, you should have access to the mount.cifs command.If you google around you can probably find some examples to get you on the right track.
 
1 members found this post helpful.
Old 10-04-2010, 02:06 PM   #3
nevermind04
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Original Poster
Rep: Reputation: 0
In my research, I've learned that the linux-cifs package does not do much by itself, but rather is a dependency of samba, so I installed samba by doing the following:
Code:
su
root
tazpkg get-install tazpkg
tazpkg get-install samba
Samba immediately complained about missing dependencies so I installed them too...
Code:
tazpkg get-install libcrypto
tazpkg get-install cups
# modprobe cifs
still returns "module not found".

# modprobe samba
also returns an error even though I've successfully started samba. I guess I'm confused as to how to mount a networked samba share using cifs...

Last edited by nevermind04; 10-04-2010 at 02:25 PM. Reason: formatting/readability
 
Old 10-04-2010, 02:33 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Samba is not a kernel module, so it has not to be loaded into the kernel. There are to possibilities why the is no kernelmodule "cifs" in your system:
1. Your kernel was built with the "cifs"-functionality built right into kernel, so there is no need to load a module.
2. Your kernel was built with the complete lack of the "cifs"-functionality. In this case you have to build a new kernel.

Looking at you mount-command (and the failure of it) from the first post I wonder if your share's name is really pxeboot/ophcrack/tables/XP/ ?

Please post your smb.conf and the full output of your mount-command from the first post.
 
1 members found this post helpful.
Old 10-04-2010, 02:38 PM   #5
nevermind04
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Original Poster
Rep: Reputation: 0
If it helps, here's my xterm so you can see what I'm doing...
Code:
tux@slitaz:~$ su
Password:
root@slitaz:~# mkdir -p /mnt/tables
root@slitaz:~# mount.cifs //10.10.2.3/pxeboot/ohpcrack/tables/XP /mnt/tables
Password:
mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@slitaz:~#
I did look at the manual, but it has no information relating to my specific problem.

Also, # find / smb.conf returned No such file or directory. Where would this be located?

Last edited by nevermind04; 10-04-2010 at 02:39 PM.
 
Old 10-04-2010, 02:55 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The smb.conf should be located on your server, in the folder /etc/samba/

I looked at the slitaz-website and found that you have to install the package smbfs for mounting samba-shares. Did you install that?
 
1 members found this post helpful.
Old 10-04-2010, 03:01 PM   #7
nevermind04
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Yes, smbfs was loaded as one of the dependencies of samba. I force reinstalled it, but it still does not work.
I do not have access to the actual samba machine or smb.conf, but I can access it in debian with smb://10.10.2.3/pxeboot/ohpcrack/tables/XP/ and in windows with \\10.10.2.3\pxeboot\ophcrack\tables\XP\ so I do know that it is functioning.
 
Old 10-04-2010, 03:14 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Which version of slitaz is ophcrack using? According to their website the modprobe cifs command should work and the smbfs module should be installed to mount samba-shares. I don't know why it is not functioning.
 
1 members found this post helpful.
Old 10-04-2010, 03:22 PM   #9
nevermind04
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Original Poster
Rep: Reputation: 0
I have no idea how to check which version of SliTaz I'm running.
Spider Menu->System tools->System Information
Doesn't seem to be working. I scoured google trying to find a command to get a version number out of this thing, but I found nothing.
 
Old 10-04-2010, 03:35 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
There seems to be an ophcrack-package in the slitaz-repositories, maybe it is the easiest way to build your own ophcrack version from scratch with a current slitaz-kernel.
Sorry I can't give you more help.
 
1 members found this post helpful.
Old 10-04-2010, 05:38 PM   #11
nevermind04
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Man, I have absolutely no idea how to do that. I have only a basic understanding of linux systems, so rebuilding a kernel sounds terrifying. Thank you for all of your help, I believe we have made at least a little progress...
 
Old 10-04-2010, 06:11 PM   #12
nevermind04
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Anyone else have any ideas? I need to mount either a samba share or a windows share from the OPHcrack flavor of SliTaz.
 
Old 10-04-2010, 06:59 PM   #13
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Please post the output of uname -r and ls /lib/modules after installing linux-cifs with tazpkg get-install linux-cifs

Last edited by TobiSGD; 10-04-2010 at 11:07 PM.
 
1 members found this post helpful.
Old 10-04-2010, 11:10 PM   #14
nevermind04
LQ Newbie
 
Registered: Oct 2010
Posts: 8

Original Poster
Rep: Reputation: 0
# uname -r: 2.6.29.3-slitaz

after installing linux-cifs:
# ls /lib/modules: 2.6.29.3-slitaz 2.6.34-slitaz
 
  


Reply



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
can ophcrack help mariangela20 General 2 02-18-2010 02:18 PM
Question about Ophcrack Johnny Faster LQ Suggestions & Feedback 2 01-29-2010 08:40 AM
slitaz 2 and other languages support !1!! please help!! michaa808 Linux - Newbie 3 11-01-2009 10:22 AM
Triple booting GParted, Ophcrack XP, and Ophcrack Vista from USB drive wrhaglyn Linux - Newbie 1 07-08-2009 03:44 PM

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

All times are GMT -5. The time now is 02:07 AM.

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
Open Source Consulting | Domain Registration