Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Installed UBUNTU-server 12.04 and configured /etc/samba/smb.conf as:

 #======================= Global Settings =======================

[global]
workgroup = HEMMA 
server string = %h server (Samba, Ubuntu)
security = user
wins support = yes
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = no
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
############ Misc ############
usershare allow guests = yes

#======================= Share Definitions =======================
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no

[Bilder original]
comment = Original bilder
path = /mnt/bilder/org
browseable = yes
read only = no
guest ok = no
create mask = 0755
[Bilder publika]
comment = Bilder för allmän visning
path = /mnt/bilder/public
browseable = yes
read only = yes
guest ok = yes
[Musik]
comment = Musik
path = /mnt/music/public
browseable = yes
read only = yes
guest ok = yes

I have a network setup around a 4G router "HUAWEI B593" where some computers are connected by WIFI and others by LAN.

The server is connected by LAN.

On one computer running windows XP I can see the server but are not allowed to acces them.

On another computer on the WIFI-net running win7 I cannot see the server at all but I can ping the server and I can see the smb-protocoll is running when sniffing with wireshark.

I don't primarily want to use passwords, computers on the lan and wifi should be able to connect without any login-procedure.

I'm sure my config is not sufficient but have hard to understand how I should do. Theres a lot of descriptions on the net but most is old and none have been of any help.

I'm also confused by the fact that I can not se the sever on my win7-machine even though it communicates with the samba-server.

Would be very happy if anyone could spread some light over this mess.

share|improve this question
add comment

3 Answers 3

ideally, if you are not an IT geek, use Webmin (How to install webmin?), installable as a deb package. All configurations you can do in web interface, more understandable for anyone. You can try their demo: http://www.webmin.com/demo.html

share|improve this answer
add comment

Map to guest is set to Bad User and some of your shares are allowed for the guest user so this is sufficient for samba to open unauthorised access to those shares, there should be no problem. Another question is file-system permissions on those folders. Please check whether nouser (defined by guest account parameter) is allowed to access your shares.

share|improve this answer
add comment

If you are able to ping the Ubuntu server, and still not able to map network drive from Windows follow this:

Just disconnect the LAN cable , connect to WLAN. Now type-in the IP-address/username(eg: //192.134.23.23/joe) into the explorer. Mostly you should be able to connect. If yes, just copy the path to network map the drive. Hope this works. The problem should be with the server hostname mapping with ip-address.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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