Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th March 2008, 09:05 AM
nnn Offline
Registered User
 
Join Date: Mar 2008
Age: 49
Posts: 5
Exclamation Samba 2.2.x serving Samba client 3.0.26 cifs (mount error 13 = Permission denied)

Hello

I am using Red Hat since version 6...and had successfully used servers and clients.

The new problem I face is with cifs client logging on to samba server.

The server has
Red Hat 7.2
samba 2.2.x (which only has smbfs and NOT cifs)

The server NEED to serve few linux clients and few windows clients and hence I use samba instead of nfs.

I could connect through samba 2.2.x clients successfully. And also the windows clients connect successfully. That is
mount -t smbfs ... works fine for several years.

While upgrading the machines, we need to install newer versions of Linux and now I have Fedora 8 in a new box.

With Fedora 8, samba 3.0.26 client, since it has cifs, I tried to mount through

mount.cifs //server/share /mnt/data -ousername=user1

and the error is

mount error 13 = Permission denied

I had tried with domain= also.

The server's /var/log/samba/new.log has

[2008/03/28 13:13:16, 0] smbd/password.c: password_ok(610)
Error: challenge not done for user=user1

So, the client had reached upto the server and the server had tried and failed to authenticate.

Can anyone please guide me on this issue.

Thanking you in advance.
Reply With Quote
  #2  
Old 28th March 2008, 09:15 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
Try
Code:
mount cifs //server/share /mnt/data -o username=user1,password=""
or
Code:
mount -t cifs //server/share /mnt/data -o username=user1,password=""
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 28th March 2008, 12:44 PM
nnn Offline
Registered User
 
Join Date: Mar 2008
Age: 49
Posts: 5
Had given password when it was prompting. That is not the issue. Even with the password= entry in mount, it gives the same error.
Reply With Quote
  #4  
Old 29th March 2008, 04:41 AM
nnn Offline
Registered User
 
Join Date: Mar 2008
Age: 49
Posts: 5
Had tried all the possibilities. Ping works well; even the mount.cifs reaches the server.
Tried with domain, uid, gid, etc

It still gives the same error.

mount error 13 = Permission denied
Reply With Quote
  #5  
Old 29th March 2008, 09:35 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
Are there any updates available for Samba / Redhat 7.2 which may include cifs support? I'm assuming that the fact that the server uses smbfs and the client uses cifs may cause problems.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #6  
Old 29th March 2008, 09:44 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
This command:
Code:
sudo mount -t cifs //johnbonham/temp /media/temp -o username=glenn,password=""
was successful on my machine. johnbonham is the 'server' in this case. Johnbonham has a shared folder, /temp, and I was able to mount and browse that folder from another Linux machine. I may have been successful simply because there is a user named glenn on both boxes.

Edit: For what it's worth, sudo umount /media/temp was also successful.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB

Last edited by glennzo; 29th March 2008 at 09:51 AM.
Reply With Quote
  #7  
Old 1st April 2008, 02:25 PM
nnn Offline
Registered User
 
Join Date: Mar 2008
Age: 49
Posts: 5
Hello Glenn

Is your johnbonham serving samba through smbfs?

In my case, the server through smbfs could successfully serve several linux client machines (different flavours) while the clients speak through smbfs. So (I think) there are no new issues like visibility, sharing, user name, etc.

The server could not serve the clients which speak through cifs.

NNN
Reply With Quote
  #8  
Old 5th April 2008, 04:50 AM
nnn Offline
Registered User
 
Join Date: Mar 2008
Age: 49
Posts: 5
The usual things to be tried are all had been tried and was unsuccessful.

Had anyone noticed any specific reason for smbfs server denying cifs client?

Please advise.
Reply With Quote
  #9  
Old 5th April 2008, 09:02 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
Quote:
Originally Posted by nnn
Hello Glenn

Is your johnbonham serving samba through smbfs?

In my case, the server through smbfs could successfully serve several linux client machines (different flavours) while the clients speak through smbfs. So (I think) there are no new issues like visibility, sharing, user name, etc.

The server could not serve the clients which speak through cifs.

NNN
Hi. Haven't been prowling this forum too much lately so I didn't see your reply. You mention username. It's been my experience that in order to access the johnbonham machine with another Linux machine that I first need to create a user on the server that is the same as the user on the computer trying to access it. In other words, for glennzo to be able to access johnbonham there needs to be a user account for glennzo on johnbonham.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #10  
Old 5th April 2008, 09:33 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
For what it's worth I just tried this again, sudo mount -t cifs //johnbonham/backup /media/temp -o username="glenn",password="", and it was successful. I can now browse /media/temp and I'm looking at the files on a partition on johnbonham.

Generally speaking though, this Samba stuff is a mess, in my opinion. It works sometimes and then suddenly it won't work anymore. Then it does. Very unreliable. Right now I can mount that share and browse it but I can't open nautilus and connect to johnbonham. Typing in the location bar of Nautilus smb:///johnbonham gets me nothing but an error that says "couldn't display smb:///johnbonham". The location is not a folder. In 10 minutes the thing might decide to start working again. I've basically given up on sharing with Linux. If it works, good. If not I resort to the old sneaker net. I've spent countless hours, over months and years, reading documentation and trying to get networking to work reliably. Just doesn't happen here. Probably a result of my ignorance more than anything else but that's the way it is. I'm to the point where I don't care if it works or not.

Right now there are 3 computers running in this household. Johnbonham sees all three (johnbonham is one of the three). If the other 2 were on it would probably see them too. I can connect to and browse MOM, an XP desktop, but I can't connect to or browse TOSHIBA, a Fedora 8 laptop. From TOSHIBA, all I see is an icon for "Windows Network". Clicking that icon gets me an error so Toshiba can't see the other 2 computers. Going over to the MOM XP box I can see the 2 Linux boxes. I can connect to and browse johnbonham but I can't connect to Toshiba without a username and password. When I enter "glenn" and a password I'm denied access.

I think that instead of really insisting that Samba is a mess that the real cause of my problems are just misconfiguration and a lack of real understanding of how it all works in a mixed OS environment. On your end, you're probably just missing one little thing that's keeping you from total success. Frustrating just the same.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #11  
Old 5th April 2008, 09:40 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
OK, here's what I did next. On the laptop, hostname TOSHIBA. I opened a terminal and typed
Code:
sudo smbpasswd -a glenn
I pressed enter when prompted for a password. No errors returned so I assume that the command was successful. Then while still in the terminal I issued these 2 commands:
Code:
sudo /sbin/service smb restart
sudo /sbin/service nmb restart
I went over to the MOM XP machine and clicked on the icon for TOSHIBA in the browser. When prompted for a username I entered glenn and left the password blank. I was allowed access to TOSHIBA through Samba and can now browse shared folders on same.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
Reply

Tags
22x, cifs, client, denied, error, mount, permission, samba, serving

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba cifs error (mount error 13 = permission denied) jlrq74 Servers & Networking 10 23rd March 2009 06:01 PM
Samba mount has permission denied MgFrobozz Servers & Networking 1 17th October 2006 08:17 PM
FC4/Samba mounts are 'permission denied" skdvr369 Servers & Networking 2 27th March 2006 05:19 AM
Samba net command - permission denied ssdowd Servers & Networking 1 27th July 2005 08:36 PM
Samba on FC3 with win XP pro; Permission denied from XP machine to access FC3 box. aakhws Servers & Networking 15 15th January 2005 07:32 PM


Current GMT-time: 16:52 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat