[SOLVED] shared folders need user/password?
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
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
[SOLVED] shared folders need user/password?
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!
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)
-
- Level 12
- Posts: 4232
- Joined: Sun Aug 09, 2015 10:00 am
Re: shared folders need user/password?
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 19.1 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB
I am using Mint 19.1 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB
Re: shared folders need user/password?
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!
I also couldn't find any references to my problem!
Ian, an AFC Wimbledon fan (come on, you Dons)
Re: shared folders need user/password?
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.
Re: shared folders need user/password?
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)
Re: shared folders need user/password?
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
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)
Re: shared folders need user/password?
All of your shares are of this form:
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:
They all require a samba user name and password to gain access.[Pictures]
path=/home/ian/Pictures
comment=
usershare_acl=Everyone:R,Unix User\ian:F,
guest_ok=n
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.
Re: shared folders need user/password?
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!
Will try this tomorrow. Tonight it's La Traviata!
Ian, an AFC Wimbledon fan (come on, you Dons)
Re: shared folders need user/password?
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.
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.
[SOLVED] shared folders need user/password?
It worked! Thank you so much.
Ian, an AFC Wimbledon fan (come on, you Dons)