PDA

View Full Version : CIFS Tutorial (FC2)


rendered_one
26th May 2004, 07:43 PM
If you got a mag saying:
"cli_negprot: SMB signing is mandatory and we have disabled it.
4918: protocol negotiation failed
SMB connection failed"
In my last tutorial, you probably need CIFS.

Here's a simple tutorial for CIFS installation and running.

If you are running the 2.6x kenerl you should already have To get CIFS working follow these instructions.

To check and see if you have CIFS do this:


1. Make sure you have the Development and Kernel developmnt options installed on your system. If not, you're going to need to install them. (only if you DON'T have cifs installed)
2. cd to /usr/src/linux-2.6.5-1.385 (It could be different on your system, anything that says linux-* will be the right dir for you)
3. Type make xconfig
4. Make sure CIFS is selected under Filesystems-Network File Systems. Note it might already be selected, thats good.

NOTE: If it is already selected it should be a circle, meaning that it is a module, if you want built in then click again and it will show a check meaning that it will be built in.

5. Click on File-Save (If you changed anything), and then File-Quit.
6. If you had to change anything, then type make "make install" (for built-in) or make modules_install (for modules). If you didn't have to change anything than don't worry, skip this step and go on to the next one.

Now for mount.cfis do this,

1. Download mount.cfis from http://ca.samba.org/samba/ftp/cifs-cvs/ and click on mount.cifs. (you might need to right-click and go to Save Link Target As)
2. (Do this as root) From where you download mount.cifs to type this:
"cp mount.cifs /sbin"
"cd /sbin"
"chmod 755 mount.cifs"
"ln /sbin/mount.cifs /usr/bin/cifsmount"
What you did here was copyed the cfis mount binary,changed it so that everyone could at least exeute it, and linked to it from /usr/bin.
3. Type "cifsmount" at the command prompt, the syntax is very similar to that of smbmount.
4. Just type what you would have in smbmount with cifmount.
5. If you want automouting or easier mounting do what I said in the samba tutorial in /etc/fstab but replace smbfs with cifs.

That should do it. If you need more information try downloading the mount.cifs from http://ca.samba.org/samba/ftp/cifs-cvs/ and click on mount.cifs.8 then copy it to /usr/share/man/man8. To view the man page, type man 8 mount.cifs.

Enjoy! :D

vinci
25th September 2004, 12:21 PM
I would suggest using "/usr/local/" as prefix instead of "/usr" So resulting in
/usr/local/sbin/mount.cifs, /usr/local/bin/cifsmount and /usr/local/share/man/man8/mount.cifs.8

Why? Because it gives room for official installations and those will not override our own install.

PS: I still do not understand why Fedora does not deliver these things!?