Hello, trying to view and copy files from one desktop and one laptop both using Linux Mint Cinnamon. I have used altair4 avahi-daemon method. When I click network file in nemo this is error message: Could not display "network:///". Nemo cannot handle "network" locations.
lou@lou-P35-DS3L ~ $ net usershare info --long
WARNING: Ignoring invalid value 'share' for parameter 'security'
Can't load /etc/samba/smb.conf - run testparm to debug it
lou@lou-P35-DS3L ~ $ sudo service smbd start
smbd start/running, process 4785
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason:Topic automatically closed 6 months after creation. New replies are no longer allowed.
WARNING: Ignoring invalid value 'share' for parameter 'security'
Error loading services.
Edit smb.conf gksu xed /etc/samba/smb.conf or gksu gedit /etc/samba/smb.conf
Find the line: security = share and change it to security = user
Save the file.
Restart smbd: sudo service smbd restart
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
lou@lou-P35-DS3L ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[Public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
# Global parameters
[global]
workgroup = MONGROUPE
server string = %h server (Samba, Ubuntu)
server role = standalone server
security = USER
map to guest = Bad User
obey pam restrictions = Yes
guest account = lou
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
guest ok = Yes
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[Public]
path = /home/lou/Desktop/Documents/Public
valid users = lou
read only = No
In network I can see both machines. But can not open laptop this message: Unable to mount location, Failed to retrieve share list from server: Connection refused.
lou@lou-ThinkPad-T440 ~ $ net usershare info --long
mkdir failed on directory /var/run/samba/msg.lock: Permission denied
[Public]
path=/home/lou/Public
comment=
usershare_acl=S-1-1-0:F,
guest_ok=n
info_fn: file /var/lib/samba/usershares/mdossier is not a well formed usershare file.
info_fn: Error was Path is not a directory.
When on desktop in network I see both lou-P35-DS3L SMB and lou-ThinkPad-T440 SMB. But if I try to open lou-ThinkPad-T440 SMB I get message: Unable to mount location. On desktop, I can open lou-P35-DS3L SMB and see files shared.
I made sure, on both machine, that I have a file: /etc/avahi/services/samba.service with the content
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h SMB</name> ## Display Name
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
</service-group>
Laptop seems to be the problem now.
There is progress, almost there. I have wanted to take care of this for over a year. At some point I had given up on the matter.
You've got an error suggesting something is messed up with your install of samba itself on lou-ThinkPad-T440. That will happen - especially on Mint - if at some point you uninstalled it and tried to install it again.
Before it gets too complicated what I would do on lou-ThinkPad-T440 is:
[1] Go into /var/lib/samba/usershares and remove all the files you see there. Based in the output of the "net usershare..." command you should see two files: public and mdossier. Just delete them both.
[2] Then I would edit /etc/samba/smb.conf and at the bottom of the file add the share definition for your Public share:
Done. On Thinkpad when I try to open network this is message: Coul not display "network://".Nemo cannot handle "network" locations. I have to go now, will be on line later. Your help is much appreciated.
lstam wrote: ⤴Thu Apr 12, 2018 9:21 am
On Thinkpad when I try to open network this is message: Coul not display "network://".Nemo cannot handle "network" locations.
We are in an infinite loop.
That was in your very first post and it was resolved by doing this:
Right. Works great now! But on desktop I have 3 folders in networking. Names: a, public and public1. Can I delete a and public1. Thanks for your patience and for sharing your knowledge.
By "delete" do you mean going into the desktop and "un-sharing" them? I do not know how to answer that since I don't know what is in "a" and "public1"?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Then restart smbd and nmbd.
Then everyone needs to be rebooted.
It's not worth the effort in my opinion. I personally would leave it alone. You having a working smb.conf why mess with things. Just remember to access the one with the SMB at the end. It's faster and more reliable.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.