Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Last edited by sniper8752; 12-20-2013 at 08:41 AM.
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.
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
*****
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"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.