LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-29-2009, 07:32 PM   #1
anthonysaulnier
Member
 
Registered: Sep 2005
Posts: 136

Rep: Reputation: 16
Cannot see shares through programs


Hi fellow teckies,


Im using Ubuntu 8.10. I can map to samba network shares, and can see the shares just fine when navigating through the file system. However, when I try to navigate to the network share through a program, lets say an mp3 player or video player, it will not give me the option to navigate through the network share. This is the case for over 90% of the programs. I am wondering if I have to install some sort of connector software. The share I am connecting to is a RedHat 9.0 share.


Any ideas?
 
Old 12-30-2009, 06:36 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Have you added entries in your /etc/fstab file so you can mount the shares? Here is an example from my fstab, this is a directory of pictures taken with my digicam.

Quote:
//i-think/Pictures /mnt/Pictures cifs username=% 0 0
If the system, i-think is running when I boot, then the Pictures directory is mounted on my system at /mnt/Pictures. I have to log in, but once done I can read/write etc.
 
Old 12-30-2009, 12:34 PM   #3
anthonysaulnier
Member
 
Registered: Sep 2005
Posts: 136

Original Poster
Rep: Reputation: 16
Yeah im going to try editing fstab to see how that works. Its worth trying.

Thanks
 
Old 12-30-2009, 09:09 PM   #4
anthonysaulnier
Member
 
Registered: Sep 2005
Posts: 136

Original Poster
Rep: Reputation: 16
So here's what I found out so far:


My file server doesnt support CIFS, so I gotta upgrade that somehow. Its a RedHat 9.0 machine. I looked into Likewise, but it looks as though this piece of software requires that the server be in a domain.

I'll keep searching and let you know what I find, unless you have any other ideas, or CIFS server software that I can try.
 
Old 12-31-2009, 10:15 AM   #5
anthonysaulnier
Member
 
Registered: Sep 2005
Posts: 136

Original Poster
Rep: Reputation: 16
This could be helpful:

http://forums.fedoraforum.org/showthread.php?t=2592

Looks like cifs was developed by the same group who developed smbfs, so, correct me if im wrong, but I think that you would still use smb.conf as the configuration file on the server.
 
Old 12-31-2009, 10:50 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
Many file browsers have the SMB/CIFS protocol built in which is why you can browse and view their contents.
If you can view the RH 9 share then you should still be able to mount it on Ubuntu using the cifs filesystem type without upgrading. Many would say since RH 9 is obsolete that you should upgrade anyway if it makes sense to do so.

Last edited by michaelk; 12-31-2009 at 10:52 AM.
 
Old 12-31-2009, 11:46 AM   #7
anthonysaulnier
Member
 
Registered: Sep 2005
Posts: 136

Original Poster
Rep: Reputation: 16
Yeah thats what I am thinking. Im thinking that RH 9 doesnt fully support cifs, if at all, without the proper modules. I might have to upgrade to something like Fedora 9, or perhaps I can have a bit of fun and try installing the modules just for the heck of it.
 
Old 12-31-2009, 02:52 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
Have you tried mount the RH9 shares on the Ubuntu box yet?
 
Old 12-31-2009, 05:21 PM   #9
anthonysaulnier
Member
 
Registered: Sep 2005
Posts: 136

Original Poster
Rep: Reputation: 16
Yeah ive tried, and the log msgs say that I need to use cifs because smbfs is being phased out. The problem is that RedHat 9 doesnt seem to natively support cifs. Either I will have to upgrade the server OS or install cifs compatibility somehow.
 
Old 12-31-2009, 06:20 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
Go ahead and try mounting the share on Ubuntu using cifs instead of smbfs. It should work....

Last edited by michaelk; 12-31-2009 at 06:22 PM.
 
Old 12-31-2009, 07:55 PM   #11
anthonysaulnier
Member
 
Registered: Sep 2005
Posts: 136

Original Poster
Rep: Reputation: 16
Ok I think im close to fixing this. When I solve it ill post.
 
Old 12-31-2009, 08:09 PM   #12
anthonysaulnier
Member
 
Registered: Sep 2005
Posts: 136

Original Poster
Rep: Reputation: 16
In a nutshell, I had to install another cifs component on my Ubuntu machine, not my redhat server as opposed to my original thought. I then created an fstab entry and created a hidden password file in the root directory.

When I polish up the docs ill let you guys have a look.


Happy New Years
 
Old 01-01-2010, 11:25 PM   #13
anthonysaulnier
Member
 
Registered: Sep 2005
Posts: 136

Original Poster
Rep: Reputation: 16
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
 
  


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
Are programs like sys_open( ) ,sys_read( ) et al examples of system level programs ? kashyapa Linux - Newbie 5 10-27-2009 08:20 PM
Can't View List of Shares in Nautilus, but can browse shares directly anon111 Linux - Networking 3 12-11-2008 04:13 PM
Programs installed with package manager aren't recognised by other programs fraserm Linux - Software 3 04-21-2007 12:38 PM
my table with programs when i press in button (left down corner) do no show programs sagi7ario Mandriva 1 03-12-2004 12:02 PM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:28 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
Open Source Consulting | Domain Registration