LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-22-2020, 08:20 PM   #1
seahawkJa
LQ Newbie
 
Registered: May 2020
Posts: 2

Rep: Reputation: Disabled
"Access denied" Samba


Hi all:

Been doing Linux/Samba for quite awhile, but recently setup a new Fedora 32 server with Samba 4.12.2.

I have been getting this problem with a Windows 7 64 Pro trying to access a samba share on the new server.
I can see the server and the share from the Windows computer, but when trying login with correct credentials get "Access denied" message. I have researched this problem without finding a solution, so any help would be appreciated

smbclient -L NEHServer -U myusername
Enter NEH\myusername's password:

Sharename Type Comment
--------- ---- -------
netshare Disk Directory for NEH company
IPC$ IPC IPC Service (Samba Server Version 4.12.2)
SMB1 disabled -- no workgroup available

[root@NEHServer /]#

/etc/samba/smb.conf

[global]
unix charset = UTF-8
workgroup = NEH
server string = Samba Server Version %v
netbios name = NEHSERVER
hosts allow = 127. 192.168.15.
hosts deny = 0.0.0.0
protocol = SMB3
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
load printers = yes
cups options = raw

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes

[netshare]
comment = Directory for NEH company
path = /home/netshare
public = no
guest ok = no
valid users = @netshare
write list = @netshare
browseable = yes
writable = yes
create mask = 0770
force create mode = 0770
force group = smbgroup

I have used pretty much the same smb.conf up to Fedora 28 without any problems.
I had also tried min protocol = SMB2 with the same results.

[root@NEHServer home]# ls -l
total 24
drwx------. 3 butch butch 4096 May 20 15:00 butch
drwx------. 2 root root 16384 Jan 25 2016 lost+found
drwxrwx---. 2 butch smbgroup 4096 May 19 15:29 netshare
[root@NEHServer home]#

Any thoughts on a solution would be greatly appreciated.

seahawkJa

Last edited by seahawkJa; 05-22-2020 at 08:24 PM. Reason: Additional info
 
Old 05-23-2020, 04:51 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
You have a different issue to the one being discussed by the OP. Always best to start your own thread, rather than tacking onto someone else's. Anyway, review blog this to start with.

Last edited by ferrari; 05-23-2020 at 05:08 AM.
 
Old 07-03-2020, 12:44 AM   #3
xpire0215
LQ Newbie
 
Registered: Jul 2020
Posts: 1

Rep: Reputation: Disabled
Have you tried 'smbpasswd' for setting password for your user?
 
Old 07-03-2020, 10:22 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
In addition to the above:

Windows 7 supports SMB V2 not V3 as far as I know so you should set the min protocol back to SMB2.

Fedora uses selinux. If not disabled you need to add the share or clients will not be able to access it.

https://www.tecmint.com/setup-samba-...ndows-clients/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot access samba shares from any computer; access is denied. SalemGB Linux - Server 3 08-26-2015 09:02 AM
du gives error : "du: cannot access `./.gvfs': Permission denied"du: cannot access `. MihirSahasrabudhe Linux - Security 4 12-29-2009 11:10 AM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM
squid "access.log" access denied no user name jatender Linux - Server 1 10-02-2007 04:28 AM
Access denied when attempting access samba share warlockvix Linux - Software 1 05-11-2007 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration