linuxÓÐÓòÕʺŹ¦Ð§Âð
linux¿ÉÒÔͨ¹ý×°ÖúÍÉèÖÃsambaЧÀÍÀ´ÊµÏÖÓòÕ˺Ź¦Ð§£º1¡¢Ê¹Óðü¹ÜÀí¹¤¾ß×°ÖÃsambaÈí¼þ°ü£»2¡¢±à¼sambaµÄÖ÷ÉèÖÃÎļþsmb.conf£»3¡¢Ê¹ÓÃnetÏÂÁlinuxϵͳ¼ÓÈëµ½windowsÓòÖУ»4¡¢Ö´ÐС°sudo service smbd restart¡±ÏÂÁîÖØÆôsambaЧÀÍ£¬Ê¹ÉèÖÃÉúЧ¼´¿É¡£
±¾½Ì³Ì²Ù×÷ϵͳ£ºLinux5.18.14ϵͳ¡¢Dell G3µçÄÔ¡£
Linuxϵͳ¿ÉÒÔͨ¹ý×°ÖúÍÉèÖÃSambaЧÀÍÀ´ÊµÏÖÓòÕ˺Ź¦Ð§¡£SambaÊÇÒ»¸ö¿ªÔ´µÄÈí¼þÌ×¼þ£¬¿ÉÒÔÈÃLinuxϵͳ×÷ΪWindowsÍøÂçÇéÐÎÖеÄÎļþ¹²ÏíЧÀÍÆ÷£¬Ö§³ÖÓëWindowsÓò¾ÙÐм¯³É¡£
ÒªÆôÓÃLinuxϵͳµÄÓòÕ˺Ź¦Ð§£¬ÄúÐèÒªÖ´ÐÐÒÔÏ°취£º
1¡¢×°ÖÃSamba£º
ʹÓðü¹ÜÀí¹¤¾ß£¨Èçapt¡¢yumµÈ£©×°ÖÃSambaÈí¼þ°ü¡£ÀýÈ磬ÔÚUbuntuÉÏ¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî¾ÙÐÐ×°Öãº
sudo apt install samba
µÇ¼ºó¸´ÖÆ
2¡¢ÉèÖÃSamba£º
±à¼SambaµÄÖ÷ÉèÖÃÎļþsmb.conf¡£¸ÃÎļþλÓÚ/etc/samba/Ŀ¼Ï¡£Äú¿ÉÒÔƾ֤×Ô¼ºµÄÐèÇó¾ÙÐÐÉèÖ㬿ÉÊÇÖÁÉÙÐèÒªÉèÖÃÒÔÏ»ù±¾²ÎÊý£º
[global] workgroup = YOUR_WORKGROUP security = domain password server = DOMAIN_CONTROLLER_IP_ADDRESS
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬YOUR_WORKGROUPÊÇÄúÒª¼ÓÈëµÄÊÂÇé×éÃû³Æ£¬DOMAIN_CONTROLLER_IP_ADDRESSÊÇWindowsÓò¿ØÖÆÆ÷µÄIPµØµã¡£
3¡¢¼ÓÈëÓò£º
ʹÓÃnetÏÂÁLinuxϵͳ¼ÓÈëµ½WindowsÓòÖС£ÔÚÖÕ¶ËÖÐÖ´ÐÐÒÔÏÂÏÂÁ
sudo net join -U DOMAIN_ADMIN_ACCOUNT
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬DOMAIN_ADMIN_ACCOUNTÊÇWindowsÓòÖоßÓмÓÈëÓòȨÏÞµÄÖÎÀíÔ±Õʺš£
4¡¢ÖØÐÂÆô¶¯SambaЧÀÍ£º
Ö´ÐÐÒÔÏÂÏÂÁîÖØÆôSambaЧÀÍ£¬Ê¹ÉèÖÃÉúЧ£º
sudo service smbd restart
µÇ¼ºó¸´ÖÆ
Íê³ÉÒÔÉÏ°ì·¨ºó£¬ÄúµÄLinuxϵͳ½«³ÉΪWindowsÓòÖеÄÒ»¸ö³ÉÔ±£¬²¢¿ÉÒÔʹÓÃÓòÕ˺žÙÐÐÉí·ÝÑéÖ¤ºÍÎļþ¹²ÏíµÈ²Ù×÷¡£
ÐèҪעÖصÄÊÇ£¬ÒÔÉÏ°ì·¨½öÊÊÓÃÓÚ¼¯³Éµ½WindowsÓòµÄÇéÐΡ£ÈôÊÇÄúÖ»ÊÇÏëÔÚLinuxϵͳÉϽ¨ÉèÍâµØÓû§Õ˺ţ¬ÇëʹÓÃLinuxµÄÓû§ÖÎÀí¹¤¾ß£¨Èçuseradd¡¢usermodµÈ£©¾ÙÐвÙ×÷¡£
ÒÔÉϾÍÊÇlinuxÓÐÓòÕʺŹ¦Ð§ÂðµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