Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY

Go Back   Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY > CentOS Việt Nam - Viet Nam Linux CentOS Community > Cài đặt CentOS và ứng dụng

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 30-06-2008
Hackingart Member
 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 2 Times in 1 Post
Default Chia sẻ dữ liệu trong CentOS

Làm sao để có thể truy cập vào thư mục của máy Linux từ Windows?
Reply With Quote
  #2 (permalink)  
Old 30-06-2008
Hackingart Member
 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 2 Times in 1 Post
Default

Để truy cập thư mục chia sẻ của linux từ windows
Trên linux phải cài SAMBA
Start samba
Add thêm user mới cho SAMBA (Preference => Samba User)
Tạo một account tương ứng trên windows (giống hệt)
Tạo một share folder trên samba, add user vừa tạo vào.
Return win and access!
Reply With Quote
  #3 (permalink)  
Old 30-06-2008
tui3gang's Avatar
Administrator
 
Join Date: Jun 2008
Posts: 29
Thanks: 0
Thanked 5 Times in 4 Posts
Default

Cách mount thư mục của máy windows lên máy linux (test trên CentOS)
Tham khảo:
http://www.centos.org/docs/5/html/De...er-export.html
http://www.cyberciti.biz/faq/access-...res-from-linux
Tạo thư mục trên máy linux:
mkdir /home/fromwin
Gơ vào lệnh sau:
mount -t cifs -o username=usernamwin,password=paswindow //IP(or name)windows/localwin /home/fromwin

Kiểm tra: cd /home/fromwin # ls -l
Thiết lập chế độ mount tự động:
vi /etc/fstab
thêm vào ḍng sau:
//IPWindows/windowfolder /home/linuxfolder cifs auto, gid=users, fmask=0777,dmask=0777, credentials=/etc/passwindow 0 0 //IPWindows/localwin /home/fromwin cifs auto, gid=users,fmask
vi /etc/passwindow
nhập
username=userwindows
password=paswindows
Reply With Quote
  #4 (permalink)  
Old 25-08-2008
tui3gang's Avatar
Administrator
 
Join Date: Jun 2008
Posts: 29
Thanks: 0
Thanked 5 Times in 4 Posts
Default Chia sẻ truy cập giữa linux với linux: Sử dụng NFS

Chia sẻ truy cập giữa linux với linux: Sử dụng NFS
Máy Server:
·Cài đặt NFS: bundle sẵn
·Cài đặt Portmap: bundle sẵn
·Start NFS và Portmap
·Cấu h́nh:
Edit lại file: /etc/exports
Add thêm ḍng:
/home/share1 192.168.23.98(sync) *(rw) 192.168.23.99(sync) *(rw)
(ở trên là các ip client)
Fullpermission:
/home/abc *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
·Abc là thư mục được chia sẻ trên máy linux server.
·có nghĩa là tất cả các máy khác đều có thể truy cập.
·rw: đọc, ghi
·sync: đồng bộ
·….

Edit lại file: /etc/hosts.allow,
add thêm vào cuối file:
portmap 192.168.23.a, 192.168.23.b
(ip client)

·Restart lại nfs
/etc/init.d/nfs restart

Máy client:
·dùng lệnh mount:
mount 192.168.23.IP:/home/shareonserver /home/mountonclient
df –h

·Mount tự động:
edit file /etc/fstab
add vào cuối ḍng sau:
192.168.23.IP:/home/shareonserver /home/mountonclient nfs rw,hard,intr 0 0
Reply With Quote
Reply

Tags
mount, thu muc

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cách giải nén file .rar (unrar) trong CentOS - Windows. Lovelinux Cài đặt CentOS và ứng dụng 2 31-07-2008 01:27 PM
Chia sẻ crack - seriakey của HTTP Analyzer Full Edition v3.31 bispedia.com Software - Phần mềm 0 18-07-2008 04:40 AM
Chia sẻ Flash media server 3 (FMS 3) serial. Lovelinux Software - Phần mềm 0 30-06-2008 08:29 PM


All times are GMT +1. The time now is 08:29 PM.


© Diễn đàn HackingArt (HA) được xây dựng và phát triển bởi các thành viên.
+ Diễn đàn HackingArt là nơi trao đổi của các webmaster chuyên nghiệp.