Ok. Can you direct me to a tutorial or a how-to for accomplishing this?
Printable View
NICE POST! Allot of people have major issues understand Samba or trying to get it working right. Good thread. =D>
Dear dmizer,
Here is my smb.conf. Thanks so much for your help.
Code:
[global]
workgroup = markshome
netbios name = jmarks-desktop
server string = anonymous file server
security = user
# was security= share
usernamemap = /etc/samba/smbusers
# this line above added for user-level share
printing = cups
printcap name = cups
load printers = yes
[common_share]
path = /sharedfiles
comment = anonymous share for all users
public = yes
writeable = yes
browseable = yes
[printers]
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
public = yes
writable = no
create mode = 0700
#==================================Share Definitions
==================================================
# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. this will share each
# user's home directory as \\server\username
[homes]
comment = Home Directories
browseable = yes
valid users = %S
writeable = yes
Hi, I am having a problem with Samba on ubuntu gnome 9.10 and I am trying to access the files from an original xbox (via xbmc) and it keeps telling me 'workgroup not found'.
I have tried doing it with a kde interface and it works ok (however other things do not which is why I switched to gnome)
I posted my smb.conf file below, please let me know if it is something simple, thanks
---------
[global]
; netbios name = WORKGROUP
server string = Samba file and print server
security = share
hosts allow = 127. 192.168.0.
interfaces = 127.0.0.1/8 192.168.0.0/24
bind interfaces only = yes
remote announce = 192.168.0.255
remote browse sync = 192.168.0.255
printcap name = cups
; load printers = yes
cups options = raw
; printing = cups
guest account = smbguest
log file = /var/log/samba/samba.log
max log size = 1000
null passwords = yes
username level = 6
password level = 6
encrypt passwords = no
unix password sync = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
domain master = no
; preferred master = no
; domain logons = no
os level = 33
logon drive = m:
logon home = \\%L\homes\%u
logon path = \\%L\profiles\%u
logon script = %G.bat
; time server = no
name resolve order = wins lmhosts host
; wins support = no
; wins proxy = no
dns proxy = no
; preserve case = yes
; short preserve case = yes
client use spnego = no
client signing = no
client schannel = no
; server signing = no
server schannel = no
; nt pipe support = yes
; nt status support = yes
; allow trusted domains = yes
obey pam restrictions = yes
enable spoolss = yes
; client plaintext auth = no
; disable netbios = no
follow symlinks = no
update encrypted = yes
; pam password change = no
passwd chat timeout = 120
; hostname lookups = no
; smb passwd file = /etc/samba/smbpasswd
passwd program = /usr/bin/passwd '%u'
passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n
add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
add group script = /usr/sbin/groupadd '%g'
delete user script = /usr/sbin/userdel '%u'
delete user from group script = /usr/sbin/userdel '%u' '%g'
delete group script = /usr/sbin/groupdel '%g'
add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
machine password timeout = 120
winbind uid = 16777216-33554431
winbind gid = 16777216-33554431
template shell = /dev/null
winbind use default domain = yes
winbind separator = @
winbind cache time = 360
winbind trusted domains only = yes
winbind nested groups = no
winbind nss info = no
; winbind refresh tickets = no
; winbind offline logon = no
guest ok = yes
[homes]
comment = Home Directories
path = /home
read only = no
; available = yes
; browseable = yes
; guest ok = yes
; printable = no
share modes = yes
locking = no
[netlogon]
comment = Network Logon Service
path = /home/netlogon
read only = no
; available = yes
; browseable = yes
; guest ok = no
; printable = no
share modes = no
locking = no
[profiles]
comment = User Profiles
path = /var/samba/profiles
read only = no
; available = yes
browseable = no
; guest ok = yes
; printable = no
locking = no
create mask = 0600
directory mask = 0700
[printers]
comment = All Printers
path = /var/spool/samba
; browseable = yes
; writable = no
; guest ok = no
printable = yes
share modes = no
locking = no
[pdf-documents]
path = /home/pdf-documents
comment = Converted PDF Documents
read only = no
[pdf-printer]
path = /tmp
comment = PDF Printer Service
printable = yes
use client driver = yes
printing = bsd
print command = /usr/bin/gadmin-samba-pdf %s %u
[mainpclinux]
path = /home/mainpclinux
read only = no
; browseable = yes
guest ok = yes
[VIDEOS]
path = /home/mainpclinux/Videos/
read only = no
Hi,
I'm running ubuntu 9.10 on a home network and can not browse to my windows shares via "place > network". I get to Network, then I can see my workgroup, but if I try and go any further, it says "unable to mount location".
I can connect to the PC using it's IP address under connect to server, but I can't do the same using it's name.
This is odd since under 8.04 (the last ubuntu distro I used to use on an old laptop) I could simply browse to it straight from a fresh install.
I tried all the steps at the start of this thread but had no joy at all. In fact I had to undo the edit to nsswitch.conf because it stopped aMSN from working!
Anyway, anyone got any ideas? Because i've read through this thread and there still isn't a clear solution anywhere. I've updated all my packages, and checked all settings on the windows PC and this one.
The workgroup is correct on both machines.
There is no firewall active on the ubuntu machine and the XP has all it's exceptions set up (and other windows machines can access it, just not the ubuntu machine).
The XP machine responds to pings from the ubuntu machine and I can even remotely shutdown the machine via the terminal using the IP. But once again, even with the terminal, I can not interact with this machine using it's name at all.
This is extremely annoying more than anything because I can work around it just using the IP address, but why is it even happening in the first place? How come an updated version of ubuntu seems to have lost some basic functionality of earlier distros?
Any solutions that work would be greatly appreciated. Any additional info needed just ask.
And bare in mind that i'm quite new at this linux game, as i'm normally a windows person, so try to keep it fairly straightforward. I'm currently trying to shake off Bill Gate's iron shackles so I can continue to use a low spec machine with much better results :)
IDK if anyone has said this yet but on the first page where it says:
.Code:hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4
Gave me a slow network and issues with my browser name resolutions.
Also... its prefreablly a good idea to keep a small smb.conf file.
http://www.samba.org/samba/docs/man/...html#id2553100
not enough time in my life to read all of the responses .. but for 9.10 .. I lost my Windows machines on my network.....
Went to the Windows machines and changed the default network name from MSHOME to WORKGROUP and miraculously everything showed up .. including all of the printers.
That's interesting... I shall have to try that as my windows workgroup is also MSHOME.
Although i've changed the workgroup name in Ubuntu to MSHOME as well, so it shouldn't make any difference, unless there's an error with Samba's actual programming and not the config files