• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

Share một folder với full permission trên Ubuntu sang máy Windows không cần password

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Share một folder với full permission trên Ubuntu sang máy Windows không cần password

    Code:
    [SIZE=14px]root@smb:~# apt -y install sambaĐầu tiên, chúng ta cài đặt gói Samba:
    
    Tạo thư mục share:
    Code:
    [SIZE=14px]root@smb:~#mkdir /home/share[/SIZE]
    CHOMD 777 cho thư mục Share:
    Code:
    [SIZE=14px]root@smb:~# chmod 777 /home/share[/SIZE]
    Sửa file cấu hình Samba:
    Code:
    [SIZE=14px]root@smb:~# vi /etc/samba/smb.conf[/SIZE]
    Dòng 25, thêm dòng sau:
    Code:
    [SIZE=14px]unix charset = UTF-8[/SIZE]
    Dòng 30:
    Code:
    [SIZE=14px]workgroup = WORKGROUP[/SIZE]
    Dòng 51: Chỉ định các mạng có thể truy cập (nếu muốn cho tất cả đều vào được thì bỏ qua)
    Code:
    [SIZE=14px]interfaces = 127.0.0.0/8 10.0.0.0/24[/SIZE]
    Dòng 58: Bỏ comment dòng sau
    Code:
    [SIZE=14px]bind interfaces only = yes[/SIZE]
    Thêm:
    Code:
    [SIZE=14px]map to guest = Bad User[/SIZE]
    Thêm vào cuối file:
    Code:
    [SIZE=14px][Share]
        path = /home/share
        writable = yes
        guest ok = yes
        guest only = yes
        create mode = 0777
        directory mode = 0777[/SIZE]
    Ở Windows 10, bấm Ctrl + E → Click chuột phải lên This PC Map network drive...[/SIZE]


    Điền tên máy share và tên thư mục share (hoặc IP nếu không có tên máy):


    Sau đó bấm Finish để hoàn tất.


    Nguồn: ServerWorld.info
Working...
X