I switched some time ago (2 years ago now)from Windows to Linux Mint and the experience has been great.
For any use other than games Linux has been the superior O.S by a mile. With one exception, networking.
It used to be a struggle back in the earlier days of Linux to get networking happening. Today however it SHOULD be a no-brainer with every home and office having multiple networked devices.
BUT it isn't. My last version 17.3 was an incredible struggle that I just gave up on, I figured given time this problem with sharing from a Linux Mint machine would be fixed. Clearly it hasn't been. I have battled for several days to get Samba working and it just doesn't. Yes I have tried numerous suggestions and "fixes" . It really isn't ok that file sharing in 2017 still doesn't just work out of the box.
My next step is to look into other versions of Linux, to find one that works in a straight forward way. It has prevented me from recommending Linux Mint to my friends as all them would expect such a basic feature to be there and working on install.
My question, can anyone point to a straight forward guide to getting networking up and running on Mint 18.3? All i want to do is to read shared directories and share directories to machines running multiple operating systems.
Networking Observation about Samba and plea for help <resolved>
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Networking Observation about Samba and plea for help <resolved>
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: networking Observation
Well third time around and i got much further.
The shares can be seen in windows, android media centre mac os and mint 17.2.
Won't allow any user to login. Users are valid users on the 18.3 box and valid samba users.
Any ideas or help would be much appreciated.
Thank you.
The shares can be seen in windows, android media centre mac os and mint 17.2.
Won't allow any user to login. Users are valid users on the 18.3 box and valid samba users.
Any ideas or help would be much appreciated.
Thank you.
-
- Level 3
- Posts: 140
- Joined: Wed Jun 15, 2016 4:50 pm
Re: Networking Observation about Samba and plea for help
Show us the output of the command.
Code: Select all
testparm
Re: Networking Observation about Samba and plea for help
Since you didn't mention which Mint 18.3 you are using ( Cinnamon, MATE, XFCE, or the other one ) you might want to post the output of this command as well:
Code: Select all
net usershare info --long
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Networking Observation about Samba and plea for help
Thanks for the offer to help, its cinnamon by the way.
1) testparm:
wayne@wayne-P55-USB3 ~ $ testparm
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 "[print$]"
Processing section "[Finished]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
server string = %h server (Samba, Ubuntu)
server role = standalone server
security = USER
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* .
username map = /etc/samba/smbusers
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
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[Finished]
path = /media/wayne/Seagate Expansion Drive/Finished
read only = No
guest ok = Yes
2) net usershare info --long
Displays nothing.
Not a command I am familiar with but I assume it is meant to display shares of various users.
Any help appreciated
1) testparm:
wayne@wayne-P55-USB3 ~ $ testparm
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 "[print$]"
Processing section "[Finished]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
server string = %h server (Samba, Ubuntu)
server role = standalone server
security = USER
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* .
username map = /etc/samba/smbusers
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
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[Finished]
path = /media/wayne/Seagate Expansion Drive/Finished
read only = No
guest ok = Yes
2) net usershare info --long
Displays nothing.
Not a command I am familiar with but I assume it is meant to display shares of various users.
Any help appreciated
Re: Networking Observation about Samba and plea for help
The problem isn't Samba it's Linux.[Finished]
path = /media/wayne/Seagate Expansion Drive/Finished
read only = No
guest ok = Yes
/media/wayne was created by the system in such a way that only one user can traverse that directory and that user is wayne. The guest user isn't wayne so despite Samba allowing him access to
Seagate Expansion Drive/Finished
Linux prevents it.One soulution is to make the the guest appear appear to be wayne - at least for that one share:
Then restart samba:[Finished]
path = /media/wayne/Seagate Expansion Drive/Finished
read only = No
guest ok = Yes
force user = wayne
Code: Select all
sudo service smbd restart
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Networking Observation about Samba and plea for help
Thank you that worked just fine.
So to avoid this problem I need to create the share from a different user or change ownership?
So to avoid this problem I need to create the share from a different user or change ownership?
Re: Networking Observation about Samba and plea for help
Using the
It will not help much having it mount under a different user since it will just require you to change the "force user" to that user.
The one thing I would not recommend is messing with the permissions of /media/wayne itself. The system creates that folder and some future update to the system may just revert permissions back to the where it wanted it in the first place.
Note on "force user": This operative is invoked after credentials are passed so you could create a share like this if you wanted to limit access to specific users:
force user = $USER
option has become standard practice in normal home networks so there's nothing out of the ordinary in this solution. In fact some folks place the force user operative in the [global] sections of smb.conf so that it will apply to all future shares that are created. It will not help much having it mount under a different user since it will just require you to change the "force user" to that user.
The one thing I would not recommend is messing with the permissions of /media/wayne itself. The system creates that folder and some future update to the system may just revert permissions back to the where it wanted it in the first place.
Note on "force user": This operative is invoked after credentials are passed so you could create a share like this if you wanted to limit access to specific users:
[Finished]
path = /media/wayne/Seagate Expansion Drive/Finished
read only = No
valid users = wayne, altair, agnes
force user = wayne
valid users
will limit access to those on the list but once their credentials are accepted everything they do will be as wayne.Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Networking Observation about Samba and plea for help
Thank you for all the help.