LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-08-2018, 09:27 AM   #1
netjess
LQ Newbie
 
Registered: Aug 2018
Location: Oklahoma
Distribution: Ubuntu
Posts: 4

Rep: Reputation: Disabled
Linux SMB file share setup issues


Using Ubuntu 18 LTS, want to use Linux SMB shares at branch offices with AD authentication and file permissions.
Client Windows computer is Windows 10 Pro.

Followed information found online.
https://help.ubuntu.com/lts/serverguide/sssd-ad.html
https://help.ubuntu.com/lts/servergu...tegration.html
https://raymii.org/s/tutorials/SAMBA...ntu_12.04.html

I am trying to use SSSD for AD join/authentication;
Why SSSD over Winbind, "Likewise Open"
https://rhelblog.redhat.com/2015/04/02/sssd-vs-winbind/
https://blog.netnerds.net/2016/04/jo...ectory-domain/
I open Windows Explorer and enter \\servername into the address bar it prompts for credentials. If I enter my AD username and password it says access denied.
If I give it a username that exists on the Linux host in the form of .\username then it will allow me to see the share but double-click on the share to see content prompts me again for permission and returns the message "\\servername\sharename is not accessible. You might not have permissions to use this network resource".

The local account 'testsmb' is a member of nogroup.
File permissions for /srv/samba/share (777):
drwxrwxrwx 2 nobody nogroup 4096 Aug 6 17:28 share
####################################################
SMB.CONF
[global]
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = DOM
...
client signing = yes
client use spnego = yes
kerberos method = secrets and keytab
security = ads
realm = DOMAIN.LOCAL
...
[share]
comment = Ubuntu File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
# testsmb is local account on Linux
valid users = "@DOM\Domain Users",testsmb
######################################################
# /etc/sssd/conf.d/sssd.conf
[sssd]
services = nss, pam
config_file_version = 2
domains = DOMAIN.LOCAL

[domain/DOMAIN.LOCAL]
lookup_family_order = ipv4_only
krb5_store_password_if_offline = True
id_provider = ad
access_provider = ad
# access_provider = simple
override_homedir = /home/%d/%u
simple_allow_users = joe.schmoe@domain.local,john.doe@domain.local
simple_allow_groups = domain users,
# Uncomment if the AD domain is named differently than the Samba domain
ad_domain = domain.local


######################################################
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat systemd sss
group: compat systemd sss
shadow: compat sss
gshadow: files

hosts: files dns
networks: files

protocols: db files
services: db files sss
ethers: db files
rpc: db files

netgroup: nis sss
sudoers: files sss
#########################################################


Thank you for assistance.
Jesse.
 
  


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
Thunar file transfer to smb share hangs v83 Slackware 2 03-06-2014 09:00 AM
SMB Share Issues with Windows Vista & 7 Nuvious Linux - Software 25 02-23-2009 08:45 AM
script to upload backup file to smb share c_mitulescu Linux - Networking 1 03-15-2007 11:34 AM
SMB Share Issues Soulful93 Linux - Networking 7 09-06-2005 06:28 PM
Samba start up questions...Setting up share files and smb.conf file Xeroku Linux - Newbie 1 04-17-2003 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:53 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