LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-20-2013, 08:39 AM   #1
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Rep: Reputation: Disabled
Using Samba to Grant Access


I am trying to create a Samba server, and allow a user on the server access to the shared folder. When I login with the account though, it gives me this error message. I set security = user in the configuration file, and installed the libpam-smbpass package.
Attached Thumbnails
Click image for larger version

Name:	upload1.jpg
Views:	47
Size:	11.4 KB
ID:	14280   Click image for larger version

Name:	upload2.jpg
Views:	38
Size:	17.6 KB
ID:	14281  

Last edited by sniper8752; 12-20-2013 at 08:41 AM.
 
Old 12-20-2013, 06:56 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by sniper8752 View Post
I am trying to create a Samba server, and allow a user on the server access to the shared folder. When I login with the account though, it gives me this error message. I set security = user in the configuration file, and installed the libpam-smbpass package.
A few things I can suggest without knowing anything of your configuration:
Ensure that the client is not connected already, as suggested by the error message.
Check the samba log files.
Increase the debug level using smbcontrol and check the logs again.
Isolate the problem by removing PAM.
 
Old 12-20-2013, 09:54 PM   #3
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
I have copied the tail of the log files.

log.smbd:
Code:
  lp_bool(no # Removed the ; from in front - ?): value is not boolean!
[2013/12/20 22:29:31.910285,  0] param/loadparm.c:6180(lp_bool)
  lp_bool(no # Removed the ; from in front - ?): value is not boolean!
[2013/12/20 22:29:32.046915,  0] smbd/server.c:1107(main)
  standard input is not a socket, assuming -D option
[2013/12/20 22:29:32.704343,  0] printing/print_cups.c:110(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2013/12/20 22:29:32.704632,  0] printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2013/12/20 22:35:52.559080,  0] param/loadparm.c:6180(lp_bool)
  lp_bool(no # Removed the ; from in front - ?): value is not boolean!
[2013/12/20 22:35:52.564539,  0] printing/print_cups.c:110(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2013/12/20 22:35:52.565704,  0] printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2013/12/20 22:36:21.161450,  0] param/loadparm.c:6180(lp_bool)
  lp_bool(no # Removed the ; from in front - ?): value is not boolean!
[2013/12/20 22:36:21.167404,  0] printing/print_cups.c:110(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2013/12/20 22:36:21.168664,  0] printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2013/12/20 22:42:33.360108,  0] printing/print_cups.c:110(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2013/12/20 22:42:33.360392,  0] printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
log.nmbd:
Code:
  Samba name server [server] is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.2

  *****
[2013/12/20 12:03:49,  0] nmbd/nmbd.c:331(reload_interfaces)
  reload_interfaces: No subnets to listen to. Waiting..
[2013/12/20 12:08:49,  0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
  *****

  Samba name server [server] is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.2

  *****
[2013/12/20 22:29:32,  0] nmbd/nmbd.c:860(main)
  nmbd version 3.6.3 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/12/20 22:29:32,  0] param/loadparm.c:6180(lp_bool)
  lp_bool(no # Removed the ; from in front - ?): value is not boolean!
[2013/12/20 22:29:32,  0] param/loadparm.c:6180(lp_bool)
  lp_bool(no # Removed the ; from in front - ?): value is not boolean!
[2013/12/20 22:29:55,  0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
  *****

  Samba name server [server] is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.2

  *****
Please let me know if this helps.
 
Old 12-26-2013, 04:31 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
You need to delete all the existing connections made to your samba server from your windows machine. Windows by default stores cache of the last username/password used to access the share so you will have to delete the existing cache before reattempting to connect.

Type this on windows cmd prompt
Code:
> net use
This will show you the existing share connections to your windows machine

Now delete the share cache for your samba server using the below command
Code:
> net use "\\path\to\share" /user:"domain\username" "password"
Try to reconnect using your new credential

Last edited by deep27ak; 12-26-2013 at 04:33 AM.
 
  


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
How can I grant an already created user shell access? redhat19 Linux - Server 5 08-15-2013 03:32 PM
[SOLVED] Grant access to /home but no higher rebelscum1 Linux - Newbie 6 09-13-2012 11:17 AM
Grant Access Mercurius Slackware 18 12-10-2006 12:27 AM
Howto grant access for a user to qtparted? powadha Debian 2 06-17-2005 03:18 AM
grant a user access to /fat-c n0x Slackware 4 05-02-2004 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:47 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