LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding CIFS support to Ophcrack (SliTaz) (https://www.linuxquestions.org/questions/linux-newbie-8/adding-cifs-support-to-ophcrack-slitaz-835713/)

nevermind04 10-01-2010 05:52 PM

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.

kilgoretrout 10-02-2010 11:16 AM

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.

nevermind04 10-04-2010 02:06 PM

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...

TobiSGD 10-04-2010 02:33 PM

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.

nevermind04 10-04-2010 02:38 PM

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?

TobiSGD 10-04-2010 02:55 PM

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?

nevermind04 10-04-2010 03:01 PM

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.

TobiSGD 10-04-2010 03:14 PM

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.

nevermind04 10-04-2010 03:22 PM

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.

TobiSGD 10-04-2010 03:35 PM

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.

nevermind04 10-04-2010 05:38 PM

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...

nevermind04 10-04-2010 06:11 PM

Anyone else have any ideas? I need to mount either a samba share or a windows share from the OPHcrack flavor of SliTaz.

TobiSGD 10-04-2010 06:59 PM

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

nevermind04 10-04-2010 11:10 PM

# uname -r: 2.6.29.3-slitaz

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


All times are GMT -5. The time now is 09:40 PM.