I have tried to remove the sharing through nautilus, by going right-click on the folder and to share and remove the tick, but the system sets it right back again. I have tried with the root account too, but that account does not even have the option to remove the share.
Could I just to into the /var/lib/samba/usershares and clear out the files in there, perhaps?
I ran the commands you said and the output does not look good, does it?
Also just today I started getting the error you see on the very top just when I open the terminal:
---------
bash: /usr/bin/mint-fortune: No such file or directory
Mint@user1 ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[shared data]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = Home
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
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
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[shared data]
path = /home/user1/Downloads
force user = user1
read only = No
guest ok = Yes
user1@Mint ~ $ net usershare info --long
info_fn: file /var/lib/samba/usershares/factura&pagos is not a well formed usershare file.
info_fn: Error was Path is not a directory.
info_fn: file /var/lib/samba/usershares/iva_21 is not a well formed usershare file.
info_fn: Error was Path is not a directory.
info_fn: file /var/lib/samba/usershares/nominas is not a well formed usershare file.
info_fn: Error was Path is not a directory.
[MM]
path=/home/user1/Downloads/MM
comment=
usershare_acl=Everyone:F,
guest_ok=n
[Sirim2012_julio]
path=/home/user1/Downloads/MM/Sirim2012_julio
comment=
usershare_acl=Everyone:F,
guest_ok=n
info_fn: file /var/lib/samba/usershares/pagos is not a well formed usershare file.
info_fn: Error was Path is not a directory.
[curris]
path=/home/user1/Downloads/MM/curris
comment=
usershare_acl=Everyone:R,USER1\(null):F,
guest_ok=n
[Pedidos]
path=/home/user1/Downloads/MM/Pedidos
comment=
usershare_acl=Everyone:F,
guest_ok=n
[Apertura]
path=/home/user1/Downloads/MM/Apertura
comment=
usershare_acl=Everyone:F,
guest_ok=n
[Gestoria]
path=/home/user1/Downloads/MM/Gestoria
comment=
usershare_acl=Everyone:F,
guest_ok=n
[CC_MM]
path=/home/user1/Downloads/MM/CC_MM
comment=
usershare_acl=Everyone:R,USER1\(null):F,
guest_ok=n
[Swatch]
path=/home/user1/Downloads/MM/Swatch
comment=
usershare_acl=Everyone:F,
guest_ok=n
[Varios]
path=/home/user1/Downloads/MM/Varios
comment=
usershare_acl=Everyone:F,
guest_ok=n
[BckupHistorico]
path=/home/user1/Downloads/MM/BckupHistorico
comment=
usershare_acl=Everyone:F,
guest_ok=n
user1@Mint ~ $ ^C
-----------------------------
Thanks for taking the time