1

I'm trying to follow this guide: http://www.sitepoint.com/ubuntu-12-04-lts-precise-pangolin-file-sharing-with-samba

but I'm sure there are many of them. I've had problems with Samba before. In fact in my xx years of life on Linux I have never successfully setup Samba.

The steps would be:

  1. Update your system
  2. Install samba

    $ sudo apt-get install samba samba-common winbind
    
  3. Configure windbind

    $ sudo gedit /etc/nsswitch.conf
    

    and "wins" to the hosts line.

  4. Reboot

  5. "Having done this you should now be able to select ‘GO > Network’ from the desktop menu and view your entire Windows and Linux based network."

But in my case I just see "Windows network" which is an empty folder and that's all. No shares from windows neither Linux PC's.

Can anyone tell me what I'm missing or doing wrong?

0

If using Ubuntu 12.04 make sure you have the 'smbfs' package installed, anything after that it changed to 'cifs.utils'.

$ sudo apt-get install smbfs

or

$ sudo apt-get install cifs.utils

After a reboot they should show up, although you may have to manually go to them with the smb command in the file explorer window.

smb://(servername)/"share"
  • tried both.. in fact cifs.utils was already installed. no success. – user568021 May 3 '14 at 20:28
0
sudo apt -y install samba samba-common smbclient system-config-samba winbind nfs-common cifs-utils exfat-fuse exfat-utils ntfs-config ntfs-3g python-glade2
if [ ! -d /var/lib/samba/usershares ]; then sudo mkdir -p /var/lib/samba/usershares; fi
sudo chmod 1775 /var/lib/samba/usershares/
sudo chmod +t /var/lib/samba/usershares/

in smb.conf

#======================= Global Settings =======================
domain master = no
prefered master = no
local master = no
invalid users = root bin daemon adm sync shutdown halt mail news uucp operator
# change eth1 for your interface and 192.168.X.X/XX for your localnet
interfaces = lo eth1 127.0.0.1 192.168.0.0/24
bind interfaces only = yes
security = user
guest account = nobody

[share]
comment = share folder for all
path = /home/your_user/share
public = yes
read only = no
writeable = yes
browseable = yes
valid users = nobody
guest ok = yes
available = yes
printable = no
create mask = 0777
directory mask = 0777
# veto examples
veto oplock files = /*.lock/*.mdb/*.MDB/*.dbf/*.DBF/*.pdf/*.doc/*.docx/*.ppt/*.pptx/*.xls/*.xlsx/
veto files = /*.3gp/*.asd/*.avi/*.au3/*.flv/*.mkv/*.mp3/*.mp4/*.mpeg/*.mpg/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.