Solution:
Setup
- Apt-get upgrade
- sudo apt-get install samba smbfs
- sudo mkdir –m 0777 /pathofdrive
Editing the samba config
- sudo vi /etc/samba/smb.conf
Copy this:
# Global parameters
[global]
workgroup = HOME
netbios name = SAMBA
server string = Samba Server %v
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
dns proxy = No
security = User
# Share
[Data]
path = /disk2/data
valid users = joel
read only = No
create mask = 0777
directory mask = 0777
Adding a user:
# useradd -c "Joel Nahrgang" joel
# smbpasswd -a joel
New SMB password: secret
Reenter SMB password: secret
Added user joel
Restarting Samba:
sudo /etc/init.d/samba restart