Samba provides file and printing services across different platforms.
Install package:
emerge samba
Add a new user:
/usr/sbin/smbpasswd -a <username>
Add Samba to startup:
rc-update add samba default
Edit /etc/samba/smb.conf.
Change workgroup name:
[global]
workgroup = workgroupName
Add root directory access:
[machineName]
comment = machineName
path = /
read only = no
guest ok = no
create mask = 0664
directory mask = 0775
The SAMBA daemon is /usr/sbin/smbd.
The NetBIOS-Nameserver-Support daemon is /usr/sbin/nmbd.
The password manager is /usr/sbin/smbpasswd.
Daemon startup and shutdown information is in /etc/init.d/samba.
The deamon control script is /etc/init.d/samba.
You can make a first test as follows:
su and give root password.
/etc/init.d/samba start.
Check for Samba users: cat /etc/samba/private/smbpasswd.
This requires root privileges.