Dear Eduardo Moraes, We successfully joined the domain using CID. I also want to use "ADD SHARE" to link with nas. The directory of nas is linked to the ad account. Would it be easy for you to know if you think it's %username%?
Can each account directory of nas be linked as it is in windows?
I don't know how to play Ubuntu. I'm so sorry.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I didn't quite understand what you want, but it seems to me that what you want is to automatically mount the user diretories of your NAS server on your Linux clients, correct?!
If so, it is not the "ADD SHARE" function that will help you. This function is used to create shares, when you use it, it is as if you were creating a NAS in your system.
To have automatic access to the shares that are already on your NAS, you can configure the shares.xml file that is exported within the scripts_cid directory for the NETLOGON share of your domain controllers. Check the syntax examples in this file and you will certainly have no difficulties. To set up users' network directories you can use for example the following tag:
This will mount net folder of each user while those users make logon on your Linux clients of AD.
You also don't need to use Ubuntu if you don't want to. The CID was built to work on all or most Linux distributions. Take a look at the README file or the documentation.
Hug!
Last edit: Eduardo Moraes 2020-09-15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Este codigo tem a finalidade de executar um comando para cada item de grupo de um usuario. Podera ser utilizado para ser utilizado no script do usuario.
id -Gn ${USERNAME} |awk '{for (i=1;i<=NF;i++) if ($i~/XXX/){ COMANDO PARA CADA GRUPO ENCONTRADO }}'
onde:
XXX = um uma cadeia de caracteres para evitar leitura de grupos do sistema. essa cadeia tem que esta no nome dos grupos que adicionar ao seu ad. Exemplo; grupo da administracao EMP-administracao, grupo do comercial EMP-comercial no cado desses grupos a cadeia de caracteres seria "EMP-"
exemplo de utilizacao:
desejo adicionar ao bookmarks do nautilos os compartilhamento dos grupos que meu usuario pertence
id -Gn ${USERNAME} |awk '{for (i=1;i<=NF;i++) if ($i~/EMP/){print "smb://SERVIDOR_ARQUIVO/"$i}}' >> ~/.config/gtk-3.0/bookmarks
ATENCAO: a versão do linux testada é a 18 LTS e do nautilus 3,6 pode ser que precise de modificacoes em outras versoes.
Obrigado @emoraes25 por seu trabalho, Espero cooperar com seus usuarios. <><
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"><meta content="Microsoft Word 15 (filtered medium)" name="Generator"><style><!-- /* Font Definitions */ @font-face {font-family:Helvetica; panose-1:2 11 5 4 2 2 2 2 2 4;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:"Malgun Gothic"; panose-1:2 11 5 3 2 0 0 2 0 4;} @font-face {font-family:"Malgun Gothic";} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; text-align:justify; text-justify:inter-ideograph; text-autospace:none; word-break:break-hangul; font-size:10.0pt; font-family:"맑은 고딕",sans-serif;} .MsoChpDefault {mso-style-type:export-only;} /* Page Definitions */ @page WordSection1 {size:612.0pt 792.0pt; margin:3.0cm 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} --></style>
Dear Eduardo Moraes,
We successfully joined the domain using CID.
I also want to use "ADD SHARE" to link with nas.
The directory of nas is linked to the ad account.
Would it be easy for you to know if you think it's %username%?
Can each account directory of nas be linked as it is in windows?
I don't know how to play Ubuntu. I'm so sorry.
Greetings!
I didn't quite understand what you want, but it seems to me that what you want is to automatically mount the user diretories of your NAS server on your Linux clients, correct?!
If so, it is not the "ADD SHARE" function that will help you. This function is used to create shares, when you use it, it is as if you were creating a NAS in your system.
To have automatic access to the shares that are already on your NAS, you can configure the shares.xml file that is exported within the scripts_cid directory for the NETLOGON share of your domain controllers. Check the syntax examples in this file and you will certainly have no difficulties. To set up users' network directories you can use for example the following tag:
<volume fstype="cifs" server="NAS_ADDRESS" path="BASE_SHARE/%(USER)" mountpoint="~/%(USER)" />
This will mount net folder of each user while those users make logon on your Linux clients of AD.
You also don't need to use Ubuntu if you don't want to. The CID was built to work on all or most Linux distributions. Take a look at the README file or the documentation.
Hug!
Last edit: Eduardo Moraes 2020-09-15
Este codigo tem a finalidade de executar um comando para cada item de grupo de um usuario. Podera ser utilizado para ser utilizado no script do usuario.
id -Gn ${USERNAME} |awk '{for (i=1;i<=NF;i++) if ($i~/XXX/){ COMANDO PARA CADA GRUPO ENCONTRADO }}'
onde:
XXX = um uma cadeia de caracteres para evitar leitura de grupos do sistema. essa cadeia tem que esta no nome dos grupos que adicionar ao seu ad. Exemplo; grupo da administracao EMP-administracao, grupo do comercial EMP-comercial no cado desses grupos a cadeia de caracteres seria "EMP-"
exemplo de utilizacao:
desejo adicionar ao bookmarks do nautilos os compartilhamento dos grupos que meu usuario pertence
id -Gn ${USERNAME} |awk '{for (i=1;i<=NF;i++) if ($i~/EMP/){print "smb://SERVIDOR_ARQUIVO/"$i}}' >> ~/.config/gtk-3.0/bookmarks
ATENCAO: a versão do linux testada é a 18 LTS e do nautilus 3,6 pode ser que precise de modificacoes em outras versoes.
Obrigado @emoraes25 por seu trabalho, Espero cooperar com seus usuarios. <><