Jump to content


Photo

Upgrade from 4.0 to 6.1 and samba password KO.


  • Please log in to reply
62 replies to this topic

Re: Upgrade from 4.0 to 6.1 and samba password KO. #61 mackguil

  • Senior Member
  • 158 posts

0
Neutral

Posted 12 May 2018 - 22:12

No. Samba 4 no longer supports linux user accounts, and until now no real solution has been created.

 

It's on the todo list, but if I understand the samba team correctly, they are not going to re-introduce this feature.

 

Ok and whu not just create samba user, with "smbpasswd -a usernane", like in open pli 4.0 ?



Re: Upgrade from 4.0 to 6.1 and samba password KO. #62 WanWizard

  • PLi® Core member
  • 68,309 posts

+1,719
Excellent

Posted 12 May 2018 - 22:32

That is a possible alternative, but I think that requires additional packages to be build. Not really my area of expertise, so some has to dive into that.

 

Problem is a bit that our develop environment has already had an OE update in preparation of OpenPLi 7, which is no longer compatible with what 6.x is using. This makes development and testing a bit harder.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Upgrade from 4.0 to 6.1 and samba password KO. #63 pietjepuk

  • Senior Member
  • 48 posts

0
Neutral

Posted 3 July 2018 - 12:29

I have similar issues, 

I removed samba with opkg move /etc/samba -. /etc/samba.sav and /var/lib/samba -> /var/iib/samba.sav

 

Did a opkg install samba.

Coupe of issues, no /etc/samba/smb.conf file was installed

No directory /var/lib/samba/private/msg.sock was created ( error from smbs: mkdir failed on directory /var/lib/samba/private/msg.sock: No such file or directory)

 

​Added a smb.conf file as mentioned in a few posts above.

Added:

log file = /tmp/smb.log

log level = 2 auth:10 passdb:4 auth_audit:5

 

[MyMusic]

  comment = Music Library for Sonos

  path = /media/hdd/MyMusic

  read only = no

  guest ok = no

  valid users = root

 

Tried to connect to a share using root:

 

In log file:

[2018/07/03 12:18:55.407123,  5, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/auth_util.c:117(make_user_info_map)

  Mapping user [VUDUO2]\[root] from workstation [PBOFFICEMINI]

[2018/07/03 12:18:55.407202,  5, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/user_info.c:62(make_user_info)

  attempting to make a user_info for root (root)

[2018/07/03 12:18:55.407254,  5, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/user_info.c:70(make_user_info)

  making strings for root's user_info struct

[2018/07/03 12:18:55.407308,  5, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/user_info.c:108(make_user_info)

  making blobs for root's user_info struct

[2018/07/03 12:18:55.407358, 10, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/user_info.c:159(make_user_info)

  made a user_info for root (root)

[2018/07/03 12:18:55.407406,  3, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/auth.c:178(auth_check_ntlm_password)

  check_ntlm_password:  Checking password for unmapped user [VUDUO2]\[root]@[PBOFFICEMINI] with the new password interface

[2018/07/03 12:18:55.407460,  3, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/auth.c:181(auth_check_ntlm_password)

  check_ntlm_password:  mapped user is: [VUDUO2]\[root]@[PBOFFICEMINI]

[2018/07/03 12:18:55.407509, 10, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/auth.c:190(auth_check_ntlm_password)

  check_ntlm_password: auth_context challenge created by random

[2018/07/03 12:18:55.407618, 10, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/auth.c:192(auth_check_ntlm_password)

  challenge is: 

[2018/07/03 12:18:55.407690, 10, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/auth_builtin.c:41(check_guest_security)

  Check auth for: [root]

[2018/07/03 12:18:55.407738, 10, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/auth.c:233(auth_check_ntlm_password)

  check_ntlm_password: guest had nothing to say

[2018/07/03 12:18:55.407792, 10, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/auth_sam.c:75(auth_samstrict_auth)

  Check auth for: [root]

[2018/07/03 12:18:55.407930,  3, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/check_samsec.c:400(check_sam_security)

  check_sam_security: Couldn't find user 'root' in passdb.

[2018/07/03 12:18:55.408001,  5, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/auth.c:252(auth_check_ntlm_password)

  check_ntlm_password: sam authentication for user [root] FAILED with error NT_STATUS_NO_SUCH_USER

[2018/07/03 12:18:55.408058,  2, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/auth.c:315(auth_check_ntlm_password)

  check_ntlm_password:  Authentication for user [root] -> [root] FAILED with error NT_STATUS_NO_SUCH_USER

[2018/07/03 12:18:55.408137,  3, pid=10766, effective(0, 0), real(0, 0), class=auth] ../source3/auth/auth_util.c:1602(do_map_to_guest_server_info)

  No such user root [VUDUO2] - using guest account

 
So smbd still uses local passwd file and not just unix passwd file.
 
Do we need smbpasswd to get the root user in the local smb passwd file?



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users