In order to be able to access a Samba share on a remote client as a mounted file system execute the following command, as root on the client:
mount -t cifs -o user=<user-on-samba-share,uid=<uid-on-local-macheine,gid=<gid-on-local-machine,rw,workgroup=<your-workgroup//ip/share /mnt/mount-point-dir
You will be prompted for the password for the user defined on the Samba server.
If you are able to authenticate, and then get the following error:
ls: reading directory .: Permission denied
Check the SELinux context type of the directory on → Continue reading “Mounting a Samba Share From Linux Client to Linux Samba Server”
Using ADSI Edit, navigate to the user in question. Right-click on the user and select Properties.
Then, scroll down to the ‘userAccountControl’ property and click the Edit button.
66048 into the field and then click ‘OK’ and then ‘Apply’.
After closing the edit window, scroll to the right to confirm that the value indicates the following
'0x10200 = (NORMAL_ACCOUNT|DONT_EXPIRE_PASSWORD)'
→ Continue reading “How to Configure a User Account in Active Directory So that the Password Never Expires”
I am currently working on setting up multiple environments for a new project (DEV, QA, and PROD) and will be integrating all of the servers to an Active Directory Domain Controller for user management.
Following are notes from when I configured a Fedora Core 18 laptop to integrate with an AD server. It is likely things have changed some from then and I will update this as required for a current version of RHEL7/CentOS 7.
Install the following packages
→ Continue reading “How to Configure a Linux Client for Active Directory Authentication”
Often administrators would like to configure a Samba share that enables users to have the same access to any files within the share. Without some additional configuration, directories and files created by one user will not have the r/w permissions for other users that have access to that same share.
The end goal is to have a Samba share in which any new files are created with r/w permissions for a specific group to which all of the members of → Continue reading “Creating a Samba Share and Configuring an Access Control List for a Shared Directory Under Linux”