DESCRIPTION¶
smbstatus is a very simple program to list the current Samba connections.
OPTIONS¶
The higher this value, the more detail will be logged to the log files about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 is a reasonable level for day-to-day running — it generates a small amount of information about operations carried out.
Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic.
How do I view what version of samba I am running for my domain controler?
Is there a command line way to see what version of Samba I am running?
![]()
3 Answers 3
Use the smbstatus command from the shell to get an output like this Samba version 3.0.25b-1.el5_1.4
Just enter below command on your terminal
![]()
![]()
For the Linux Samba version type :
But I guess your domain controller needs is the SMB Protocol version you are using, you can find it by typing :
-
The Overflow Blog
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.6.16.43501
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Checking SMB Version
Is there a command like Get-SmbConnection in Windows to check what version of smb protocol I’m currently using on my share points?
![]()
![]()
1 Answer 1
To see your SMB versions that are being used run the following command on the server:
As we can see by the above, one of my Linux boxes is connecting using SMB3.0.2 protocol version.
Hope this helps!
![]()
-
The Overflow Blog
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.6.16.43501
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
IgorKa — Информационный ресурс
Немного обо всем и все о немногом, или практический опыт системного администратора.

| Пн | Вт | Ср | Чт | Пт | Сб | Вс |
|---|---|---|---|---|---|---|
| « Янв | Март » | |||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Samba, Ubuntu и Windows-окружение
10 февраля 2010, 14:01
Я уже упоминал, что на моем рабочем компьютере установлена Ubuntu 9.10. На рабочих станциях пользователей Windows XP. Сервера есть как с Linux так и с Windows Server. Контроллером домена выступает Windows Server 2003. Необходимо организовать доступ с Windows-компьютеров в свою домашнюю папку на компьютере с Ubuntu. Доступ только для себя. Другим пользователям там делать нечего 🙂
Сначала устанавливаю пакет samba:
Установленная версия samba — 3.4.0. Чтобы узнать версию пакета samba можно выполнить команду smbstatus:
$ sudo smbstatus
[ sudo ] password for igor:
No locked files
Затем вношу изменения в файл /etc/samba/smb.conf. Устанавливаю следующие значения:
где mydomain — имя домена.
Данная запись говорит о том, что пользователь должен иметь учетную запись на компьютере где установлена samba (то есть на моем компьютере с Ubuntu).
Далее внес изменения в разделе Share Definitions, чтобы получилось так как представлено ниже:
#======================= Share Definitions =======================
# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user’s home directory as \\server\username
[ homes ]
comment = Home Directories
browseable = no
# By default, the home directories are exported read-only. Change the
# next parameter to ‘no’ if you want to be able to write to them.
read only = no
Параметр read only устанавливаем в no только в том случае если необходима возможность записи в домашний каталог с Windows-компьютера через самбу.
После внесения и сохранения изменений перезапускаю демон samba:
Теперь устанавливаю для своей учетной записи в Ubuntu пароль для подключения к samba:
$ sudo smbpasswd -a igor
[ sudo ] password for igor:
New SMB password:
Retype new SMB password:
Здесь есть маленький фокус. Если учетная запись в домене совпадает с учетной записью на компьютере с Ubuntu, а в моем случае так и есть, то если я установлю пароль на доступ к самбе такой же как и для учетной записи в домене — его не придется вводить на Windows-компьютере. То есть если я захожу на компьютер с Windows XP под учетной записью igor@mydomain, то набрав в проводнике адрес \\adm-ubuntu\igor\ я сразу попадаю в свой домашний каталог без ввода пароля. Я себе так и сделал.