[SOLVED]cannot share folder in home directory with SAMBA

My problem is relatively small as I can use a workaround but I would like to be able to discern whether or not my troubles  stem from a bug or my own incompetence. 
Basically it seems I can share just about anything I want EXCEPT for a file or folder in my home directory.  I  have two primary users on my box, root & dunce, and what I am unable to do is share "/home/dunce/shared".  I've tried quite a few different configs based on what I could find online but nothing works.  Initially I followed the SAMBA instrucions on the Arch Wiki and that was fine for other items I wanted to share.  I feel like I'm kinda'   makin' a mountain out of a molehill here but I would really like to understand WHY I can't share from "/home/dunce/shared".  I really don't think it's a problem in smb.conf but then again . . .  Any insight would be greatly appreciated.
Last edited by Captain Dunce (2011-01-24 07:11:06)

The option browseable if not defined is per default set to yes.
Excerpt from The definitive guide to samba 3
browseable: This parameter determines whether a share appears in browse lists on clients. The default value of YES causes a share to appear and is usually appropriate. You can hide a share by setting this parameter to NO; however, be aware that this setting doesn't make a share unavailable, only hidden from casual browsing.
Another thing I stumbled upon is that samba can get confused if security=share is used. It will try different usernames until it finds one that can be used, or will deny access if none can be used. The following list is the order it tries to access the share:
Guest, Client provided username, Prior login, Share name, Client name, User list (if defined).
You can try to set
guest ok = yes
and see if that changes the behaviour. You will need
guest account = nobody
or something similar in you global configuration to make this work.
Whatever user you set as guest need to exist in the samba database. And must be a existing linux username as well.
Another option is to set the guest account in the share definition and only allow guest access.
[share]
path = /home/dunce/sharefolder
browseable = yes
writable = yes
guest account = dunce
guest ok = yes
guest only = yes
Again the username (dunce) need to exist in the samba database. Depending on your setup this can be set with the command pdbedit.
There is a samba book available online from O'Reilly. It is a bit dated, but the info on shares should still be valid. I think chapter 6 is especially interesting for you in your scenario.
http://oreilly.com/catalog/samba/chapte … index.html

