Ok folks, so here is some basic documentation that I have put together. Whats weird is that I had to install the below mentioned files on the client, not the server. Weird considering the server is much older than the client. Oh well, we learn something new every day. Definitely different people will have slightly different needs, but here goes:
CIFS Tutorial (FC2)
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. (INSTALL ON THE CLIENT COMPUTER)
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!
rendered_one
View Public Profile
Visit rendered_one's homepage!
Find all posts by rendered_one
* #2 *
2004-09-25, 05:21 AM CDT
vinci Offline
Registered User
*
Join Date: Sep 2004
Posts: 7
Good
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!?
mount error 13 = Permission Denied (your mistake in the mounting Statement)
Solution
Most of people got this Permission Denied access when mounting a
Windows Shared folder
following mounting ->
usually : mount -t cifs //<MachineName>/<Shared Folder> /mnt/Shared -o username=<username>,password=<password>
give you error 13.
correct : mount -t cifs //<MachineName>/<SharedFolder> /mnt/Shared -o username=<DomainName>/<username>,password=<password>
Yes! the only deference is "domain name:<DomainName>" is missing. In case of No Domain try to put your <MachineName> there.
cifs does not locate domain itself (I guess).
Using a Password File:
(1) make it hidden, preferably in the root directory or somewhere where it will be difficult for people to find the password file.
Your FSTAB file should look similar to this:
//10.0.0.1/home /media/anthonysredhat cifs credentials=/root/.smbcredentials,rw 0 0