issue208:c_c
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue208:c_c [2024/08/31 14:26] – créée auntiee | issue208:c_c [2024/09/02 15:44] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Last issue we looked at SAMBA basics and getting a test VM running. If you are planning on writing LPI, know that for some reason, the “weight” on SAMBA is more than others, meaning you are likely to get more questions based thereon. If I remember correctly, it features in all three of the LPIC exams. I’m looking at my old notes here while I write this, so while everything should be technically correct, there may be some things that may be out of date. It has been a while since I taught students and versions do change. However, I generally find that if you know the origins of something, you understand it better. | + | **Last issue we looked at SAMBA basics and getting a test VM running. If you are planning on writing LPI, know that for some reason, the “weight” on SAMBA is more than others, meaning you are likely to get more questions based thereon. If I remember correctly, it features in all three of the LPIC exams. I’m looking at my old notes here while I write this, so while everything should be technically correct, there may be some things that may be out of date. It has been a while since I taught students and versions do change. However, I generally find that if you know the origins of something, you understand it better. |
Just in case you forgot where we are, fire up your VM and let's take a look. Quick recap, (also helps me get my train of thought in-line) | Just in case you forgot where we are, fire up your VM and let's take a look. Quick recap, (also helps me get my train of thought in-line) | ||
Ligne 15: | Ligne 15: | ||
2. nmbd | 2. nmbd | ||
- NETBIOS translator | - NETBIOS translator | ||
- | - Windows browser (like Network neighbourhood) | + | - Windows browser (like Network neighbourhood)** |
- | 3. winbindd | + | Dans le dernier numéro, nous avons abordé les bases de SAMBA et la configuration d'une VM de test. Si vous prévoyez de passer l' |
+ | |||
+ | Au cas où vous auriez oublié où nous en sommes, lancez votre VM et jetons un coup d' | ||
+ | |||
+ | SAMBA est un amalgame de trois démons : | ||
+ | |||
+ | 1. smbd | ||
+ | - verrouillage des ressources | ||
+ | - authentification des utilisateurs | ||
+ | - partage de données via le protocole SMB | ||
+ | - impression | ||
+ | - partage de fichiers | ||
+ | (mnémotechnique (pour l' | ||
+ | |||
+ | 2. nmbd | ||
+ | - Traducteur de NETBIOS | ||
+ | - Navigateur Windows (comme dans voisinage Réseau) | ||
+ | |||
+ | |||
+ | **3. winbindd | ||
- Windows USER and GROUPS translator. | - Windows USER and GROUPS translator. | ||
Via: PAM, NSS RPC | Via: PAM, NSS RPC | ||
Ligne 36: | Ligne 55: | ||
Let’s quickly cover the other basics as well, I’ll put them here, as I have them in *my notes, which my help you remember things easier. At any point, feel free too grab an LPIC book lying about or check on the latest LPIC objectives: https:// | Let’s quickly cover the other basics as well, I’ll put them here, as I have them in *my notes, which my help you remember things easier. At any point, feel free too grab an LPIC book lying about or check on the latest LPIC objectives: https:// | ||
- | As I said before things change (but the more they stay the same?) | + | As I said before things change (but the more they stay the same?)** |
- | Please also check out: https:// | + | 3. winbindd |
+ | - Traducteur des UTILISATEURS et des GROUPES de Windows. | ||
+ | Via : PAM, NSS RPC | ||
+ | - Fait correspondre les utilisateurs de Windows avec ceux de Linux. | ||
+ | |||
+ | NOTE : Samba ne peut pas utiliser /etc/pwd ou /etc/shadow pour authentifier directement les utilisateurs ! | ||
+ | |||
+ | Dans votre VM, assurez-vous que SMB est toujours présent : | ||
+ | |||
+ | ps aux | grep smb | ||
+ | |||
+ | ps aux | nmbd | ||
+ | |||
+ | sudo smbstatus | ||
+ | |||
+ | Le bonheur ? | ||
+ | |||
+ | Couvrons rapidement les autres bases aussi. Je vais les mettre ici, car je les ai dans *mes notes, ce qui peut vous aider à vous souvenir des choses plus facilement. A tout moment, n' | ||
+ | |||
+ | Comme je l'ai déjà dit, les choses changent (mais plus elles restent les mêmes ?). | ||
+ | |||
+ | |||
+ | **Please also check out: https:// | ||
Because our VM server is a blank slate, you may need to install the net-tools package if you want to tun commands such as netstat. | Because our VM server is a blank slate, you may need to install the net-tools package if you want to tun commands such as netstat. | ||
Ligne 50: | Ligne 91: | ||
It is one of the better man pages. It is intense, I know, but I want you to make a bit of an effort and go through it at least once, more if you need to. So if anything went wrong in the previous issue for you, you need to look here. Parameters are in the format of NAME = VALUE | It is one of the better man pages. It is intense, I know, but I want you to make a bit of an effort and go through it at least once, more if you need to. So if anything went wrong in the previous issue for you, you need to look here. Parameters are in the format of NAME = VALUE | ||
- | You may have realised from my list that we do not have SAMBA users. Now just as we were blindly following the Ubuntu SAMBA page, in the previous issue, we will continue, there is a part four there. The problem is they do not say much and a newbie may get caught here. Let’s expand. | + | You may have realised from my list that we do not have SAMBA users. Now just as we were blindly following the Ubuntu SAMBA page, in the previous issue, we will continue, there is a part four there. The problem is they do not say much and a newbie may get caught here. Let’s expand. |
- | We start by adding a generic SMB user, the name is up to you. | + | Consultez également : https:// |
+ | |||
+ | Puisque notre serveur VM est vierge, vous devrez peut-être installer le paquet net-tools si vous souhaitez utiliser des commandes telles que netstat. | ||
+ | |||
+ | sudo apt install net-tools | ||
+ | |||
+ | Dans le dernier numéro, nous nous sommes contentés de configurer cette page : https:// | ||
+ | |||
+ | man smb.conf | ||
+ | |||
+ | C'est l'une des bonnes pages du manuel. C'est intense, je sais, mais je veux que vous fassiez un petit effort et que vous la parcouriez au moins une fois et plus si nécessaire. Ainsi, si quelque chose dans le numéro précédent n'a pas fonctionné pour vous, vous devez regarder ici. Les paramètres se présentent sous la forme NOM = VALEUR. | ||
+ | |||
+ | Vous avez peut-être compris, en lisant ma liste, que nous n' | ||
+ | |||
+ | |||
+ | **We start by adding a generic SMB user, the name is up to you. | ||
At this stage you should know how to add a user. You can use ‘smbpasswd’ to add a password for the newly created user. You cannot use smbpasswd to create and set a password for a user, the user must already exist. | At this stage you should know how to add a user. You can use ‘smbpasswd’ to add a password for the newly created user. You cannot use smbpasswd to create and set a password for a user, the user must already exist. | ||
Ligne 62: | Ligne 118: | ||
“Connect to Server” (see image above) – type : | “Connect to Server” (see image above) – type : | ||
+ | < | ||
smb://< | smb://< | ||
+ | </ | ||
- | A quick demonstration in pictures: | + | Nous commençons par ajouter un utilisateur SMB générique, |
+ | À ce stade, vous devriez savoir comment ajouter un utilisateur. Vous pouvez utiliser « smbpasswd » pour ajouter un mot de passe à l' | ||
+ | |||
+ | Votre devoir se trouve ici : https:// | ||
+ | |||
+ | Mais comment accéder à ce partage SMB à partir d'un autre ordinateur Ubuntu ? | ||
+ | |||
+ | Alors que mon ami cherchait à l' | ||
+ | |||
+ | « Connexion au serveur » (voir l' | ||
+ | < | ||
+ | smb://< | ||
+ | </ | ||
+ | |||
+ | **A quick demonstration in pictures: | ||
1. my server we have been faffing on: my IP address is: 10.0.2.4 | 1. my server we have been faffing on: my IP address is: 10.0.2.4 | ||
2. On my workstation side: | 2. On my workstation side: | ||
Ligne 81: | Ligne 152: | ||
You may see there is says winbindd as well. We did not talk about that, but that is because winbindd is independent and can run on its own. However, I think it is a big enough chunk for this issue, more and you will probably not absorb it all. If I’m going too slow or too fast, please let us know and we can try to adjust accordingly. | You may see there is says winbindd as well. We did not talk about that, but that is because winbindd is independent and can run on its own. However, I think it is a big enough chunk for this issue, more and you will probably not absorb it all. If I’m going too slow or too fast, please let us know and we can try to adjust accordingly. | ||
- | As always: misc@fullcirclemagazine.org | + | As always: misc@fullcirclemagazine.org** |
+ | |||
+ | Une démonstration rapide en images : | ||
+ | 1. Mon serveur sur lequel nous avons travaillé : mon adresse IP est : 10.0.2.4 | ||
+ | 2. Du côté de mon poste de travail : | ||
+ | 3. Je clique sur connect. | ||
+ | 4. Une fois que vous connaissez les noms des partages, vous pouvez les « mapper ». | ||
+ | |||
+ | On dit qu'une image vaut mille mots, alors j' | ||
+ | |||
+ | OK, maintenant côté serveur, si vous souhaitez mettre fin au partage, vous pouvez utiliser systemctl, comme ceci : systemctl stop smbd nmbd - et bien sûr remplacer stop par start pour faire l' | ||
+ | |||
+ | Dernière lecture que je vais vous demander de faire sur votre propre machine aujourd' | ||
+ | |||
+ | man smbdcontrol | ||
+ | |||
+ | Vous verrez peut-être qu'il y a aussi winbindd. Nous n'en avons pas parlé, mais c'est parce que winbindd est indépendant et peut fonctionner seul. Cependant, je pense qu'il s'agit d'un morceau suffisament copieux pour ce numéro ; plus et vous n' | ||
+ | |||
+ | Comme toujours | ||
issue208/c_c.1725107163.txt.gz · Dernière modification : 2024/08/31 14:26 de auntiee