Similar Messages

  • Photoshop replacing home directory with tilde~

    whenever I run an app.activeDocument.fullName (or app.activeDocument.path), it repalces the home directory with a tilde(~), so
    "Macintosh HD/Users/myname/Desktop/filename.psd"
    becomes just
    "~/Desktop/filename.psd"
    can anyone think of a way to get what's behind that tilde and get the FULL PATH of the file??
    THANK YOU

    $.writeln(app.activeDocument.path.fsName+'/'+app.activeDocument.name);
    Paul, beat me & it's better…

  • How to use smb share for home directory with AD account

    I have extended the schema of our AD and bound a macbook pro running 10.6.8 to the domain. AD users are able to logon, and if I select the option to use their AD homedirectory attribute then this smb share is used as a network drive. My question is though, I need users to logon to MAC using a different smb share for their home drive than the path set in the home directory attribute. Does anyone know how I can achieve this?
    Cheers
    Paul.

    But this method cannot use Regular Expression because my searching target is more than one line.Yes it can!
    Like you said, first you list all the files in the folder.
    For each file, use a BufferedReader to read the first lines, then you may use a StringBuffer to append the lines into it (don't forget to append the '\n' to each line).
    Finally, compile your pattern ( "^November.*\nDecember" ) with the DOTALL flag,
    verify that the string (from StringBuffer) matches the pattern and there you have it!

  • Why are there no sounds located in the Library/Sounds folder in Home Directory? My Mail alerts, etc

    Why are there no sounds located in the Library/Sounds folder in my Home Directory? Since upgrading to Mountain Lion most of my sounds are not working, in my Mail alerts, etc.

    Did you put any sound files there? Because if you didn't, that will explain why it's empty.
    The ~/Library/Sounds folder is where any sound files that you add go, and they are only available to you as the "logged in" user (if you have other users with their own accounts, they each have their own ~/Library/Sounds folder). Apple doesn't put anything there.
    The sounds that come with Mac OS X will either be in the /Library/Sounds folder (which is the shared location for all users) or the /System/Library/Sounds folder (don't mess around with anything in the /System folder!).
    But I doubt your problem has anything to do with the sound files. Try deleting your sound preferences file, or even just clicking around in the Sound system preferences until they start working again (seriously - I had one Mac that had some audio problems after upgrading, and just turning things off and on a few times eventually worked. It seemed somehow tied to Dictation, so try twiddling those settings too).

  • [SOLVED] Cannot migrate to encrypted home partition

    So I installed Arch to play around and familiarise myself with, and I'd now like to use it full time. My company require that either home dir or full disk encryption is used, so I need to migrate my home directory using ecryptfs. Followed the wiki (created a test user to break first though), but it fails as lsof seems to see its own process checking for open files as an open file: cue much
    INFO: Checking disk space, this may take a few moments. Please be patient.
    INFO: Checking for open files in /home/shw
    INFO: The following files are in use:
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    systemd 1 root 19r FIFO 0,8 0t0 8339 pipe
    lsof 428 root 1w FIFO 0,8 0t0 10969 pipe
    lsof 428 root 4w FIFO 0,8 0t0 9076 pipe
    lsof 428 root 5r FIFO 0,8 0t0 9077 pipe
    sed 429 root 0r FIFO 0,8 0t0 10969 pipe
    lsof 430 root 3r FIFO 0,8 0t0 9076 pipe
    lsof 430 root 6w FIFO 0,8 0t0 9077 pipe
    ERROR: Cannot proceed.
    Any suggestions?
    Last edited by analbeard (2014-11-20 08:24:39)

    I will give it try tomorrow and inform you about the outcome. I will use the guide  by anarxc http://sysphere.org/~anrxc/j/articles/e … index.html
    Just to complete the information. When I logged in as root, (right after the boot) I got this
    [root@notebook ~]$ ecryptfs-migrate-home -u user
    INFO: Checking disk space, this may take a few moments. Please be patient.
    INFO: Checking for open files in /home/shw
    INFO: The following files are in use:
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    systemd 1 root 22r FIFO 0,8 0t0 1196 pipe
    systemd 1 root 23u FIFO 0,15 0t0 1198 /run/dmeventd-server
    systemd 1 root 24u FIFO 0,15 0t0 1199 /run/dmeventd-client
    systemd 1 root 26u FIFO 0,15 0t0 1203 /run/systemd/initctl/fifo
    NetworkMa 258 root 20w FIFO 0,15 0t0 10093 /run/systemd/inhibit/1.ref
    systemd-l 260 root 19r FIFO 0,15 0t0 10093 /run/systemd/inhibit/1.ref
    systemd-l 260 root 26r FIFO 0,15 0t0 14800 /run/systemd/sessions/c2.ref
    login 527 root 6w FIFO 0,15 0t0 14800 /run/systemd/sessions/c2.ref
    ecryptfs- 669 root 1w FIFO 0,8 0t0 16695 pipe
    tee 670 root 0r FIFO 0,8 0t0 16695 pipe
    lsof 692 root 1w FIFO 0,8 0t0 16798 pipe
    lsof 692 root 4w FIFO 0,8 0t0 15619 pipe
    lsof 692 root 5r FIFO 0,8 0t0 15620 pipe
    sed 693 root 0r FIFO 0,8 0t0 16798 pipe
    sed 693 root 1w FIFO 0,8 0t0 16695 pipe
    lsof 694 root 3r FIFO 0,8 0t0 15619 pipe
    lsof 694 root 6w FIFO 0,8 0t0 15620 pipe
    ERROR: cannot proceed
    Last edited by macaco (2014-11-17 23:43:45)

  • [SOLVED] Where did my old home directory go?

    I just copied my home folder over to a bigger partition for lack of space, and edited my fstab file accordingly.
    Then I logged out, renamed the old user folder from /home/myuser to /home/__myuser just to be sure I was not operating from the old directory anymore.
    I rebooted, and all seem to have went well - except now I have no idea where that __myuser folder has ended up residing? it is not in the /home directory anymore, but I can tell it still exist by looking at the disc usage on my root partition.
    Where to look?
    Last edited by jerik (2015-05-15 21:43:13)

    When you mount a partition to "/home" is "goes over top of" what is already there.  Most likely your old user is underneath that old mount and can't be seen because the new mount is sitting on top of it.  You could boot off the Arch ISO, make sure your new /home isn't mounted, and move your old user out of /home and then mount your new /home and copy the user onto that partition.

  • Portable Home Directory WITH a Windows Server/AD and WITHOUT OSX Server/OD

    Hi All,
    I'm pushing the envelope here a bit, but here's the situation:
    - Windows 2003 AD Servers
    - Windows 2003 Home Directory File Server
    - MacOS X 10.5.2 client (on an Intel iMac)
    Everything works fine (once you add the AD server's IP/domain name into /etc/hosts and remove the dashes from the name of the client you're trying to join anyway). I can login, logout, run all the Apps I need. Get fine throughput from the server.
    The problem comes when I try to turn on Portable Home Directories (Mobile Accounts) for users of the client. I believe the client is trying to use "Server Side File Tracking for Mobile Home Sync", and so is trying to SSH into the Windows machine. This, perhaps unsurprisingly, is not working.
    Is there any way to turn this off without using Open Directory (even there it seems to be part of Server Admin General Prefs and not Managed Preferences)?

    Portable Homes work just fine with non-Apple servers. It just that you will not get the performance improvements of 10.5 server's "Server Side File Tracking for Mobile Home Sync".
    If Portable Homes are not working for you file a bug with Apple.

  • HT202113 Can I share music via home sharing with other iPhones?

    I Would like to share music and photos withe home sharing if you can do so.

    Hi owexrn,
    Home Sharing is designed to share content in iTunes either between computers, or between an iOS device and Apple TV.  If you'd like to learn more about Home Sharing, please see the link below.
    Learn more about Home Sharing - Apple Support
    Thanks for using the Apple Support Communities!
    Cheers,
    Alex H.

  • File Vault on HOme Directory with encrypted disk image in it

    I want to try File Vault. My question is as follows: I have an encrypted disk image already in my home folder. It is a small 500 MB one. Can I keep that in there, as is, without problems, or is File Vault going to encrypt and encrypted image and cause some sort of problem?
    Has anyone done this without issues?
    I know the alternative is to unencrypt my current image and let File Vault handle the encryption, but I am curious about leaving it alone and trying File Vault.
    Thanks for any help,
    x-.-x

    x-.-x wrote:
    I want to try File Vault.
    Good luck!
    File Vault going to encrypt and encrypted image and cause some sort of problem?
    FileVault is no more likely to scramble an encrypted disk image than it is to scramble the rest of your files. However, it is quite likely that it will scramble all of your files.
    Has anyone done this without issues?
    I have read many postings here in the discussion forums by people who have used FileVault and lost all of their data. Your mileage may vary. The only way I would use FileVault would be if I had an unencrypted copy of everything somewhere safe. Like you, I keep a small encrypted disk image for particularly sensitive files.

  • I finally got my desired homepage to open when I start firefox, but I still cannot click on my home icon with firefox open and have it go to my set homepage.

    I changed the target in properties to fix the initial start problem, but even with my homepage set in the control panel, it will not go there when clicking the home icon.

    Hello,
    Note that your version of Firefox is outdated, you can update by going to:
    * Help > About Firefox
    * Please see this link for all of the security updates since version 27: https://www.mozilla.org/security/known-vulnerabilities/firefox/
    Is there a reason you are adding the link to the target line of Firefox? You can change your home page settings at:
    * Tools (or [[Image: New Fx Menu]]) > Options > General
    If that works for you, you do not need to modify the target line for your Firefox shortcut.
    If you are finding changing your home page there doesn't work, you may want to see the article [[How to fix preferences that won't save]], and/or scan for malware:
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://general-changelog-team.fr/en/downloads/viewdownload/20-outils-de-xplode/2-adwcleaner AdwCleaner] (for more info, see this [http://www.bleepingcomputer.com/download/adwcleaner/ alternate AdwCleaner download page])

  • Fontconfig folder in home directory

    Somehow this folder is created in my homedirectory containing .cache-[[:digit:]] files. Does anybody experience the same and maybe know why ?

    No they are not set. I just googled and found this:
    Yes, that's correct. They aren't supposed to be set by default (it was
    a bug that they were). Your scripts/applications that use those
    variables should be checking for their existence and falling back to a
    default unless you're sure that you're setting them manually yourself.
    https://lists.archlinux.org/pipermail/a … 32980.html
    Somehow it did not appear since then. I guess a malcoded(, meanwhile updated) peace of software was the cuplrit.
    Last edited by manuelschneid3r (2015-04-30 08:33:06)

  • [Solved] Cannot delete folder in Gnome

    I get an error when trying to delete some folders that are in the trash.  The error states it is a permission problem.  Do I need to add my user to another group? 
    I took a look at the groups wiki and didn't find anything relating to deleting files, I guess I have to delete them as root right?
    What I was wondering was, where are the folders on my filesystem so I can rm them as root.  In Gnome I right click on the file and it says the location is trash:///
    I tried searching for them but no success.
    Last edited by Xherziu (2008-05-27 18:34:47)

    They _should_ be under your XDG_DATA_DIR I think. But I don't know if Gnome does that.

  • Create Home Directory in NetWare with the OIM 9.1

    I am trying to find out if there is a way to create a NetWare User home directory with OIM 9.1 and the eDirectory Connector?
    Edited by: user11137756 on May 6, 2009 11:42 AM

    I'm confused. It looks like you already have /home configured:
    <pre># zpool status
    pool: home
    state: ONLINE
    scan: none requested
    config:
    NAME STATE READ WRITE CKSUM
    home ONLINE 0 0 0
    c4t3d0 ONLINE 0 0 0
    errors: No known data errors
    # zfs list
    NAME USED AVAIL REFER MOUNTPOINT
    home 86K 134G 32K /home
    ...</pre>
    What is the problem? Looks like you already have /home configured. Are you sure automounter is not running?
    Try this:
    <pre>zfs set mountpoint=none home
    rm -rf /home
    zfs set mountpoint=/home home</pre>

  • [SOLVED] app that auto populates home folder

    I once used an app from the repos (might have been aur) that auto populated your home directory with the standard sub directories (music, pictures, downloads, documents, etc..) and used the correct specialized icon for each of them.  I know I could just make the folders myself but this app made the hole process automated.  Does any know what the name of this app is? I cant find it anywhere!  Help would be much appreciated!
    thanks in advanced!
    -Dan
    Last edited by Dans564 (2011-07-27 19:47:12)

    speedy help as always.  Thanks man

  • Create home directory using powershell

    Hi Experts -
    Currently AD 11.1.1.5 is deployed. The home directory is been prepopulated at the time of creation of AD account, and there is a custom task called updatehomedir which gets triggered on success response of create user.
    The problem is, the customer has 40 domain controllers and if I use the OOTB process tasks, it fails to find the user and gives me an invalid structure error, meaning it is not able to find the user. So when the first request goes for creating the user, it picks up a random domain controller and if the home directory parameter is been sent in the creation request it fails. so, the post user creation task works fine.
    The Ad connector creates the home directory with the full permissions to the user on that folder, and also it clears out all the existing permissions. By that, it does not inherits the container permissions. SR said, that it is an ER.
    How do I implement it.
    The approach that looks feasible is
    1. Change the provision attribute mapping for homeDirectory to say customHomeDirectory
    2. Disable the home directory update task
    3. Call a powershell after creation action
    4. In that powershell get the process form value, and run the creation of home directory with appropirate permissions.
    And I cannot test it, as the only environment where i have folders is production...
    -Thanks
    Kunal Jain

    After some decompilation I found this
    DirectorySecurity dirSecurity = new DirectorySecurity();
    PropertyValueCollection pvc = directoryEntry.Properties[ActiveDirectoryConnector.ATT_OBJECT_SID];
    SecurityIdentifier sid = new SecurityIdentifier((byte[])pvc[0], 0);
    dirSecurity.AddAccessRule(new FileSystemAccessRule(sid, FileSystemRights.FullControl, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, PropagationFlags.None, AccessControlType.Allow));
    Directory.CreateDirectory(directoryName, dirSecurity);
    Does this strip of the permissions of the file admins on the container. that is inheriting is not done????

Maybe you are looking for

  • I am unable to send emails using iCloud, but am receiving.

    I am unable to send emails using iCloud from both my laptop and my ipad.  I am paying for 25Gb of storage and am only using 3Gb at the moment.  I get the following message " Your email has been placed in the Outbox as you have exceeded your limit for

  • Application help not connecting to SAP

    Hi all, When i click on the help->Application help link, i am not able to see the help documentation. That is, my sap system is not getting connected to application help. Please help me... Thanks...

  • How to run Adobe InDesign CC without needing Domain Admin privileges?

    Adobe InDesign CC needed Admin privileges to install which is fine but it seems to need the same just to start-up and run the program. I've given the user Local Admin but that didn't fix it. I don't want to have to 'Run as Administrator' every time t

  • I can't uninstall or remove FExplorer aplication o...

    I can't uninstall or remove FExplorer aplication on my nokia E63. does it need a tool or something to remove it? please reply.

  • Help re second set of dodgy iphoto headphones

    Please can anyone help me find a way of complaining on the apple site, as I can't find it anywhere. My problem is that I ordered replacment headphones about 2 months ago, whilst my ipod was still within the one year guarantee. These headphones are no