LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-15-2022, 01:00 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
Unable to MAP Samba share to Windows


I have two samba shares on host "quadmon":
Code:
[trashbin]
   comment = Main Work Directory
   path = /mnt/novatec/trash
   read only = no
   public = yes
   set mask = 0660

[mfoley]
   comment = mfoley
   path = /mnt/novatec/mfoley
  read only = no  
  public = yes   
  set mask = 0660
From Windows 10 I could map [trashbin], no problem. With [mfoley] I get the error:
Quote:
The network folder specified is currently mapped using a different user name and password. To connect using a different user name and password, first disconnect any existing mapping to this network share.
If I disconnect [trashbin] and try again, I get, "The specified network password is not correct."

I have deleted all credentials in the Windows Credential Manager. I have added the user credentials to smbpasswd, twice in fact; in case I messed it up the 1st time.

I've checked to make sure the mapping user has permission to the shared directory.

Now that I've done all that credential removal and smbpasswd updating, I can no longer even map [trashbin].

I'm out of ideas. What am I doing wrong?
 
Old 09-15-2022, 02:23 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
If [homes] is enabled that would automatically create a share called mfoley if you have a username mfoley on that PC.
 
Old 09-15-2022, 04:23 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by michaelk View Post
If [homes] is enabled that would automatically create a share called mfoley if you have a username mfoley on that PC.
Yes, I've done that in the past, but in this case it is not a user on the local computer. It's just a mapped folder by that name.
 
Old 09-15-2022, 05:26 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I assume you are using the same user name to connect to mfoley as trashbin?
 
Old 09-20-2022, 11:10 AM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by michaelk View Post
I assume you are using the same user name to connect to mfoley as trashbin?
Yes

I don't know if this helps or adds to the confusion. If, logged into the samba sharing host as user mfoley and I do 'smbclient -L localhost -U mfoley' it fails when I enter my pw. If I do 'smbclient -L localhost', no -U, that works after entering the exact same password:
Code:
$ smbclient -L localhost -U mfoley
Password for [WORKGROUP\mfoley]:
session setup failed: NT_STATUS_LOGON_FAILURE

$ smbclient -L localhost 
Password for [WORKGROUP\mfoley]:
Anonymous login successful

        Sharename       Type      Comment
        ---------       ----      -------
        homes           Disk      Home Directory on quadmon
        backup          Disk      Backup Directory
        trashbin        Disk      Main Work Directory
        novatec         Disk      Novatec
        mfoley          Disk      mfoley
        IPC$            IPC       IPC Service (QUADMON Samba Server)
SMB1 disabled -- no workgroup available

Last edited by mfoley; 09-20-2022 at 11:24 AM.
 
Old 09-20-2022, 11:21 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I assume that you verified no other network drive is mapped to mfoley?
 
Old 09-20-2022, 01:09 PM   #7
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by michaelk View Post
I assume that you verified no other network drive is mapped to mfoley?
As far as I know. Both the samba sharing host and the Windows computer have been rebooted several times. The Windows computer shows no drives mapped.

The logfile /var/log/samba.clients has the following:
Code:
[2022/09/20 12:24:44.370030,  0] ../../lib/param/loadparm.c:747(lpcfg_map_parameter)
  Unknown parameter encountered: "set mask"
[2022/09/20 12:24:44.391687,  0] ../../lib/param/loadparm.c:1791(lpcfg_do_service_parameter)
  Ignoring unknown parameter "set mask"
[2022/09/20 12:24:44.391888,  0] ../../lib/param/loadparm.c:747(lpcfg_map_parameter)
  Unknown parameter encountered: "set mask"
[2022/09/20 12:24:44.391957,  0] ../../lib/param/loadparm.c:1791(lpcfg_do_service_parameter)
  Ignoring unknown parameter "set mask"
[2022/09/20 12:24:44.392164,  0] ../../lib/param/loadparm.c:747(lpcfg_map_parameter)
  Unknown parameter encountered: "set mask"
[2022/09/20 12:24:44.392334,  0] ../../lib/param/loadparm.c:1791(lpcfg_do_service_parameter)
  Ignoring unknown parameter "set mask"
[2022/09/20 12:24:44.393041,  0] ../../source3/auth/token_util.c:565(add_local_groups)
  add_local_groups: SID S-1-5-21-1479953959-952874055-1012799137-1001 -> getpwuid(1000) failed, is nsswitch configured?
Does this give any clues? What would go in nsswitch? I've not had to use that before.
 
Old 09-20-2022, 02:03 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
$ smbclient -L localhost -U mfoley
Password for [WORKGROUP\mfoley]:
session setup failed: NT_STATUS_LOGON_FAILURE

$ smbclient -L localhost
Password for [WORKGROUP\mfoley]:
Anonymous login successful
I am guessing your smbpasswd could be messed up.
 
Old 09-23-2022, 01:46 PM   #9
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
I've got it working! Finally. I added the following two directives to smb.conf:
Code:
security = user  (this one was already there)
unix password sync = yes

# and on the shares:

   valid users = myuserid
Not sure which of these made it work. Maybe both.
 
  


Reply

Tags
samba



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
Unable to create Map in MOVE. Is it necessary to install SUMO to create Map in MOVE?? dalalami21 Linux - Software 3 02-01-2013 11:04 AM
Unable to connect to map samba shared folder in windows atiqjaved Linux - Networking 2 12-27-2012 12:32 PM
unable to map windows domain using samba back2preeti Linux - Server 5 03-06-2012 12:06 AM
How do i map samba share in windows xp? ginda Linux - Newbie 3 01-27-2005 12:22 PM

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

All times are GMT -5. The time now is 02:56 PM.

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