[SOLVED] Samba share problems

Hey guys,
So I've been trying to create an unauthorized set of samba shares, I've managed to allow a guest user to connect to the drives without authentication however files that I copy from outside the shares cannot be modified by my guest. Is it possible for me to allow guests to modify files that do not belong to them? my example is below;
cp /etc/motd /home/shares/downloads
ls -l
-rw-r--r-- 1 sam   users 406 Feb 16 02:29 motd
-rw-rw---- 1 guest users   0 Feb 16 02:37 test.txt
I attempt to modify the motd and it will not let me save apologies for any sheer stupidity, I'm still fairly new to this. Below is my smb.conf
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
# For a step to step guide on installing, configuring and using samba,
# read the Samba-HOWTO-Collection. This may be obtained from:
# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
# Many working examples of smb.conf files can be found in the
# Samba-Guide which is generated daily and can be downloaded from:
# http://www.samba.org/samba/docs/Samba-Guide.pdf
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
workgroup = WORKGROUP
# server string is the equivalent of the NT Description field
server string = Server 1
# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the Samba-HOWTO-Collection for details.
security = user
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
; hosts allow = 192.168.1. 192.168.2. 127.
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes
# you may wish to override the location of the printcap file
; printcap name = /etc/printcap
# on SystemV system setting printcap name to lpstat should allow
# you to automatically obtain a printer list from the SystemV spool
# system
; printcap name = lpstat
# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
; printing = cups
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
guest account = guest
map to guest = Bad User
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Use password server option only with security = server
# The argument list may include:
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
# password server = *
; password server = <NT-Server-Name>
# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
; realm = MY_REALM
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
passdb backend = tdbsam
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting.
# Note: Consider carefully the location in the configuration file of
# this line. The included file is read at that point.
; include = /usr/local/samba/lib/smb.conf.%m
# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces = 192.168.12.2/24 192.168.13.2/24
# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
; local master = no
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
; os level = 33
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
; domain master = yes
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; preferred master = yes
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
; domain logons = yes
# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat
# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \\%L\Profiles\%U
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
; wins support = yes
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
; wins proxy = yes
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The default is NO.
dns proxy = no
# These scripts are used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
; add user script = /usr/sbin/useradd %u
; add group script = /usr/sbin/groupadd %g
; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
; delete user script = /usr/sbin/userdel %u
; delete user from group script = /usr/sbin/deluser %u %g
; delete group script = /usr/sbin/groupdel %g
#============================ Share Definitions ==============================
[Music]
path = /home/shares/music
public = yes
writable = yes
printable = no
read only = no
guest ok = yes
write list = @users
directory mask = 0777
[Pictures]
path = /home/shares/pictures
public = yes
writable = yes
printable = no
read only = no
guest ok = yes
write list = @users
directory mask = 0777
[Videos]
path = /home/shares/videos
public = yes
writable = yes
printable = no
read only = no
guest ok = yes
write list = @users
directory mask = 0777
[Downloads]
path = /home/shares/downloads
public = yes
writable = yes
guest ok = yes
create mask = 0660
write list = @users
[Back-ups]
path = /home/shares/backups
public = yes
writable = yes
printable = no
read only = no
guest ok = yes
write list = @users
directory mask = 0777
Last edited by risegeek (2011-02-17 01:47:12)

Hmm, seems that the linux user account and the samba account passwords need to be identical for this to work? if I define no password for the samba account sam and if it has a password on the linux box itself, it will not work :S am I missing something?
Also might be worth taking note that if a conflict exists between the password then it also renders my other account such as guest inaccessible, I've got it back to working the way it was before
EDIT: I've managed to get this working, for some reason once I needed to remove the sam account that I created within smbpasswd - once I had done this I was able to use sam as the guest account? Samba is a little bit like pissing in the dark sometimes Ahh well.
Last edited by risegeek (2011-02-17 01:46:56)

