LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-27-2010, 02:24 PM   #1
Peterken
Member
 
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 60

Rep: Reputation: 20
cannot connect to samba shares on reinstalled debian


Hi guys, I've reinstalled my debian file server - was running 4.0 and went for a clean 5.04 install.

Everything worked out well, system is running even more smoothly but I cannot connect to the shares.

I had backed up my smb.conf and put that one in place, the users are created + smbpasswd's are set.
Samba is running and yesterday (day of reinstall) I was able to connect without any problem but today I get a
Quote:
<share> not accesible. You might not have permission to use this network resource. Contact.....
An unexpected network error occurred
message.

Smbstatus shows that there has been a connection, the username is listed in /etc/passwd and I entered the password once again but no difference.

At first, I thought there was a problem with file/directory permissions but I have restored the data with rsync so those permissions are like before.

I have read quite some about setting up/configuring Samba and I guess it must have something to do with credentials but no clue to where to look anymore.

Any help is highly appreciated!
Peter
 
Old 04-27-2010, 04:56 PM   #2
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 115Reputation: 115
What do the samba logs say?
 
1 members found this post helpful.
Old 04-27-2010, 05:20 PM   #3
Peterken
Member
 
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 60

Original Poster
Rep: Reputation: 20
Hi zordrak,

Since I was out of options, I did a test in vmware and with the original smb.conf I could read the default shared homedrive. Then only changed the read only option to no and I can write as well.

When I put back the original smb.conf on my physical machine, the nmbd deamon didn't start properly so I rebooted the machine.
Right now I'm stuck with the checking of the file system which takes like forever. This was one of the reasons for reinstalling so I could partition since I thought that those long file systems checks were because of having everything in 1 partition.

Do you know if something has changed in the newest versions of Samba that could cause a problem with my own, very minimalistic smb.conf that was ok before? I cannot access it right now but it has a global section with the users, description, user acces option, writeable setting and 2 shares with path, valid users & comment.

TIA
P.
 
Old 04-27-2010, 05:35 PM   #4
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 115Reputation: 115
What do the samba logs say?

They will help.
 
Old 04-27-2010, 05:39 PM   #5
Peterken
Member
 
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 60

Original Poster
Rep: Reputation: 20
System is still doing this file system check...

There seem to be multiple samba log files, which one is the one to look at?
 
Old 04-27-2010, 05:47 PM   #6
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by Peterken View Post
System is still doing this file system check...

There seem to be multiple samba log files, which one is the one to look at?
You should look at the logs for the machine you are testing from as well as the syslog/messages for the machine itself where the primary daemon process will log what it's doing.
 
  


Reply

Tags
configuration, permissions, samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
connect to samba shares on startup pepsimachine15 Linux - Software 39 07-01-2008 07:28 AM
Samba error when trying to connect to shares remyforbes777 Linux - Software 10 01-28-2007 04:49 PM
samba shares take an age to connect miner49er Linux - Software 5 09-20-2006 01:38 PM
Samba can't connect to Windows shares soren625 Linux - Software 2 01-22-2005 08:25 AM
Can't connect to Windows shares w/ Samba everythingand2 Slackware 7 01-15-2005 10:13 PM


All times are GMT -5. The time now is 10:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration