Samba mounting windows share

Hi, I'm trying to mount a windows share but all I can do after mounting is seeing the folders and files on the share. I can not read any file, I get "permission denied". On windows everything should be set to allow for the files to be read (if my brother didn't forget, overlooked anything). I even disabled the windows firewall.
The windows 2000 computer can access the arch linux samba shares without a problem.
I'm running arch current up to date.
Here's how I mount, as root:
mount -t smbfs -o username=gast,password=gast //192.168.0.132/Muziek /mnt/LW/Muziek/
(gets mounted succesfully, but I can't read the files)
Here's my /etc/samba/smb.conf:
#Global Parameters
[global]
workgroup = THUIS
netbios name = gel
passdb backend = smbpasswd
force create mode = 0770
force directory mode = 0770
wins support = yes
case sensitive = no
encrypt passwords = yes
security = share
server string = Linux                 
[share]
path = /mnt/hda1
public = yes
only guest = yes
writable = no
printable = no
create mask = 777
Can anyone help me out? I've been trying to get it working for at least a few hours :s.

You are right. I did not need the dir_mode and file_mode, and I did have full control enable, but no dice.
However it seems there is a folder aliasing feature, that was introduced in windows vista (though I don't recall the windows name for the feature and I am running win7), I believe to be the problem. For example, if I share and mount  C:\Users I have access to C:\Users\myuser and can create folders and documents there. However the predefined folders Music, Documents, Pictures I have no write permission inside of.
Next if I share and mount C:\Users\myuser I have the same result for those folders however now I can see additional folders  one is 'My Documents' in this folder I have write access and changes are mapped back to the Documents Folder. Additionally there are now showing in the Documents folder, I had no write access to, additional folders which also weren't showing before 'My Music', 'My Pictures', and 'My Videos' in which I now have write access and they map back as well.
When I connected to the shares from an XP machine I could simply access the original folders.

Similar Messages

  • Applescript for mounting Windows Shares

    I have scoured the web for this script for mounting windows shares in OS X. I am compiling it as an application and dropping it into the startup items:
    tell application "Finder"
    activate
    try
    mount volume "cifs://SERVER/SHARE"
    end try
    end tell
    My question is this: I have a MacBook(Pro) and use it at home and at work... I have scripts setup for both locations, to mount various shares, but when I'm at home and the work scripts run, they fail to mount (because I'm not on the work network), or when I'm at home, the work shares fail to mount, generating a dialog with something to the effect of "couldn't find that share"... I've got a dozen of these scripts, it would be nice if it would just silently fail, rather then generating multiple dialogs.
    I was thinking of making the apple script check my ip address, and if it returns a work IP address, then it would go onto talking to the finder, if it doesn't find a matching IP address, then it would just end.
    Or, somehow have applescript ping the server that it's trying to connect to, and on success, run the script, and on fail just end it.
    Any thoughts?
    Thanks,
    Dan Ormsby

    You should probably post in the AppleScript forums:
    http://discussions.apple.com/forum.jspa?forumID=724

  • [SOLVED] mounted windows shares from fstab dont stay mounted

    i have windows shares mounted through fstab and when i first boot up, they are mounted fine, but after a certain amount of time (not sure how long it takes) they disappear and it hangs thunar (oh yeah, using xfce) and i have to reboot to get them back. running mount -a doesnt bring them back
    line from fstab
    //charger/share /home/user/Documents cifs rw,uid=1000,gid=1000,file_mode=0700,dir_mode=0700,credentials=/home/credfile 0 0
    daemons line from rc.conf
    DAEMONS=(hwclock syslog-ng hal network netfs samba @alsa crond)
    Last edited by dodgefan (2011-08-03 20:01:44)

    thanks anyway, figured it out, installed autofs and setup everything to mount to /media and made links to my home folder

  • Finder can't access a mounted windows share - but the Terminal can...

    When I mount a drive using the finder's "Go / Connect to Server..." command I can choose the share to connect to and Finder mounts the share, puts it on the desktop etc... but then it tells me that:
    "The folder “Sharename” can’t be opened because you don't have permission to see its contents."
    Any attempt to access the folder through the finder will result in the same error message.
    Since the share does otherwise mount sucessfully, it shows up in /Volumes/ and using the terminal I can access the contents of the drive and open files. Applications, both terminal and GUI can read and save to files and folders opened in this way, but the GUI application cannot find the path again if you browse away in the app's browsable dialog boxes (like Save or Open). I can access any file using an absolute path in any program.
    There are more nuances to this behaviour:
    Other shares hosted by the same server don't have this problem.
    Using the terminal, I appear to have the same Unix permissions to the files and folders on the shares that work as the ones that don't work.
    Using Finder's "Go to Folder..." command I can open some, but not all folders in the flaky sharepoint mounts. All files seem to work though.
    My guess is that there are some permissions that are making Finder unhappy, but I'm not sure what they might be. But regardless, why then can I access everything from the Terminal? I'd like to use the Finder - it makes my experience much smoother!
    Some other people in this forum seem to have had the same problem with their NAS drives, but I don't think anyone has yet suggested they try accessing it via the terminal. It would be really helpful if anyone could confirm this Finder/Terminal discrepant behaviour.
    Any thoughts?

    I am having the same problem but with OS X 10.9 (Mavericks).
    I try to connect to the NAS via the Go / Connect to Server utilizing smb or cifs protocols and it will mount but then I can't enter the mounted drives/directories with finder.
    The workaround for forcing smb1 has been applied and I find that Finder would not permit me to enter those mounted directories but I can go via the command line and work fine. The  only issue is that with a Mac, as much as everybody say, you should not need to go to the command line... Yeah, right.
    For the amount of money that I paid for the Mac Book Pro, it should work. So, now I can confirm that even Mac OS X can be as bad as Windows...
    Any idea when will Apple put out a fix or an update to finder?

  • Mount windows share in linux

    How can i mount a windows share in read-write mode from my linux system
    I am able to mount in readonly mode as below even though i mentioned rw in that.
    mount -t cifs -o username=administrator,password=adminpass,rw,0,0 //192.168.1.1/RHEL5 /mnt/win
    This post is related to Re: backup strategy

    I managed to make it work.
    I did entry as below in /etc/fstab
    //192.168.1.1/RHEL5 /mnt/win cifs credentials=/etc/
    smbcred 0 0
    run
    mount -a
    /etc/smbcred file contains username and password
    now it is mounted as read write mode.
    ~

  • Trying to write an application to mount Windows Share in osx

    Hello,
    I am very new to the osx environment and I was hoping someone could point me in the right direction. I have a decent amount of programming experience in windows environment, but absolutely no experience writing apps for osx. I would like to write an application that users can launch, enter their credentials and connect to a windows share which I have already designated for them. I can easily do this in automator, however I was hoping to create something where there is a little less confusion. I haven't had any luck finding any resources on this topic and I was hoping someone could give me a little guidance. thanks for your time.

    I managed to make it work.
    I did entry as below in /etc/fstab
    //192.168.1.1/RHEL5 /mnt/win cifs credentials=/etc/
    smbcred 0 0
    run
    mount -a
    /etc/smbcred file contains username and password
    now it is mounted as read write mode.
    ~

  • [Solved] Mounting Windows Share

    Well what a 2nd post this is!
    I've just spent forever trying not to have to post for help but its time i do.
    I'm trying to mount a windows share on bootup in autostart.sh so that mpd doesn't die via not being able to find the tunes.
    It seams you HAVE to be root to do this. Yes sudo will work but you don't get a password prompt.
    I've only found one useful thread from google but these solutions don't seam to work for me http://bbs.archlinux.org/viewtopic.php?pid=272495
    [dan@z0r ~]$ mount /mnt/shares/tank_d
    mount: only root can mount //10.1.1.69/d$ on /mnt/shares/tank_d
    Last edited by DanWA (2008-12-14 06:54:35)

    Don't try and mount it at GUI start, mount it with all the other drives when your system starts. Put it in your /etc/fstab file so that it mounts at system boot - no password required.
    Something similar to below. See the fstab link for exact details:
    /dev/xxxx /mnt/shares/tank_d ntfs auto,user,rw 0 0
    Bob
    Last edited by Hrod beraht (2008-12-13 15:53:39)

  • Lost a lot of files during move to a mounted Windows share via SMB

    Hi,
    after mounting a network Windows share via SMB and then using the Finder to move files from my local disk to that share all the files that were to be moved are lost in ****. I am totally upset because these were very important files. What is it that drives 10.5.2 nuts here? Has anybody any ideas?

    Look in \Music\iTunes\iTunes media\ (or \iTunes music\).

  • Auto-mounting Windows shares at login?

    When I bring my PowerBook to work, there are five different Windows shares I need to connect to in order to access all my files. I've added the shares to my Login Items under my account in System Preferences, so they connect automatically every time I log in.
    The only problem is that this opens a separate Finder window for each connection. I'd like to just have it connect to the shares in the background without opening any new windows. Is there any way to do this? I tried checking the "hide" checkbox in Login Items, but it didn't make a difference.

    I discovered a better solution - if you make an Automator action (get specified servers > connect to servers), it won't open any new Finder windows.
    So I created the action, filled it in with the 5 servers I need to connect to, saved it as an application, and added it to my login items. Now when I log in, I just get a dialog for each server asking for my username/password, and it connects to each in the background without opening any windows.

  • How to mount windows share as a drive letter?

    I have a user that has interlinking excel spreadsheets that are located on a network share. Spreadsheet A on K: links to Spreadsheet B on K:. The links in excel are defined as K:\adirectory\spreadsheetb.xls...
    How do I mount a drive on a Mac, such that MacOffice will be able to follow the links?

    *"How do I mount a drive on a Mac, such that MacOffice will be able to follow the links?*
    Sorry, but you don't, at least not in that sense, as Macs don't follow Windows drive letters.
    The user will have to mount the same share on the Mac desktop and link to it via standard SMB links an hope that the links translate server for server and share for share.

  • Smb mount Windows share 10.6.8 vs 10.8.4

    We have the following setup:
    a windows file share
    an iMac with 10.6.8 connected to active directory
    a MBpro with 10.8.4 connected to active directory
    logged into each machine w/ the same user
    The 10.6.8 smb mounts (via Finder->Connect to server) to the file share as one would expect.
    The 10.8.4 smb mount fails with an error message:
    Error mesage: The foler "foldername" can't be opened because you don't have permission to see it's contents.
    Here's what I've done:
    checked the smb mount path and they are the same on both machines
    mounted the folder on a windows machine
    So, it seems that user permission is OK because it works on the 10.6.8 and windows machines.
    Any ideas why it's failing on the 10.8.4?
    Thanks!!!

    Welcome to Apple Communities
    1. Open Disk Utility and repair permissions
    2. Open Finder, go to your user's folder > Library > Caches and delete everything
    3. Verify disk
    4. See if your apps are compatible with OS X 10.8 > http://www.roaringapps.com
    You can also do a backup and create a DVD or USB drive to install OS X > http://arstechnica.com/apple/2012/07/how-to-create-a-bootable-backup-mountain-li on-install-disk/ When you start in 10.8 installer, open Disk Utility, select your volume and erase the drive, and install

  • Browse samba and windows shares

    After reading and trying all of the tips suggested in this thread
    I got almost everything working. Just that despite the fact that I did allow the ports
    mentioned in the tutorial, I still have to stop iptables in order to be able
    to browse the shares through the 'Browse Network' icon in nautilus.
    Doing:
    smb://192.168.x.xxx
    works just fine.
    vaio@nando, Tue Jul 12 16:52:18
    ~
    $ sudo iptables -L --line-numbers
    Chain INPUT (policy ACCEPT)
    num target prot opt source destination
    1 ACCEPT udp -- 192.168.1.0/24 anywhere udp dpt:netbios-ns
    2 ACCEPT udp -- 192.168.1.0/24 anywhere udp dpt:netbios-dgm
    3 ACCEPT tcp -- 192.168.1.0/24 anywhere tcp dpt:netbios-ssn
    4 ACCEPT tcp -- 192.168.1.0/24 anywhere tcp dpt:microsoft-ds
    5 DROP icmp -- anywhere anywhere
    6 ACCEPT all -- anywhere anywhere
    7 ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    8 DROP all -- 10.0.0.0/8 anywhere
    9 DROP all -- 172.16.0.0/16 anywhere
    10 DROP all -- 192.168.0.0/24 anywhere
    11 DROP udp -- anywhere anywhere udp dpts:33435:33525
    12 DROP udp -- anywhere anywhere udp dpts:33435:33525
    13 DROP all -- anywhere anywhere state INVALID
    14 DROP all -- anywhere anywhere
    15 ACCEPT tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 1/sec burst 5
    16 ACCEPT tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/RST limit: avg 1/sec burst 5
    Chain FORWARD (policy ACCEPT)
    num target prot opt source destination
    Chain OUTPUT (policy ACCEPT)
    num target prot opt source destination
    vaio@nando, Tue Jul 12 16:52:28
    ~
    Any ideas?
    Thanks in advance.
    Last edited by FernandoBasso (2011-07-12 20:51:31)

    rowdog wrote:You might need ICMP for browsing the network.
    Thanks for the reply. Allowing icmp (iptables -D INPUT 5) didn't do any good at all.
    However, iptables -I INPUT -s 192.168.1.0/24 did work. Just, that I don't want to
    allow everyone in the LAN to have access, and some IPs are set through DHCP, so,
    I can't allow just 'this' or 'that' machine.
    I am trying to find out which of the rules is blocking browsing the network.
    Just for sake of information, here's /etc/iptables/iptables.rules:
    # Generated by iptables-save v1.4.10 on Thu Jul 14 08:16:15 2011
    *filter
    :INPUT ACCEPT [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [10:696]
    -A INPUT -s 192.168.1.0/24 -j LOG --log-prefix "__LOCAL_CONNECTIONS__"
    -A INPUT -s 192.168.1.0/24 -j ACCEPT
    -A INPUT -s 192.168.1.0/24 -p udp -m udp --dport 137 -j ACCEPT
    -A INPUT -s 192.168.1.0/24 -p udp -m udp --dport 138 -j ACCEPT
    -A INPUT -s 192.168.1.0/24 -p tcp -m tcp --dport 139 -j ACCEPT
    -A INPUT -s 192.168.1.0/24 -p tcp -m tcp --dport 445 -j ACCEPT
    -A INPUT -p icmp -j DROP
    -A INPUT -i lo -j ACCEPT
    -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
    -A INPUT -s 10.0.0.0/8 -j DROP
    -A INPUT -s 172.16.0.0/16 -j DROP
    -A INPUT -s 192.168.0.0/24 -j DROP
    -A INPUT -i eth0 -p udp -m udp --dport 33435:33525 -j DROP
    -A INPUT -i wlan0 -p udp -m udp --dport 33435:33525 -j DROP
    -A INPUT -m state --state INVALID -j DROP
    -A INPUT -j DROP
    -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m limit --limit 1/sec -j ACCEPT
    -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK RST -m limit --limit 1/sec -j ACCEPT
    COMMIT
    # Completed on Thu Jul 14 08:16:15 2011

  • Mount a windows share

    Hi everybody...I have a simple question...how can I mount a windows
    partition on a sparc solaris system?
    are there any program like smbmount on linux?would be better if could be free...thanks a lot..David

    as far as I know, the (simple) answer is: no.
    Linux kernel supports a file system called smbfs, which is required to mount windows shares.
    There is no smbfs under Solaris, so smbmount isn't available.

  • Access unc windows shares like \\server\share\

    I can mount windows shares both manually and from fstab.
    My question is. Is it possible to access windows shares without explicit mounting, simply with unc like \\server\share ?
    I need it because i host a web application and it need to serve many files on many windows servers with many different shares. Mounting all of them, and the future ones manually is a maintenance nightmare.

    You can do it using fusesmb, too:
    http://gentoo-wiki.com/HOWTO_Samba_support_in_Thunar

  • Desktop Icon for mounted Samba/Windows share

    Hi All,
    I have recently moved over to Leopard and have found somthing to be missing that was enabled by default (it seems) in Tiger.
    If I mount a Samba/Windows share, there is no icon automatically placed on the desktop (as with USB drives etc) but there was in Tiger. I basically used these icons to know when finishing up for work at the end of the day if there were still any shares mounted before putting my machine to sleep so I would remember to unmount them. Now I don't have the visual cue, so I often get home and Finder locks up a bit and eventually tells me that the shares have been disconnected.
    Is there any way to turn this feature back on?

    Wow. I feel so stupid. I'm pretty sure I even looked in there and somehow missed it. I think I was looking for something similar to the check box list there is for the sidebar in the Finder preferences.
    Thanks for that.

Maybe you are looking for

  • Here's an obscure problem...

    Unfortunately I didn't think to bring a copy of the photos.xml file with me, but I can generate one easily enough if required. I'm using Photoshop Elements 4.0 on a Mac running OS X Tiger (hereafter called "PE") to generate the photos.xml file I need

  • Songs on iTunes are not playing

    Some of the songs on my iTunes have an exclamation mark by them, and when you click to play them this pops up: The song "Smoke on th Water" could not be used because the original file could not be found. Would you like to locate it? And when you clic

  • UTF-8 Support in E-mail ID??

    Is it possible to have UTF-8 compliant alias in Exchange 2013??? I am unable to add a new MB with alias in UTf -8 character. However, if I didn't provide an alias it will accept the logon name as its alias and logon name supports UTf-8. So Indirectly

  • Reversing subcontracted finished goods that came from customer returns.

    Dear Gurus, I have a scenario where the finished goods that came from subcontracting needs to be reversed back to its components without reversing the subcontracting charges. How to process this scenario in SAP. The subcontracting job is packing. The

  • Rsync vs dbcopy for migrating to new server

    There is plenty of information about using dbcopy to achieve a server to server migration of Groupwise, and it's particular useful because initially Groupwise can be copied live. In my case, GW resides on NSS, so for dbcopy, I need to do a ncpmount f