LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-23-2013, 05:04 AM   #1
ali.abry
Member
 
Registered: Feb 2013
Posts: 74

Rep: Reputation: Disabled
problem with samba , can't access shares in win7 nor ubuntu


Hi every body

i just setup samba4 in ubuntu 12.04 but in windows7 it dose not accept password or username when i want to access my share.
in ubuntu when i try to access my share , it shows shared files , but it give this error :
Code:
Failed to mount Windows share
here is my share section :
Code:
[test]
        comment = Ubuntu File Server
        path = /var/smb-share
        browsable = yes
        guest ok = no
        read only = no
        writable = yes
        available = yes
        public = no
        create mask = 0755
        valid users = lili
i already added users to samba by smbpasswd .


out put of testparm :
Code:
# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[test]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
	workgroup = PC
	server string = %h server (Samba, Ubuntu)
	map to guest = Bad User
	obey pam restrictions = Yes
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	unix password sync = Yes
	syslog = 0
	log file = /var/log/samba/log.%m
	max log size = 1000
	dns proxy = No
	usershare allow guests = Yes
	panic action = /usr/share/samba/panic-action %d
	idmap config * : backend = tdb

[test]
	comment = Ubuntu File Server
	path = /var/smb-share
	valid users = lili, alieblice
	read only = No
	create mask = 0755

[printers]
	comment = All Printers
	path = /var/spool/samba
	create mask = 0700
	printable = Yes
	print ok = Yes
	browseable = No

[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers
 
Old 06-23-2013, 06:27 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
Which version of Samba are you using?

You say you can see the shared files from Ubuntu, but still get an error message? How do you get to see the files, and under what circumstances does the error message appear?

What (if anything) appears in the smbd log when you attempt to connect/authenticate? Any messages from PAM in the security log?
 
Old 06-23-2013, 06:51 AM   #3
ali.abry
Member
 
Registered: Feb 2013
Posts: 74

Original Poster
Rep: Reputation: Disabled
thanks for reply

i use samba 4.0.0alpha18

i go to nautilus then :
Files tab > Connect to server > windows share
it shows me the share files and when i click on them it gives the error (Failed to mount Windows share)

theres nothing in log files about authentication failure. here is my entire log file :

Code:
# cat /var/log/samba/log.%m 
[2013/06/23 04:14:50,  0] ../source4/smbd/server.c:366(binary_smbd_main)
  samba version 4.0.0alpha18 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2012
[2013/06/23 04:14:50,  0] ../source4/smbd/server.c:461(binary_smbd_main)
  samba: using 'standard' process model
[2013/06/23 04:14:50,  0] ../source4/smbd/service_task.c:35(task_server_terminate)
  task_server_terminate: [ldap_server: no LDAP server required in standalone configuration]
[2013/06/23 04:14:50,  0] ../source4/smbd/service_task.c:35(task_server_terminate)
  task_server_terminate: [cldap_server: no CLDAP server required in standalone configuration]
[2013/06/23 04:14:50,  0] ../source4/smbd/service_task.c:35(task_server_terminate)
  task_server_terminate: [kdc: no KDC required in standalone configuration]
[2013/06/23 04:14:50,  0] ../source4/smbd/service_task.c:35(task_server_terminate)
  task_server_terminate: [dreplsrv: no DSDB replication required in standalone configuration]
[2013/06/23 04:14:50,  0] ../source4/smbd/service_task.c:35(task_server_terminate)
  task_server_terminate: [Cannot start Winbind (standalone configuration): Failed to find record for ALI in /var/lib/samba/private/secrets.ldb: No such object: (null): Have you provisioned this server (ALI) or changed it's name?]
[2013/06/23 04:14:50,  0] ../source4/smbd/service_task.c:35(task_server_terminate)
  task_server_terminate: [kccsrv: no KCC required in standalone configuration]
 
Old 06-23-2013, 07:21 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
Quote:
Originally Posted by ali.abry View Post
i use samba 4.0.0alpha18
That is a) really old, and b) alpha-quality software. The current version is 4.0.6 (or 3.6.16 for the non-AD 3.x branch).

You should consider upgrading to the latest 4.x release, or perhaps use the 3.x version instead. If you're not going to use the AD DC functionality, 3.x might be a better choice right now.

Quote:
Originally Posted by ali.abry View Post
i go to nautilus then :
Files tab > Connect to server > windows share
it shows me the share files and when i click on them it gives the error (Failed to mount Windows share)
You mean it shows you the share, but fails to connect, right? You can't actually see the files because of the authentication error?

Quote:
Originally Posted by ali.abry View Post
theres nothing in log files about authentication failure. here is my entire log file :
Do you have a log file called /var/log/samba/log.smbd or possibly /var/log/samba/log.smbd.something (where something will be a host name of some kind)?

For PAM-related security messages, check /var/log/secure.
 
Old 06-23-2013, 07:50 AM   #5
ali.abry
Member
 
Registered: Feb 2013
Posts: 74

Original Poster
Rep: Reputation: Disabled
i will install 3.x version since i just going to do simple file sharing.
i have only one log file :
Code:
# ls /var/log/samba/
log.%m
i don't have /var/log/secure .

it's some kind of odd that i have alpha version of samba since im using ubuntu LTS version i think i should have newer version .
 
Old 06-23-2013, 08:15 AM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
Quote:
Originally Posted by ali.abry View Post
i don't have /var/log/secure .
My mistake. It seems Ubuntu logs authentication-related information in /var/log/auth.log.
 
1 members found this post helpful.
Old 06-23-2013, 12:39 PM   #7
ali.abry
Member
 
Registered: Feb 2013
Posts: 74

Original Poster
Rep: Reputation: Disabled
problem solved

thanks to "Ser Olmy" i guided to the right version of samba so i changed samba4 to samba 3 on debian this time not ubuntu and it works fine .

it seems that ubuntu is not going to release samba4 stable version for ubuntu 12.04 and latest samba4 version on debian is 4.0.0beta2 more information about this can be found in here :
http://ubuntuforums.org/showthread.php?t=2094243
 
  


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
[SOLVED] Samba file shares & Security: WinXP connects, Win7 fails ShadowCat8 Linux - Server 1 01-05-2013 03:18 AM
Need help upgrading Samba B.C. Win7 Cant access shares davide123 Linux - Software 9 12-06-2010 03:13 PM
[SOLVED] After Upgrading from Win7-32 to WIN7-64 can't mount cifs shares pobrika Linux - Networking 2 07-21-2010 08:15 PM
Cant access samba shares in Ubuntu 10.04 from Windows (XP or Vista) jabird Linux - Server 5 07-10-2010 09:08 PM
Ubuntu 8.04 in windows network cannot get write access for all samba shares cliffsur Linux - Newbie 6 09-18-2008 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:58 AM.

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