here i'm using credentials for the folder permissions, the credentials are service account that created form AD and assigned them to the directory permissions
credential username and password are stored in my linux server
#vi /etc/samba/credentials/.my_access
username=aduser
password=abcde
domain=boobi.com
#cd /
#mkdir mount_path
#chmod -R 775 /mount_path
# mount -t cifs -o credentials=/etc/samba/credentials/.my_access,rw,gid=501,uid=501,dir_mode=0775,file_mode=0774 //windows_server/path/path /mount_path
# vi /etc/fstab
//windows_server/path/path /mount_path cifs credentials=/etc/samba/credentials/.my_access,rw,gid=501,uid=501,dir_mode=0775,file_mode=0774 //windows_server/path/path /mount_path 0 0
0 Comments