samba/smb.conf
interafces = 192.168.1.0/24 wlan0 eth0
bind interfaces only = yes
security = user
;Server side:
[Resource]
comment = user_home's Resource
path = /home/user_home/Resource
available = yes
valid users = user_remote
read only = no
browsable = yes
public = yes
writable = yes
create mask = 0755
directory mask = 0755
(port opens automatically)
sudo adduser -m user_remote -s /bin/bash
sudo passwd user_remote
smbpasswd user_remote
command to mount client side:
sudo mount /media/Resource
sudo mount -t cifs //192.168.1.38/Resource /media/Resource -o rw,user=user_remote,uid=user_remote,gid=user_remote
Install with:
sudo apt-get install samba samba-common system-config-samba
sudo apt-get install nfs-common
sudo apt-get install cifs-utils
No comments:
Post a Comment