Similar Messages

  • AutoFS + Samba share problems when share not online (especially in itunes)

    I'm trying to look into having some or all of my media on a server for a couple of my macs, the main one of interest right now being a mac mini working as a HTPC under a tv, being operated 99% of the time with just the apple remote and frontrow.
    A friend informed me that if you have your itunes library not managed and add files from a remote share then everything works pretty well. Namely if you try to play a file it will seemingly automount the remote file and start it playing. If the remote server is not available it will quickly discover this and after a short pause start giving explanation marks next to the broken tracks. Get the remote destination connected and then try to play a broken track and it will successfully mount the track and play.
    Basically perfect.
    I quickly tried accessing these files via a symbolic link or alias to them on the remote drive, in doing this i can be somewhat insulated from problems of trying to move the library to other machines/shares in the future. This all works fine but you do lose the ability for itunes to automatically mount the remote drive, which is a bit of a step back, but not a big deal on my normal machine. On my HTPC machine however i'd really like front row to be able to just work, hence automatically mounting the server as required.
    The only problem was that when i tried with files directly added to the itunes library from a remote location frontrow would NOT automount the tracks/videos when you attempted to play them like itunes would do.
    I've just spent the last few hours following the advice here
    http://rajeev.name/blog/2007/11/22/autofs-goodness-in-apples-leopard-105-part-i/
    to setup autofs in the hope that this would let me get auto mounting working as it does with itunes and directly added to the library remote files.
    I boiled this down to the following settings
    as root
    vi /etc/auto_master
    and add
    /smb auto_smb
    then create this new config file
    vi /etc/auto_smb
    and add
    <Mount dir under /smb folder> -fstype=smbfs ://<share user>:<share pass>@<ip address>/<share point>
    ie.
    testMount -fstype=smbfs ://netuser:[email protected]/remoteMount
    finally tell automount to throw away its cache
    automount -vc
    then the mount should be setup
    df -h
    shows the indirect map waiting
    map auto_smb 0Bi 0Bi 0Bi 100% /smb
    and by triggering it
    ls /smb/testMount
    you should connect and get a listing, a subsequent df shows
    df -h
    //[email protected]/Media 466Gi 325Gi 141Gi 70% /smb/Media
    Everything worked well with the share getting mounted nicely when present, frontrow could just start playing the files it needed, perfect!!
    The problem came when i wanted to simulate the media server being offline, basically frontrow, a lot of the system including finder, cd commands attempting to access the share, and itunes if you tried that would all freeze for long periods of time as they tried their best to get the files they were looking for.
    I tried looking into getting this to gracefully time out and think i got somewhere by trying to setup the samba share to be soft linked.. I wasn't sure in what files i could add this to, first attempts didn't seem to do anything but adding this seemed to make a difference
    /etc/nsmb.conf
    containing something like
    #Configuration file for example.com
    [default]
    minauth=ntlmv2
    streams=yes
    soft=yes
    to turn soft samba shares on. Things like cd in a terminal seemed to behave quite well with this, when no remote share present you would get empty folders and the like. Finder would also seem to be reasonable with it.
    Frustratingly itunes and frontrow both still have quite massive pauses even when finder and cds in the background show that perhaps the soft links are working and failing like they should.
    I'm now left wondering what i can do to fix it, and resorting to perhaps having the files added via a symbolic link, using the login items to launch the remote share every boot and then having it so that all i need to do is reboot the HTPC mac mini if the server is on for it to pick it up and let me play the files. Otherwise they'll just be unavailable and will fail gracefully without locking up itunes. The perfect solution would be to either have a crontab running, or some applescript bound somehow to whenever frontrow is ran which manually tries to tell finder to do the equivelant mount the login items setup does.
    It's frustrating though as its so close, and the autofs solution if it did work better would seem to be the perfect solution. Has anyone dabbled with this and got any suggestions as to options you can setup to make things not go horribly wrong when a remote share is NOT present, preferrably within the context of itunes or front row not complaining, but to be honest any suggestions i'll be able to try out myself.
    Sorry i've written so much, perhaps some of it will be helpful reference as it took me a while to decipher that link at the top into just setting up a samba autofs.
    Cheers.

    It seems like it's not only the ArchLinux workstation that displays the norwegian letters wrong. The only machine that shows this correc is the machine that created the file/catalogue.
    It seems like the windows 2000 displays the cataloge created by windows XP just fine.

  • Samba share problem with OSX client

    hi all,
    I've a well know problem with samba server, in my case linux samba server.
    In my network 4 client Mac OSx with different OS version everyday are usually connect to samba share with smb or network finder, normaly without specifics configuration or other.
    NOW, I've 3 macbook air client with different OS version that do not connect never.
    Server log write WRONG PASSWORD but is not TRUE.
    I've tried every solution without success.
    There is a patch to be applied to client?
    it's just a coincidence that only AIR does not work?
    Thanks in advance
    Regards

    I'm noticing this in the job info as well:
    Session setup failed: NT_STATUS_LOGON_FAILURE
    and the logs show it trying to login as root when I am supplying my domain credentials.
    If I add the printer by IP address it works fine. I tried to delete keychain keys but that didn't work for me.

  • [Gnome-shell] Desktop freezes when Samba shares become unavailable

    Hi,
    I'm experiencing a very annoying problem on the laptop I use at work. I'm using an up-to-date Arch with Gnome-shell and we have a bunch of network shares on several servers.
    I access them via Nautilus and everything's fine as long as I don't unplug the cable. If I do that while Samba shares are mounted in Nautilus (through GVFS), the entire desktop freezes and I have to restart GDM to get it back (but all applications are killed and that's not cool).
    I also realized that when I mount a Samba share I'm accessing through a personal VPN (so, through the Internet), the entire desktop becomes slow and choppy. If I transfer a file to the remote folder using Samba over this VPN, I cannot do anything until the transfer is finished. During this time the desktop is freezed. But after that I get it back and it's working again (but is still slow as long as I keep the share folder mounted).
    When I unmount the "slow" Samba shared folder, everything works perfectly.
    Why is Gnome so dependent on such thing as a simple mounted shared folder? Is there a way to prevent this behaviour?
    Thanks in advance

    Hi nanawel, i've a very similar problem to your on my home machine: this (https://bbs.archlinux.org/viewtopic.php?pid=1196319) is the thread i found when researching my problem, so i started investigating it and then discovered the samba shares problem, so i found out your problem when looking up for similar annoyances in Google.
    Have you been able to track it down?
    As i said in the other thread, i don't have installed any of those gnome-shell extensions, but i have the TweakTool->Desktop option named "Show mounted volumes on the desktop" enabled, as well as an entry in my /etc/fstab file: tomorrow i'm going to have some tries with my brother's pc and see if i can find out something more.. i'll keep posting on this thread then, since it looks like my problem is very very similar.. hopefully we'll be able to track it down this beast.
    But also, I'm also experiencing that "slow network share/choppy desktop" on my work machine only: it looked like a FUSE issue, but could never debug that since i've a quite important deadline at work and can't start debugging my OS during working hours
    Anatolik was kind enough to chime in and suggest to debug it (https://bbs.archlinux.org/viewtopic.php … 7#p1193437), this is the thread about it.

  • Suspend fails when samba shares are mounted

    I have a weird problem with my laptop when I try to suspend to ram.
    If no samba share is mounted, then it suspends OK.
    If there is a samba share mounted, when I suspend through KDE menu or by the command "pm-suspend", then it fails to suspend, and in /var/log/pm-suspend I see the line "s2ram_do: Device or resource busy". If I type the command " s2ram -f" then it suspends OK.
    I have created a hook that executes "umount -a -t cifs" and now it suspends, but only if the samba share is available. If it is an unavailable it still fails to suspend.
    Does anyone has the same problem or a solution to this?
    P.S. I hope I posted in the correct category...

    Hi nanawel, i've a very similar problem to your on my home machine: this (https://bbs.archlinux.org/viewtopic.php?pid=1196319) is the thread i found when researching my problem, so i started investigating it and then discovered the samba shares problem, so i found out your problem when looking up for similar annoyances in Google.
    Have you been able to track it down?
    As i said in the other thread, i don't have installed any of those gnome-shell extensions, but i have the TweakTool->Desktop option named "Show mounted volumes on the desktop" enabled, as well as an entry in my /etc/fstab file: tomorrow i'm going to have some tries with my brother's pc and see if i can find out something more.. i'll keep posting on this thread then, since it looks like my problem is very very similar.. hopefully we'll be able to track it down this beast.
    But also, I'm also experiencing that "slow network share/choppy desktop" on my work machine only: it looked like a FUSE issue, but could never debug that since i've a quite important deadline at work and can't start debugging my OS during working hours
    Anatolik was kind enough to chime in and suggest to debug it (https://bbs.archlinux.org/viewtopic.php … 7#p1193437), this is the thread about it.

  • [Solved] Help Setting Samba Share In Qemu With XP Guest

    Hello all,
    After getting around all the quirks of setting an XP guest inside qemu, the only (though, pretty important) thing I can't solve is setting a samba share between the Arch host and the XP guest.
    I tried whatever I could think of that's relevant, with no success:
    Qemu is launched with:
    qemu-system-x86_64 -machine type=pc,accel=kvm -cpu host -boot d -m 1024 -net user,smb={my home folder} -net nic,model=virtio -rtc base=localtime -drive file=XP.qcow2,if=virtio -spice port=5900,disable-ticketing,image-compression=off,jpeg-wan-compression=never,zlib-glz-wan-compression=never,playback-compression=off -vga qxl -global qxl-vga.vram_size=67108864 -device virtio-serial-pci -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent -balloon virtio
    I installed samba, added a user, and started the service according to the wiki.
    I allowed the samba ports in UFW (using the CIFS rule).
    Whenever I try accessing the share inside my XP guest (\\10.0.2.4\qemu), I usually end up with a target not found error, or at times, a password prompt that will not accept the samba user/password.
    Anything else I forgot to do?
    Thanks, Adam.
    * EDIT *
    I somehow missed the section regarding the guest OS able to access the host OS normal samba shares at 10.0.2.2.
    Default samba share for home folder works as expected.
    Last edited by adam777 (2013-07-15 16:05:44)

    Thanks.
    I tried toying with the options a bit more, with no success.
    I then decided to try Spice+QXL anyway, and am very happy with it.
    Aside from the lengthy compilation of the Qemu version that supports Spice from the AUR, once I got it set up, installing the guest was a breeze.
    Using the Spice guest tools for windows, everything was set up very conveniently (virtio for network, hdd, qxl driver, mouse integration etc.).
    Responsiveness is much better comparing to previous attempts with "vga std", "vga cirrus" and normal adapter.
    Bottom line, I'm sticking with Spice+QXL, seems to work best for me.

  • Problems with norwegian letters when browsing samba share.

    When I'm browsing my samba share from my ArchLinux workstation, files in the share with norwegian letters are not shown correct. This applies both from aterm and konqueror.
    But if I use a Windows XP/2000 machine, everything is shown like it is suppose to do with norwegian letters.
    The samba server is also running ArchLinux. On my workstation I'm using Enlightenment as windowmanager.
    Is this a problem with my samba server or with my linux workstation? What can I do to fix it?
    [orjanp@ArchLinux ~]$ cat /etc/samba/smb.conf
    # Global parameters
    [global]
    workgroup = HJEMMENETT
    server string = Samba
    username map = /etc/samba/smbusers
    log file = /var/log/samba.%m
    max log size = 50
    dns proxy = No
    printer admin = root
    load printers = yes
    use client driver = Yes
    display charset = ISO-8859-1
    dos charset = 850
    [homes]
    comment = Home Directories
    read only = No
    browseable = No
    [Media]
    path = /mnt/media
    browseable = yes
    write list = orjanp
    [Software]
    path = /mnt/progs
    browseable = yes
    write list = orjanp
    [Bacup]
    path = /mnt/bacup
    read list = orjanp
    write list = orjanp
    browseable = No
    [HP750]
    comment = Samba shared printer
    path = /var/spool/samba
    read only = No
    guest ok = Yes
    printable = Yes
    printer name = HP750
    use client driver = yes
    oplocks = No
    share modes = No

    It seems like it's not only the ArchLinux workstation that displays the norwegian letters wrong. The only machine that shows this correc is the machine that created the file/catalogue.
    It seems like the windows 2000 displays the cataloge created by windows XP just fine.

  • [Solved] Trouble Viewing Samba Shares

    I'm using KDE 4.6 on a x64 Arch system with all of the latest updates. I am trying to access Windows 7 shared media. If I navigate to the address in dolphin the shares are there and accessible. I'm using smb4k in an effort to mount the shares transparently for use with Banshee and other non KIO apps. The odd thing is is that smb4k sees the machine, but cannot list the shares. I'm using a default Samba config file and setup smbnetfs via instructions in the wiki. Fuse is listed in the modules array of rc.conf and smbnetfs is listed in DAEMONS. Output of smbtree:
    dryce@myhost ~]$ smbtree
    Enter dryce's password:
    WORKGROUP
    \\WINDOWSMACHINE1
    cli_start_connection: failed to connect to WINDOWSMACHINE1<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL
    Output of smbclient -L 192.168xxx
    [dryce@myhost ~]$ smbclient -L 192.168.xxx
    Enter dryce's password:
    Domain=[WINDOWSMACHINE1] OS=[Windows 7 Home Premium 7601 Service Pack 1] Server=[Windows 7 Home Premium 6.1]
    Sharename Type Comment
    ADMIN$ Disk Remote Admin
    C$ Disk Default share
    E$ Disk Default share
    HP Officejet 6300 series Printer HP Officejet 6300 series
    IPC$ IPC Remote IPC
    iTunes Music Disk
    Movies Disk
    Music Disk
    print$ Disk Printer Drivers
    Tivo Programs Disk
    Users Disk
    session request to 192.168.1.102 failed (Called name not present)
    session request to 192 failed (Called name not present)
    session request to *SMBSERVER failed (Called name not present)
    NetBIOS over TCP disabled -- no workgroup available
    This configuration works fine in gnome, so I don't think there is a problem with the Windows 7 machine, but something incorrectly configured within KDE. NetBios is enabled despite what it says there. I'm sure I've left something out, please feel free to let me know. Any ideas here would be appreciated. Thanks
    Last edited by dryce (2011-03-29 20:19:21)

    After fighting with this for awhile, I finally got it working. The smbtree error was apparently being caused by OpenDNS and their typo correction section. I disabled this entirely. The error message went away and printed network shares normally. The second error:
    session request to 192.168.xxx failed (Called name not present)
    session request to 192 failed (Called name not present)
    session request to *SMBSERVER failed (Called name not present)
    NetBIOS over TCP disabled -- no workgroup available
    still happens and I have no idea why. I was able to get the shares to appear and become accessible in smb4k by enabling kdewallet first. Then going into configure smb4k and selecting "Master Browser requires authentication to return the browse list" in Network and in Super User selecting "Use super user privileges to mount and unmount shares". The shares don't appear under samba shares in KDE's Network location so maybe that's where the above error comes in.

  • [solved] ln / cp / mv / samba share incremental backups

    Modifying a hardlink(/ed file)... argh.
    Result A, old file 1 stays:
    1 && echo 2 > 2 && ln 2 3 && mv 1 3 && cat 2 3 && rm 1 2 3
    2
    1
    rm: cannot remove ‘1’: No such file or directory
    Result B, file 1 gets overwritten too:
    $ echo 1 > 1 && echo 2 > 2 && ln 2 3 && cp 1 3 && cat 2 3 && rm 1 2 3
    1
    1
    Why?
    I guess something like: "Because cp just overwrites the file that is where the hardlink points to while mv has to delete the hardlink first and then move the pointer thingy of the existing file"?
    On a samba share, when a windows client overwrites hardlinks, I get Result B: The old file stays. Which makes for a great super easy / "lightweight" automatic incremental backup drive: I just hardlink explicitly everything to a file with the name of the current date every day and the old backup hardlinks will never be overwritten when the windows client synchronizes to the "current-directory". Or something like that...
    I'm confused though as to WHY that works. Should it be working this way / can I trust that it'll keep working like that? Or is the windows client doing something "wrong" (like deleting the hardlink before copying over the modified file with the same link instead of copying it to the new destination)?
    Someone please throw the manual that I need to eat to become less confused at me.
    Thanks!
    Last edited by whoops (2012-11-04 23:54:39)

    Mostly I was looking for my brain, I guess
    Thanks, stuff is starting to make sense now and google just got a lot more helpful than it was before, too!
    That should explain what my problem was (also it offers an explanation):
    http://serverfault.com/questions/225211 … -behaviour

  • [PARTIALY SOLVED]Can't see SAMBA share or Printer in Linux

    Greetings all,
    I have built a headless server running Arch linux as the base OS.  I am running SAMBA and CUPS and performing all maintenance of this server via SSH.
    The SAMBA share I can see (read/write) on all the Windows 7 machines on the network as well as the Printer connected to the server.  But I can't see it when I open Thunar or PCManFM.  Nor can I access the printer.
    It's obviously something I am doing wrong but I have Googled different parameters trying to find a solution but have come up short.
    Your assistance and guidance in putting me in the right direction is most appreciated.  All my Linux machines are running Arch.
    Thanks,
    Ian
    Last edited by ichase (2012-10-28 07:19:14)

    I have looked high and low.  The printer is set up via CUPS and the printer in smb.conf is set to CUPS.  All 4 windows computers in the house now have this printer set as default and can print fine.
    But if I try to print in Linux, for example in Libreoffice, I get No default printer found.  Please choose a printer and try again.  When I click ok, the network printer does not show up for me to select.
    I have tried updating the /etc/cups/client.conf on the client computer and it is set as:
    # see 'man client.conf'
    homeserver /var/run/cups/cups.sock
    homeserver 192.168.X.XX
    From what I have read so far, this is correct.  When I go to the CUPS Web Interface it shows under Manage Printer my HP 7300 Series printer there and in idle waiting for job.  And in Windows I can print to it just fine.
    As far as I can  tell SAMBA is set up correctly (I can mount the file drive in Arch with no issues) and CUPS seems to be configured correctly as well from all that I have read.
    Any insight would be great,
    Thanks,
    Ian
    Last edited by ichase (2012-10-28 07:28:31)

  • Samba shares no longer visible after migration to systemd

    EDIT: Note the file server is CLI only.
    I upgraded my file server to systemd about a week ago and have yet to get the Samba share visible from other devices within my network.  Eveything worked fine under initscripts and other than system upgrades the only thing that has changed about the system is the migration to systemd and addition of the netcfg package.  I can connect manually by typing "smb://<IP>" in a file manager address field but when trying to access the Share via browsing on two different WD media players, a Xoom tablet, typing "smb://" in the address bar of a basic file manager like Thunar or PCManFM or using browsing the Network or Samba Shares links in the Network place from Dolphin the share just doesn't show up.
    The fact that I can access the Share directly, it's just not visible when browsing, makes me think samba is working properly but I'm not sure how to further diagnose the issue and I'd really like to solve the problem and learn something rather than just load up a previous image of the PC before the systemd migration.
    Commands from client
    my /etc/hosts...
    cat /etc/hosts
    #<ip-address> <hostname.domain.org> <hostname>
    127.0.0.1 localhost.localdomain localhost dads-pc
    192.168.10.131 dads-pc.HOMESERVER dads-pc
    192.168.10.100 Serverbox.HOMESERVER Serverbox
    Master Browser search, this does look odd, I don't use it on any machine so where the heck did the .255 at the end of the IP address come from? 
    $ nmblookup -M HOMESERVER
    querying HOMESERVER on 192.168.10.255
    name_query failed to find name HOMESERVER#1d
    I can sign in fine...
    $ smbclient -L Serverbox
    Enter dad's password:
    Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules
    Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules
    Domain=[HOMESERVER] OS=[Unix] Server=[Samba 3.6.9]
    Sharename Type Comment
    IPC$ IPC IPC Service (Samba Server)
    Server Disk The Family Network Share Files
    ParentalMovies Disk Movie folders for Mom and Dad
    Movies Disk Family Movie folders
    Domain=[HOMESERVER] OS=[Unix] Server=[Samba 3.6.9]
    Server Comment
    SERVERBOX Samba Server
    Workgroup Master
    HOMESERVER SERVERBOX
    I can sign in as one of the media players fine...
    $ smbclient -L Serverbox -U lr_mediaplayer
    Enter lr_mediaplayer's password:
    Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules
    Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules
    Domain=[HOMESERVER] OS=[Unix] Server=[Samba 3.6.9]
    Sharename Type Comment
    IPC$ IPC IPC Service (Samba Server)
    Server Disk The Family Network Share Files
    ParentalMovies Disk Movie folders for Mom and Dad
    Movies Disk Family Movie folders
    Domain=[HOMESERVER] OS=[Unix] Server=[Samba 3.6.9]
    Server Comment
    SERVERBOX Samba Server
    Workgroup Master
    HOMESERVER SERVERBOX
    Commands from Server
    Both smbd and nmbd services appear functional...
    $ systemctl status smbd nmbd
    smbd.service - Samba SMB/CIFS server
    Loaded: loaded (/etc/systemd/system/smbd.service; enabled)
    Active: active (running) since Mon, 2012-11-19 17:48:07 CST; 2h 9min ago
    Main PID: 534 (smbd)
    CGroup: name=systemd:/system/smbd.service
    ├ 534 /usr/sbin/smbd -F
    ├ 551 /usr/sbin/smbd -F
    └ 559 /usr/sbin/smbd -F
    nmbd.service - Samba NetBIOS name server
    Loaded: loaded (/etc/systemd/system/nmbd.service; enabled)
    Active: active (running) since Mon, 2012-11-19 17:48:07 CST; 2h 9min ago
    Main PID: 536 (nmbd)
    CGroup: name=systemd:/system/nmbd.service
    └ 536 /usr/sbin/nmbd -F
    The global portion of my /etc/samba/smb.conf file...
    [global]
    workgroup = HOMESERVER
    server string = Samba Server
    log file = /var/log/samba/%m.log
    max log size = 50
    dns proxy = No
    valid users = dad, lisa, administrator,lr_mediaplayer, xoom, br_mediaplayer
    read list = dad, lisa, administrator, lr_mediaplayer, xoom, br_mediaplayer
    write list = dad, lisa, administrator
    load printers = no
    write cache size = 262144
    large readwrite = yes
    # These next lines have been added after systemd conversion based on web research, none of which has helped.
    log level = 10
    name resolve order = host bcast lmhosts wins
    interfaces = eth0 192.168.10.100/19
    preferred master = yes
    Testing of the /etc/samba/smb.conf file, no errors ...
    $ testparm smb.conf
    Load smb config files from smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[Movies]"
    Processing section "[ParentalMovies]"
    Processing section "[Server]"
    Loaded services file OK.
    WARNING: You have some share names that are longer than 12 characters.
    These may not be accessible to some older clients.
    (Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
    Server role: ROLE_STANDALONE
    My network config file for [email protected]...
    $ cat /etc/network.d/eth0
    CONNECTION='ethernet'
    DESCRIPTION='A basic static ethernet connection using iproute'
    INTERFACE='eth0'
    IP='static'
    ADDR='192.168.10.100'
    #ROUTES=('192.168.0.0/24 via 192.168.1.2')
    GATEWAY='192.168.10.1'
    DNS=('76.85.229.110' '76.85.229.111')
    Master Browser search and again with the rogue .255 ending for the IP address being broadcast.
    $ nmblookup -M HOMESERVER
    INFO: Current debug levels:
    all: 10
    tdb: 10
    printdrivers: 10
    lanman: 10
    smb: 10
    rpc_parse: 10
    rpc_srv: 10
    rpc_cli: 10
    passdb: 10
    sam: 10
    auth: 10
    winbind: 10
    vfs: 10
    idmap: 10
    quota: 10
    acls: 10
    locking: 10
    msdfs: 10
    dmapi: 10
    registry: 10
    doing parameter name resolve order = host bcast lmhosts wins
    doing parameter log file = /var/log/samba/%m.log
    doing parameter max log size = 50
    doing parameter dns proxy = No
    doing parameter valid users = dad, lisa, administrator,lr_mediaplayer, xoom, br_mediaplayer
    doing parameter read list = dad, lisa, administrator, lr_mediaplayer, xoom, br_mediaplayer
    doing parameter write list = dad, lisa, administrator
    doing parameter load printers = no
    doing parameter write cache size = 262144
    doing parameter large readwrite = yes
    doing parameter preferred master = yes
    pm_process() returned Yes
    lp_servicenumber: couldn't find homes
    set_server_role: role = ROLE_STANDALONE
    Substituting charset 'UTF-8' for LOCALE
    added interface eth0 ip=fe80::3285:a9ff:fe8e:90f7%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
    added interface eth0 ip=192.168.10.100 bcast=192.168.10.255 netmask=255.255.255.0
    bind succeeded on port 0
    Socket options:
    SO_KEEPALIVE = 0
    SO_REUSEADDR = 1
    SO_BROADCAST = 1
    Could not test socket option TCP_NODELAY.
    Could not test socket option TCP_KEEPCNT.
    Could not test socket option TCP_KEEPIDLE.
    Could not test socket option TCP_KEEPINTVL.
    IPTOS_LOWDELAY = 0
    IPTOS_THROUGHPUT = 0
    SO_SNDBUF = 212992
    SO_RCVBUF = 212992
    SO_SNDLOWAT = 1
    SO_RCVLOWAT = 1
    SO_SNDTIMEO = 0
    SO_RCVTIMEO = 0
    Could not test socket option TCP_QUICKACK.
    Socket opened.
    lang_tdb_init: /usr/lib/samba/en_US.UTF-8.msg: No such file or directory
    querying HOMESERVER on 192.168.10.255
    bind succeeded on port 0
    Socket options:
    SO_KEEPALIVE = 0
    SO_REUSEADDR = 1
    SO_BROADCAST = 1
    Could not test socket option TCP_NODELAY.
    Could not test socket option TCP_KEEPCNT.
    Could not test socket option TCP_KEEPIDLE.
    Could not test socket option TCP_KEEPINTVL.
    IPTOS_LOWDELAY = 0
    IPTOS_THROUGHPUT = 0
    SO_SNDBUF = 212992
    SO_RCVBUF = 212992
    SO_SNDLOWAT = 1
    SO_RCVLOWAT = 1
    SO_SNDTIMEO = 0
    SO_RCVTIMEO = 0
    Could not test socket option TCP_QUICKACK.
    parse_nmb: packet id = 9235
    nmb packet from 192.168.10.100(35072) header: id=9235 opcode=Query(0) response=Yes
    header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
    header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
    answers: nmb_name=HOMESERVER<1d> rr_type=32 rr_class=1 ttl=259200
    answers 0 char .....d hex 0000C0A80A64
    Got a positive name query response from 192.168.10.100 ( 192.168.10.100 )
    192.168.10.100 HOMESERVER<1d>
    Thank you.
    Last edited by imatechguy (2012-11-20 03:16:39)

    ChojinDSL wrote:Do you have a firewall running on that server?
    Are your clients also using systemd?
    Yes I do have a firewall, iptables, and it's the same configuration from before the migration to systemd.  Also note that I can access the shares when explicitly defining the path whether that's in a File Manager, cli or other so access isn't being blocked.  For lack of a better explanation the whole thing gives the appearance that although the Share is active it's just not broadcasting it's existence like it should be.
    I have two PC's, both Arch, one with Openbox and one running KDE that I have migrated to systemd.  Both can access the Share when the path is explicitly defined but don't see it when trying to just browse for the the Share.  I have a Xoom tablet, running Android Jelly Bean, that exhibits the same behavior.  I also have two media players, one an older WD LiveTV Plus model the other a newer WD LiveTV model, neither of which can see the share and browsing is the only option for those devices.  So I've got a pretty good assortment of devices and operating systems that could see the share when browsing previously but can not see the same share by browsing since the migration to systemd on the file server.
    Thank you.

  • Mounting samba share starts avahi, ssh and sftp at client

    The problem is at the client. When i mount a samba share (with # mount), avahi is started, which starts ssh and sftp. This is wrong on many levels.
    Not sure how long this has been going on, someone else already asked this on stackexchange on 11.2.15, but didn't get any answers.
    Journal output immediatly after mounting (hostname, ip etc. removed):
    Mär 18 01:35:51 hostname dbus[434]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
    Mär 18 01:35:51 hostname systemd[1]: Cannot add dependency job for unit boot.automount, ignoring: Unit boot.automount is masked.
    Mär 18 01:35:51 hostname systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    Mär 18 01:35:51 hostname systemd[1]: Starting Avahi mDNS/DNS-SD Stack Activation Socket.
    Mär 18 01:35:51 hostname systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Found user 'avahi' (UID 84) and group 'avahi' (GID 84).
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Successfully dropped root privileges.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: avahi-daemon 0.6.31 starting up.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
    Mär 18 01:35:51 hostname dbus[434]: [system] Successfully activated service 'org.freedesktop.Avahi'
    Mär 18 01:35:51 hostname systemd[1]: Started Avahi mDNS/DNS-SD Stack.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Successfully called chroot().
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Successfully dropped remaining capabilities.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Loading service file /services/sftp-ssh.service.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Loading service file /services/ssh.service.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Joining mDNS multicast group on interface enp1234.IPv4 with address myip.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: New relevant interface enp1234.IPv4 for mDNS.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Network interface enumeration completed.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Registering new address record for myip on enp1234.IPv4.
    Mär 18 01:35:51 hostname avahi-daemon[2583]: Registering HINFO record with values 'X86_64'/'LINUX'.
    Mär 18 01:35:52 hostname avahi-daemon[2583]: Server startup complete. Host name is hostname.local. Local service cookie is 123.
    Mär 18 01:35:53 hostname avahi-daemon[2583]: Service "hostname" (/services/ssh.service) successfully established.
    Mär 18 01:35:53 hostname avahi-daemon[2583]: Service "hostname" (/services/sftp-ssh.service) successfully established.

    Thanks for your answer.
    snakeroot wrote:Are you sure it is actually starting ssh and ssftp or is it just having avahi advertise them as existing?
    I'm not sure if anything is started, the term "Service ssh successfully established" sounds like the ssh serrver is started to me, but it might just be strange wording. What does "advertise as existing" mean?
    From the snippet you quoted, it looks like the latter. Unless you have alread started socket activation for ssh or sftp, whether via systemd *.socket or inetd, I'm not sure it would actually be started.
    I didn't enable anything manually.
    I think you can rm/mv the sftp-ssh.service and ssh.service files /etc/avahi/services/ and prevent those services from being advertised.
    OK thanks for the hint. Nontheless i would rather stop avahi from starting than configuring it.
    Begin rant...
    I'm a bit annoyed that avahi is starting without my permission. Seems like systemd is getting a bit overzealous with starting services. Interestingly this was one of the big problems with upstart, and was supposed to be solved with systemd. I still like systemd.

  • How to start my Samba share correctly?

    Every time I reboot my system I have to use Gadmin-Samba to re-activate my Samba share and it is quite annoying.
    When I start Gadmin-Samba I get this:
    http://oi44.tinypic.com/10glij4.jpg
    I have to deactivate first and then activate again, then my share can be accessed by other computers. Is there any way to solve this problem?

    stryder wrote:I have never used gadmin-samba so cannot help you with it. If you have a fixed folder you want to share I would suggest you look for the wiki page on Samba and set up smb.conf and then put "samba" in the daemons line in your rc.conf.
    Hi thanks for your replies. I did check the wiki page where is also the place I started from zero to configure Samba in my machine.
    The problem in my system seems to be linked with the winbind server because in gadmin-samba's settings window I see an option to start winbind server. And I always see a message of "inactive servers: winbindd" when I open gadmin-samba.
    What is this winbind or winbindd server and how do I start it automatically?

  • Finder lock ups due to samba shares being invalidated by changing network

    I often leave my macbook online for a long time unattended, for simplicity I tend to plug it into its power lead, and also connect it up to my gigabit network. I know i've set the priority in my connections to prefer the wired connection over wireless but just to keep things simple i disable airport so i can be sure that i will be connected via gigabit.
    I'll then go in and map a network drive from one of my PCs on the lan, this is mounted and available.
    Sometime in the future i'll go mobile again, like i just did today. Disconnecting power and gigabit ethernet, i re-enable airport. After a short while its all good to go.. I then start using the internet connection. All is fine.
    Then finally i spot that my samba drive is still mapped, i've had trouble selecting this drive to use it, but sadly also you get real trouble by just trying to eject the mount. Doing so and nothing happens.. after 10-20 seconds everything is frozen, including the animated dock, and top toolbar, and you are presented with the spinning wheel of activity.
    applealtesc does NOT bring up the force close dialog, and eventually i was forced to force a shutdown.. apple power button isn't it? I had the power button held down for a long time.
    Generally i find the mounting samba drives a bit of a pain in the finder but i can put up with it. Samba shares on windows are a nightmare but they rarely bring down the whole system when a connection has been broken.. i'd love it if mac OS would time out the samba share and just give up, rather than hanging in the way it does do.
    Obviously i'm accessing my LAN through a different interface and IP address than i was when i set up the connection. I am not sure if you have a similar problem as described if you just disconnect from the network and have no net connection at all.. not sure what it would do with a share in this way.
    Is this worth logging as an actual bug? anyone got any suggestions to fix it?

    Ok, no luck yet. Maybe I can ask another question directly related to this issue. I am trying to find the cause of this and I am wondering if there is a brief dropout in the connection to the NAS. By brief, I mean really brief. The NAS is connected via a Homeplug network connection (network via the homes power points) and maybe for a very brief period interferrence on the lines dropped the AFP connection.
    Is it normal that it is then impossible for AFP to reconnect, even when the NAS is clearly back on the network?
    Any drop will have to be very brief as I can always stream music without issues, and no drop or slow down has caused buffering issues.
    But, I don't recall getting this issue when directly connected to the iMac via a short ethernet cable for the initial Time Machine backups that take over a day.
    What I don't understand though, is if the connection did briefly drop and loose the AFP link, why can AFP no longer connect back? Why do I need to sleep the iMac and then wake it again.
    HTTP connections to the NAS never seem to drop, and when I can't recconnect via AFP, I can always connect via HTTP? Is this expected of the AFP protocol? Or is it an unexpected issue?

  • [SOLVED]Samba not working despite all my efforts

    Hi all, this be my first post ever.
    I am somewhat of a noob, jumped over to arch64 after ubuntu about a month ago, so please bear with me if I seem a little "behind".
    I've spent probably a total of 24 hours trying to get my Samba shares available to my other housemates.  They can see the shares, but cannot mount them (windows and linux).  All I want is for a public share to be writable, everything else read-only and the security to be "share" (I don't want unix accounts for each of my housemates, and this would be annoying for anyone else who drops in with their laptops).  I've trolled the internet for every how-to guide and nothing seems to work.  What is further annoying is that one of my housemates also runs arch and his (near) exact smb.conf doesn't work for me.
    Anyway, to business.  My smb.conf:
    # This is the main Samba configuration file. You should read the
    # smb.conf(5) manual page in order to understand the options listed
    # here. Samba has a huge number of configurable options (perhaps too
    # many!) most of which are not shown in this example
    # For a step to step guide on installing, configuring and using samba,
    # read the Samba-HOWTO-Collection. This may be obtained from:
    # http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
    # Many working examples of smb.conf files can be found in the
    # Samba-Guide which is generated daily and can be downloaded from:
    # http://www.samba.org/samba/docs/Samba-Guide.pdf
    # Any line which starts with a ; (semi-colon) or a # (hash)
    # is a comment and is ignored. In this example we will use a #
    # for commentry and a ; for parts of the config file that you
    # may wish to enable
    # NOTE: Whenever you modify this file you should run the command "testparm"
    # to check that you have not made any basic syntactic errors.
    #======================= Global Settings =====================================
    [global]
    # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
    workgroup = HOUSEOTDAMNED
    # server string is the equivalent of the NT Description field
    server string = ***
    # Security mode. Defines in which mode Samba will operate. Possible
    # values are share, user, server, domain and ads. Most people will want
    # user level security. See the Samba-HOWTO-Collection for details.
    security = share
    # This option is important for security. It allows you to restrict
    # connections to machines which are on your local network. The
    # following example restricts access to two C class networks and
    # the "loopback" interface. For more examples of the syntax see
    # the smb.conf man page
    ; hosts allow = 192.168.1. 192.168.2. 127.
    # If you want to automatically load your printer list rather
    # than setting them up individually then you'll need this
    load printers = yes
    # you may wish to override the location of the printcap file
    ; printcap name = /etc/printcap
    # on SystemV system setting printcap name to lpstat should allow
    # you to automatically obtain a printer list from the SystemV spool
    # system
    ; printcap name = lpstat
    # It should not be necessary to specify the print system type unless
    # it is non-standard. Currently supported print systems include:
    # bsd, cups, sysv, plp, lprng, aix, hpux, qnx
    ; printing = cups
    # Uncomment this if you want a guest account, you must add this to /etc/passwd
    # otherwise the user "nobody" is used
    ; guest account = pcguest
    # this tells Samba to use a separate log file for each machine
    # that connects
    log file = /var/log/samba/%m.log
    # Put a capping on the size of the log files (in Kb).
    max log size = 50
    # Use password server option only with security = server
    # The argument list may include:
    # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
    # or to auto-locate the domain controller/s
    # password server = *
    ; password server = <NT-Server-Name>
    # Use the realm option only with security = ads
    # Specifies the Active Directory realm the host is part of
    ; realm = MY_REALM
    # Backend to store user information in. New installations should
    # use either tdbsam or ldapsam. smbpasswd is available for backwards
    # compatibility. tdbsam requires no further configuration.
    ; passdb backend = tdbsam
    # Using the following line enables you to customise your configuration
    # on a per machine basis. The %m gets replaced with the netbios name
    # of the machine that is connecting.
    # Note: Consider carefully the location in the configuration file of
    # this line. The included file is read at that point.
    ; include = /usr/local/samba/lib/smb.conf.%m
    # Configure Samba to use multiple interfaces
    # If you have multiple network interfaces then you must list them
    # here. See the man page for details.
    ; interfaces = 192.168.12.2/24 192.168.13.2/24
    # Browser Control Options:
    # set local master to no if you don't want Samba to become a master
    # browser on your network. Otherwise the normal election rules apply
    ; local master = no
    # OS Level determines the precedence of this server in master browser
    # elections. The default value should be reasonable
    ; os level = 33
    # Domain Master specifies Samba to be the Domain Master Browser. This
    # allows Samba to collate browse lists between subnets. Don't use this
    # if you already have a Windows NT domain controller doing this job
    ; domain master = yes
    # Preferred Master causes Samba to force a local browser election on startup
    # and gives it a slightly higher chance of winning the election
    ; preferred master = yes
    # Enable this if you want Samba to be a domain logon server for
    # Windows95 workstations.
    ; domain logons = yes
    # if you enable domain logons then you may want a per-machine or
    # per user logon script
    # run a specific logon batch file per workstation (machine)
    ; logon script = %m.bat
    # run a specific logon batch file per username
    ; logon script = %U.bat
    # Where to store roving profiles (only for Win95 and WinNT)
    # %L substitutes for this servers netbios name, %U is username
    # You must uncomment the [Profiles] share below
    ; logon path = \\%L\Profiles\%U
    # Windows Internet Name Serving Support Section:
    # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
    ; wins support = yes
    # WINS Server - Tells the NMBD components of Samba to be a WINS Client
    # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
    ; wins server = w.x.y.z
    # WINS Proxy - Tells Samba to answer name resolution queries on
    # behalf of a non WINS capable client, for this to work there must be
    # at least one WINS Server on the network. The default is NO.
    ; wins proxy = yes
    # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
    # via DNS nslookups. The default is NO.
    dns proxy = no
    # These scripts are used on a domain controller or stand-alone
    # machine to add or delete corresponding unix accounts
    ; add user script = /usr/sbin/useradd %u
    ; add group script = /usr/sbin/groupadd %g
    ; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
    ; delete user script = /usr/sbin/userdel %u
    ; delete user from group script = /usr/sbin/deluser %u %g
    ; delete group script = /usr/sbin/groupdel %g
    #============================ Share Definitions ==============================
    ;[homes]
    ; comment = Home Directories
    ; browseable = no
    ; writable = yes
    # Un-comment the following and create the netlogon directory for Domain Logons
    ; [netlogon]
    ; comment = Network Logon Service
    ; path = /usr/local/samba/lib/netlogon
    ; guest ok = yes
    ; writable = no
    ; share modes = no
    # Un-comment the following to provide a specific roving profile share
    # the default is to use the user's home directory
    ;[Profiles]
    ; path = /usr/local/samba/profiles
    ; browseable = no
    ; guest ok = yes
    # NOTE: If you have a BSD-style print system there is no need to
    # specifically define each individual printer
    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = yes
    public = yes
    guest ok = yes
    writable = no
    printable = yes
    # This one is useful for people to share files
    ;[tmp]
    ; comment = Temporary file space
    ; path = /tmp
    ; read only = no
    ; public = yes
    # A publicly accessible directory, but read only, except for people in
    # the "staff" group
    ;[public]
    ; comment = Public Stuff
    ; path = /home/samba
    ; public = yes
    ; writable = yes
    ; printable = no
    ; write list = @staff
    # Other examples.
    # A private printer, usable only by fred. Spool data will be placed in fred's
    # home directory. Note that fred must have write access to the spool directory,
    # wherever it is.
    ;[fredsprn]
    ; comment = Fred's Printer
    ; valid users = fred
    ; path = /homes/fred
    ; printer = freds_printer
    ; public = no
    ; writable = no
    ; printable = yes
    # A private directory, usable only by fred. Note that fred requires write
    # access to the directory.
    ;[fredsdir]
    ; comment = Fred's Service
    ; path = /usr/somewhere/private
    ; valid users = fred
    ; public = no
    ; writable = yes
    ; printable = no
    # a service which has a different directory for each machine that connects
    # this allows you to tailor configurations to incoming machines. You could
    # also use the %U option to tailor it by user name.
    # The %m gets replaced with the machine name that is connecting.
    ;[pchome]
    ; comment = PC Directories
    ; path = /usr/pc/%m
    ; public = no
    ; writable = yes
    # A publicly accessible directory, read/write to all users. Note that all files
    # created in the directory by users will be owned by the default user, so
    # any user with access can delete any other user's files. Obviously this
    # directory must be writable by the default user. Another user could of course
    # be specified, in which case all files would be owned by that user instead.
    [public]
    path = /home/***/Data/public/
    public = yes
    guest ok = yes
    only guest = yes
    guest account = nobody
    browsable = yes
    writable = yes
    printable = no
    # The following two entries demonstrate how to share a directory so that two
    # users can place files there that will be owned by the specific users. In this
    # setup, the directory should be writable by both users and should have the
    # sticky bit set on it to prevent abuse. Obviously this could be extended to
    # as many users as required.
    ;[myshare]
    ; comment = Mary's and Fred's stuff
    ; path = /usr/somewhere/shared
    ; valid users = mary fred
    ; public = no
    ; writable = yes
    ; printable = no
    ; create mask = 0765
    The group "nobody" does exist in /etc/group.  I have also made sure that "public" has 777 permissions.  The others shares aren't here as I kinda figured as one works, the others would follow suit when I add them.
    If it helps, my rc.conf daemons and modules:
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    MODULES=(vboxdrv usblp acpi_cpufreq cpufreq_ondemand cpufreq_powersave fuse)
    DAEMONS=(@syslog-ng @alsa @cpufreq hal fam gdm !network @crond @portmap @networkmanager @samba @netfs @cups @ntpd @xinetd)
    For what it's worth, I don't think my housemate uses networkmanager.
    Any help would be greatly appreciated, this is driving me insane.  Please let me know if any more info would help also.
    Thanks!
    Last edited by o1911 (2009-05-15 09:35:13)

    That did it- thank you very much!
    edit: not sure how to put [SOLVED] in the topic...
    Last edited by o1911 (2009-05-15 08:36:39)

Maybe you are looking for