Edit smb.conf and find a line like this,

smb ports = 445 139

change this default port to

smb ports = 2222 2000

Then restart samba server. Now samba server should be listening on the new ports that you have mentioned.

For more info on customizing samba server click here for documentation.

N.B. : Use port number above 1024 as these are reserved for system purpose.


了解 Starx's Home 的更多信息

订阅后即可通过电子邮件收到最新文章。

分类: Linux