[SOLVED] shared folders need user/password?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
wiab4355
Level 2
Level 2
Posts: 75
Joined: Sat May 02, 2009 3:49 am

[SOLVED] shared folders need user/password?

Post by wiab4355 » Sat Feb 03, 2018 12:36 pm

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!
Last edited by wiab4355 on Fri Feb 09, 2018 7:58 am, edited 1 time in total.
Ian, an AFC Wimbledon fan (come on, you Dons)

deepakdeshp
Level 9
Level 9
Posts: 2947
Joined: Sun Aug 09, 2015 10:00 am

Re: shared folders need user/password?

Post by deepakdeshp » Sat Feb 03, 2018 2:04 pm

If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18.3 Cinnamon 64 bit with AMD processor . Memory 8GB

wiab4355
Level 2
Level 2
Posts: 75
Joined: Sat May 02, 2009 3:49 am

Re: shared folders need user/password?

Post by wiab4355 » Sun Feb 04, 2018 10:07 am

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!
Ian, an AFC Wimbledon fan (come on, you Dons)

altair4
Level 18
Level 18
Posts: 8870
Joined: Tue Feb 03, 2009 10:27 am

Re: shared folders need user/password?

Post by altair4 » Sun Feb 04, 2018 10:31 am

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
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

wiab4355
Level 2
Level 2
Posts: 75
Joined: Sat May 02, 2009 3:49 am

Re: shared folders need user/password?

Post by wiab4355 » Sun Feb 04, 2018 11:21 am

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!
Ian, an AFC Wimbledon fan (come on, you Dons)

wiab4355
Level 2
Level 2
Posts: 75
Joined: Sat May 02, 2009 3:49 am

Re: shared folders need user/password?

Post by wiab4355 » Tue Feb 06, 2018 11:56 am

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
Ian, an AFC Wimbledon fan (come on, you Dons)

altair4
Level 18
Level 18
Posts: 8870
Joined: Tue Feb 03, 2009 10:27 am

Re: shared folders need user/password?

Post by altair4 » Tue Feb 06, 2018 12:39 pm

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
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

wiab4355
Level 2
Level 2
Posts: 75
Joined: Sat May 02, 2009 3:49 am

Re: shared folders need user/password?

Post by wiab4355 » Wed Feb 07, 2018 12:08 pm

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!
Ian, an AFC Wimbledon fan (come on, you Dons)

altair4
Level 18
Level 18
Posts: 8870
Joined: Tue Feb 03, 2009 10:27 am

Re: shared folders need user/password?

Post by altair4 » Wed Feb 07, 2018 12:40 pm

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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

wiab4355
Level 2
Level 2
Posts: 75
Joined: Sat May 02, 2009 3:49 am

[SOLVED] shared folders need user/password?

Post by wiab4355 » Fri Feb 09, 2018 7:55 am

It worked! Thank you so much.
Ian, an AFC Wimbledon fan (come on, you Dons)

Post Reply

Return to “Newbie Questions”