Sudden error: Windows 7 cannot access Linux Mint 20.3 shares

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post please read how to get help
RobertX
Level 4
Level 4
Posts: 248
Joined: Thu Apr 12, 2012 6:09 pm

Re: Sudden error: Windows 7 cannot access Linux Mint 20.3 shares

Post by RobertX »

But the Windows 10 machine also does not see/access the Mint shares as well. Is that on SMBv1 as well?

I've yet to have some time getting back to the output; I need to do some stuff before I can.
RobertX
Level 4
Level 4
Posts: 248
Joined: Thu Apr 12, 2012 6:09 pm

Re: Sudden error: Windows 7 cannot access Linux Mint 20.3 shares

Post by RobertX »

What do you know? There are no problems!

I don't know or why it's like that, but the problem seems to have gone away by itself.

But I'll keep the thread unsolved for a month before closing it to prepare for more problems.

I just have a hunch that fate will not leave me alone by his good graces.
RobertX
Level 4
Level 4
Posts: 248
Joined: Thu Apr 12, 2012 6:09 pm

Re: Sudden error: Windows 7 cannot access Linux Mint 20.3 shares

Post by RobertX »

The problem returned. Here are the respective outputs:

Code: Select all

192.168.1.88

Code: Select all

Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed

Server role: ROLE_STANDALONE

# Global parameters
[global]
	client min protocol = NT1
	log file = /var/log/samba/log.%m
	logging = file
	map to guest = Bad User
	max log size = 1000
	obey pam restrictions = Yes
	pam password change = Yes
	panic action = /usr/share/samba/panic-action %d
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	passwd program = /usr/bin/passwd %u
	server min protocol = NT1
	server role = standalone server
	server string = %h server (Samba, Ubuntu)
	unix password sync = Yes
	usershare allow guests = Yes
	workgroup = TNR
	idmap config * : backend = tdb


[printers]
	browseable = No
	comment = All Printers
	create mask = 0700
	path = /var/spool/samba
	printable = Yes


[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers

Code: Select all

[Documents]
path=/home/bobbyyyu/Documents
comment=
usershare_acl=Everyone:F,
guest_ok=y

[Downloads]
path=/home/bobbyyyu/Downloads
comment=
usershare_acl=Everyone:F,
guest_ok=y

[Videos]
path=/home/bobbyyyu/Videos
comment=
usershare_acl=Everyone:F,
guest_ok=y

[Music]
path=/home/bobbyyyu/Music
comment=
usershare_acl=Everyone:F,
guest_ok=y

[Pictures]
path=/home/bobbyyyu/Pictures
comment=
usershare_acl=Everyone:F,
guest_ok=y
Now for Rowland's request:

Code: Select all

Version 4.15.9-Ubuntu
altair4
Level 20
Level 20
Posts: 10984
Joined: Tue Feb 03, 2009 10:27 am

Re: Sudden error: Windows 7 cannot access Linux Mint 20.3 shares

Post by altair4 »

Your question is this:
Windows 7 cannot access Linux Mint 20.3 shares
But your info states this:
Now for Rowland's request:

Code: Select all

Version 4.15.9-Ubuntu
Mint 20.3 doesn't come with Samba 4.15. Mint 21 does. There is a whole different issue with Mint 21 and it has to do with home folder permissions.

Edit /etc/samba/smb.conf and right under the workgroup = TNR line add this one:

Code: Select all

force user = bobbyyyu
Save the file then restart smbd:

Code: Select all

sudo service smbd restart
Then verify that samba works by going into explorer in Win7 and entering:

Code: Select all

\\192.168.1.88
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
RobertX
Level 4
Level 4
Posts: 248
Joined: Thu Apr 12, 2012 6:09 pm

Re: Sudden error: Windows 7 cannot access Linux Mint 20.3 shares

Post by RobertX »

Yeah, I forgot to mention Mint 21, sorry.

I have a question about that suggestion: does smb.conf recognise system environment variables like $USER?

I want to fashion the .conf file such that everyone logged on to this computer is automatically forced by the .conf file.
RobertX
Level 4
Level 4
Posts: 248
Joined: Thu Apr 12, 2012 6:09 pm

Re: Sudden error: Windows 7 cannot access Linux Mint 20.3 shares

Post by RobertX »

That works, but the question remains: can the CONF file accept variables or do I have to hard code it?
altair4
Level 20
Level 20
Posts: 10984
Joined: Tue Feb 03, 2009 10:27 am

Re: Sudden error: Windows 7 cannot access Linux Mint 20.3 shares

Post by altair4 »

I don't understand the question.

Every local login user? Or every network client user accessing this Mint server?

Every network user will become the user bobbyyyu user when they access the Mint machine which is how they will get past the /home/bobbyyyu folder to the shared folders.

You don't have to use this method. You can change the permissions to the home folder as it was before Ubuntu made the change.

Code: Select all

sudo chmod +x /home/bobbyyyu
But as these are all guest accessible shares any file added with have "nobody" as the owner and bobbyyyu will not be able to edit them. But you have always had this problem with way you've been set up.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
RowlandP
Level 3
Level 3
Posts: 129
Joined: Tue Jan 26, 2021 7:30 am

Re: Sudden error: Windows 7 cannot access Linux Mint 20.3 shares

Post by RowlandP »

RobertX wrote:
Tue Sep 27, 2022 2:43 pm
Yeah, I forgot to mention Mint 21, sorry.

I have a question about that suggestion: does smb.conf recognise system environment variables like $USER?

I want to fashion the .conf file such that everyone logged on to this computer is automatically forced by the .conf file.
No, Samba does not recognise system environment variables, it uses its own variables, such as '%U' for the session username or '%u' for session service username.

You can find out more from 'man smb.conf'

You should either follow altair4's advice or setup Samba users & passwords, but do not use Samba users for the usershares or you will end up with files in the users homedir that the user cannot write to.
Post Reply

Return to “Networking”