I’m trying to setup a samba share to acces my files from a windows 11 pc.
I have followed this guide:
Whenever i try to acces to share from the windows pc or using the KDE file manager i’m getting acces denied when it asks for a username and password.
i made a user with the command:
sudo smbpasswd -a nick
I’m also able to change the password using this command.
My config files is as follows:
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
#
# Note:
# SMB1 is disabled by default. This means clients without support for SMB2 or
# SMB3 are no longer able to connect to smbd (by default).
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
# Install samba-usershares package for support
include = /etc/samba/usershares.conf
log level = 3
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[shared]
comment = My Share
path = /home/nick/shared
writeable = yes
browseable = yes
public = yes
create mask = 0644
directory mask = 0755
write list = user
I dont think that’s the culprint. I first made a folder called ‘share’ but that gave the same authentication error so i tried again with a folder called ‘shared’.
I just added the ‘share’ folder back to the smb.conf file but i can’t acces it neither.
In your smb.conf your workgroup is named SAMBA is that the name on the win computer.If not you might change the workgroup to workgroup = WORKGROUP which should be the name of the win computer.
I tried to follow the Quick Doc. And it works.
I get
smbclient //localhost/share -U alessio
Password for [SAMBA\alessio]:
Try "help" to get a list of possible commands.
smb: \> ls
NT_STATUS_ACCESS_DENIED listing \*