I'm using Sabayon since a few days an I'm totally impressed. I switched from LinuxMintDebianEdition and made the experience, that Samba is not this well implemented in Sabayon, so here I wrote a howto, so you all can use this nice foldersharing way. Here is also a link to the wiki article, I created:
http://wiki.sabayon.org/index.php?title=HOWTO:_Samba_foldersharing_in_Dolphin_or_Nautilus_the_smooth_way
1. make shure you have installed samba, kdenetwork-filesharing (for KDE SC) or nautilus-share (for Gnome)
2. open a terminal and become su
3. add a group called sambashare by running
- Code: Select all
groupadd sambashare
4. add your user to the group sambashare
- Code: Select all
gpasswd -a %username% sambashare
5. run these three commands:
- Code: Select all
mkdir /var/lib/samba/usershares
- Code: Select all
chgrp sambashare /var/lib/samba/usershares
- Code: Select all
chmod 1770 /var/lib/samba/usershares
4. add these at the end of the [Global] section in smb.conf
- Code: Select all
map to guest = bad user
usershare allow guests = yes
usershare path = /var/lib/samba/usershares
usershare max shares = 100
usershare owner only = false
username map = /etc/samba/smbusers
5. make sure all entries in
- Code: Select all
/etc/samba/smbusers
6. For sharing folders in you home folder, make sure that the homefolder of the user is readable to others, otherwise samba can't make the folders there accessable.
7. run
- Code: Select all
rc-update add samba default
8. And as some people will experience that after reboot the nmbd is not started and the shares are not shown you can add to the
- Code: Select all
/etc/local.d/local.start
- Code: Select all
/etc/init.d/samba restart
- Code: Select all
/bin/sleep 20 && /etc/init.d/samba restart
You should find out what is the best time youself, for me the 20 seconds are good working.
9. And the
- Code: Select all
/etc/hosts
So I changed it from
- Code: Select all
# IPv4 and IPv6 localhost aliases
127.0.0.1 localhost sabayon %computername%
::1 localhost sabayon
to
- Code: Select all
# IPv4 and IPv6 localhost aliases
127.0.0.1 localhost
::1 localhost
10. finally reboot, now you can use the foldersharing by rightclicking within Dolphin or Nautilus

