Difference between revisions of "Samba"
Jump to navigation
Jump to search
Line 37: | Line 37: | ||
/var/lib/samba/private/passdb.tdb | /var/lib/samba/private/passdb.tdb | ||
+ | |||
+ | |||
+ | # Ubuntu 18.04 | ||
+ | |||
+ | vim /etc/pam.d/common-session | ||
+ | ``` | ||
+ | session optional pam_mkhomedir.so skel=/etc/skel umask=077 | ||
+ | ``` |
Revision as of 21:59, 27 April 2020
Setting Up
This seems to work
- https://www.tecmint.com/integrate-centos-7-to-samba4-active-directory/
- https://www.tecmint.com/join-ubuntu-to-active-directory-domain-member-samba-winbind/
Other
- https://www.tecmint.com/integrate-centos-7-to-samba4-active-directory/
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/windows_integration_guide/index#winbind
- https://linuxize.com/post/how-to-install-and-configure-samba-on-ubuntu-18-04/
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/windows_integration_guide/index#winbind
- New-SmbMapping -LocalPath 'O:' -RemotePath '\10.x.x.x\share'
- you can use -username -password
Client
gvfs-mount smb://stay@nas/stay
mount sucks as must be root use above or gui tools
sudo mount -t cifs -o username=myuser //nas/myuser /mnt/smbmount
New-SmbMapping -UserName jtest -password 123123 -LocalPath 'M:' -RemotePath '\10.250.24.12\jtest'
alternatives --display cifs-idmap-plugin
alternatives --set cifs-idmap-plugin /usr/lib/cifs-utils/idmapwb.so
alternatives --set cifs-idmap-plugin /usr/lib64/cifs-utils/cifs_idmap_sss.so
smbpasswd -a jebusk
New-SmbMapping -LocalPath 'O:' -RemotePath '\10.250.24.12\jtest3'
/var/lib/samba/private/passdb.tdb
Ubuntu 18.04
vim /etc/pam.d/common-session
session optional pam_mkhomedir.so skel=/etc/skel umask=077