Posts: 6,629
Threads: 192
Joined: Apr 2018
Reputation:
271
So, I assume you are referring to the SMB service which can be enabled in a moOde player to share its mount points (NAS, NVMe, Playlists, SDCard) with other devices.
I'm inclined to say moOde's configuration options should be expanded to include setting a username/password for these shares just like I can on my NAS.
Nuisance? Sure, but IMHO it beats poking Windows 11 in the eye with a sharp stick.
Truth in advertising: MS Windows hasn't been the primary OS on any of my computers in a decade. I do have legal copies of 10 Pro and 11 Pro available as guests in VirtualBox on a Linux box but these days I only fire them up once in a while just to get updates or to check on some user's problem. Not up to 22H2 (yet).
Regards,
Kent
Posts: 15
Threads: 1
Joined: Nov 2024
Reputation:
0
Hi TheOldPresbyope,
Yeah, I have the SMB service running then I can either access my music files from a PC or edit any playlists, stuff like that. With the change it just stops that. I had a little look at it but thought it best to ask if there was an official way. Luckily the version of Samba being used automatically detects the signing so no need to add a bunch of stuff in smb.conf. Just the password bit that fails.
It would be nice I guess to define a user and not rely on guest accounts on security grounds as that's one of the first places to look for if you were up to something dodgy on someone's network. Or to just have an account that has the same details as the ssh user if you have it setup maybe.
Thanks for the help.
Posts: 15
Threads: 1
Joined: Nov 2024
Reputation:
0
To get it back working here is what I have done. After an update the smb.conf might need the line adding back.
For a direct replacement of the guest account that works on Windows 11 24H2 and going forwards there are a few options you can add your ssh user account or add a new account.
ssh in to your moode install
sudo -s
Create the new guest user.
useradd moodeguest -m -G users
Give the new guest user a password.
passwd moodeguest
Add the guest user to Samba.
smbpasswd -a moodeguest
Give the moodeguest account a password.
Edit the smb.conf file
nano /etc/samba/smb.conf
Under the Global section add the line
admin users = @users
ctrl x to save the file.
Restart Samba
service smbd restart
That will restore the full functionality as it was with just the password less guest account. The existing password less guest account will also still work. You could also just add your ssh user using smbpasswd and skip creating a new account. To disable the password less guest account if you don't want it, just comment out using # the guest ok = Yes lines in smb.conf.
You can go further if you'd like and have an admin account and a read only account. Like if you want an admin mode and a read only mode create two users like moodeguest and admin. In the global section set the admin users variable to admin instead of the @users group. This will give admin read / write access and moodeguest read only access.
If there is a nicer way let me know. Hope this helps. Now I can listen on my machine again.
Posts: 6,629
Threads: 192
Joined: Apr 2018
Reputation:
271
After a quick review to refresh my aging memory cells, I concede it's devilishly difficult to protect NFS access by more than the usual by-host or by-subnet methods.
Regards,
Kent
Posts: 15
Threads: 1
Joined: Nov 2024
Reputation:
0
I look at it from two angles, there is you can use a password protected account i.e new user then disable the guest access by commenting out the guest ok in the conf. Or you can mix and match, this was more a work around for the guest account issue with Windows moving forwards. I think think in terms of security these days any misbehaving / bad app running on a system will go straight for guest account logins so sort of makes sense to move to a more protected option.
In my workaround I added the existing user account (the ssh account) to the samba database. Either way which ever account is used needs to be added to the samba database. Once the user is added it gets the read only. By setting the admin users = @users gives any users of the users group full permissions. Could also be admin users = protecteduseraccount for say a single account. I didn't try but when creating a user before adding it to samba I think you can use that to ssh in, not sure if it's a member of the sudo group however.
Was just scratching an itch and thought I could help some other users after having many years of enjoyment from the project.