PDA

View Full Version : [ubuntu] samba issues



num
July 27th, 2009, 11:43 PM
Hello,

I got Ubuntu 8.04 LTS with LUKS installed. I got Samba installed as well but I cannot access any directory from my Windows computer. When I try I get an error saying "directory not available or you have no permission" on the Linux computer I checked everything. What to do?

jasonbrisbane
July 28th, 2009, 01:07 AM
Hi,

Set guest access on samba.
Allow plain text passwords.


That got it working for me.

num
July 28th, 2009, 03:06 AM
well i did check every box on there or is this something i need to do in the config file?

swerdna
July 28th, 2009, 10:40 AM
Well it might be the firewall or name resolution or [permissions. Try turning the firewall off temporarily as a diagnostic test. What is your Ubuntu firewall (ufw?).

Next check that the workgroup name on the Samba server is the same as the workgroup name on the xp box.

If that doesn't help run these commands in a terminal window to get a fairly full diagnosis and copy the returns you get back here:

sudo ufw status
sudo /etc/init.d/samba status
smbtree -N
ls -l /var/lib/samba/usershares
testparm -s
cat /etc/samba/smb.conf | grep workgroup

jasonbrisbane
July 29th, 2009, 03:29 AM
Hi,

Sorry, yes I meant on the Samba Config file, not on the Windows boxes.

Windows by default sends all passwords in plain text (go figure?).
So you need to tell Samba that.

There is a Samba program that you can use (gsambad?) that will allow you to set the samba config file.

I set the options there, clicked save and restart samba and that did it for me.