Page 1 of 1

[SOLVED] shared folders need user/password?

Posted: Sat Feb 03, 2018 12:36 pm
by wiab4355
In trying to use an old RPi as a media player (downstairs, connected to a TV), I came across the subject problem even though I cleared the shared folders (upstairs, on a desktop PC running LM18) to be accessed by every/anyone.

Don't know where to go from here. Not even sure if it's a Pi issue or a Linux one!

Re: shared folders need user/password?

Posted: Sat Feb 03, 2018 2:04 pm
by deepakdeshp

Re: shared folders need user/password?

Posted: Sun Feb 04, 2018 10:07 am
by wiab4355
Thanks for the link, but I'm afraid 90% of it went over my head.

I also couldn't find any references to my problem!

Re: shared folders need user/password?

Posted: Sun Feb 04, 2018 10:31 am
by altair4
I'm assuming the shared folder is on the Mint system. If that is so please post the output of the following commands:

Code: Select all

testparm -s

Code: Select all

net usershare info --long

Re: shared folders need user/password?

Posted: Sun Feb 04, 2018 11:21 am
by wiab4355
The shared folders are indeed on the Mint system, but as I don't live in the same house, this will have to wait until tomorrow!

Re: shared folders need user/password?

Posted: Tue Feb 06, 2018 11:56 am
by wiab4355
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$]"
Loaded services file OK.
WARNING: The 'netbios name' is too long (max. 15 chars).

Server role: ROLE_STANDALONE

# Global parameters
[global]
server string = %h server (Samba, Ubuntu)
server role = standalone server
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
browseable = No


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



[Pictures]
path=/home/ian/Pictures
comment=
usershare_acl=Everyone:R,Unix User\ian:F,
guest_ok=n

[Videos]
path=/home/ian/Videos
comment=
usershare_acl=Everyone:R,Unix User\ian:F,
guest_ok=n

[Music]
path=/home/ian/Music
comment=
usershare_acl=Everyone:R,Unix User\ian:F,
guest_ok=n

Re: shared folders need user/password?

Posted: Tue Feb 06, 2018 12:39 pm
by altair4
All of your shares are of this form:
[Pictures]
path=/home/ian/Pictures
comment=
usershare_acl=Everyone:R,Unix User\ian:F,
guest_ok=n
They all require a samba user name and password to gain access.

So if you wanted the linux user ian to gain access to the share you need to have him added to the samba password database:

Code: Select all

sudo smbpasswd -a ian

Re: shared folders need user/password?

Posted: Wed Feb 07, 2018 12:08 pm
by wiab4355
Am I getting this right? If I run "sudo smbpasswd -a ian", then then kodi/pi will just access these folders? It's that simple?

Will try this tomorrow. Tonight it's La Traviata!

Re: shared folders need user/password?

Posted: Wed Feb 07, 2018 12:40 pm
by altair4
Nope.

Your client to this samba server will be prompted for a user name and password. The client will then have to pass the username of ian with his samba password.

[SOLVED] shared folders need user/password?

Posted: Fri Feb 09, 2018 7:55 am
by wiab4355
It worked! Thank you so much.