Cannot lock files on SMB share

I have a file copied to an SMB share. I would like to lock the file, preferably using applescript. Right now, though, I can't even lock the file by doing a command-I and checking the "locked" box - it checks, then clears itself.

I'm sortof figuring that but I can always hope - I just wish I could find some solid documentation that says yes/no... and I haven't been able to.....

Similar Messages

  • Cannot Lock File Error Message in FrameMaker 10

    When opening a multi-file book in FrameMaker (v.10.0.0.338), I'm receiving an error message that states, "Cannot Lock File. Cannot lock this file for your use. Your changes to it may conflict with the work of others." We're a small department, I'm the only one that works in this book, and I know no one else has opened these files. The error message gives me the option to "Continue" or "Cancel." Selecting "Continue" opens Save Document, but when I try to save I receive another message, "Save Document. The directory of disk t: is full. Choose another directory or disk." I work on a network drive, have rebooted, but no luck. I've used FrameMaker for years and have never experienced this issue. Thoughts?? Getting a bit desperate here.

    Check the drive out - sounds like permissions may have changed on you or you really are running out of space. The other thing is to look for .lck files that were left behind; sometimes they don't get cleared when you exit out.

  • Windows Backup creates "locked" directory on SMB share

    I'm trying to back up my Windows 7 laptop to my Mac Mini over SMB.
    Normal non-backup file operations work okay, from the desktop: I can create folders, drag files, delete files, etc.
    But Windows Backup fails, because it creates a directory on the SMB share that--despite ACLs--OS X won't let anyone create files within, or change the security settings. The only option is to rm -rf the directory.
    The ACLs look like this (the directory Windows Backup creates is called 'MEGALITH'. I tried creating a parent directory (called 'Megalith') with inherited ACLs, but to no avail:
    sarsen:Megalith root# ls -le .
    total 0
    drwx------+ 2 windowsbackupuser  staff  68 Jan  8 12:49 MEGALITH
    0: user:root inherited allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,chown,file_inherit,directory_i nherit
    1: group:admin inherited allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,chown,file_inherit,directory_i nherit
    2: user:_spotlight inherited allow list,search,file_inherit,directory_inherit
    Even with these ACLs, I cannot chown the MEGALITH directory. Nor can I edit its ACLs in the Server window.
    My SMB config is:
    sarsen$ defaults read /Library/Preferences/SystemConfiguration/com.apple.smb.serve r
        AclsEnabled = 1;
        AllowGuestAccess = 0;
        AllowNTLM2Auth = 1;
        DOSCodePage = 437;
        EnabledServices =     (
            disk
        LocalKerberosRealm = "LKDC:SHA1.C5D430A59786EE0CC0515EEF37A77A538C6D612A";
        NetBIOSName = sarsen;
        ServerDescription = sarsen;
        Workgroup = WORKGROUP;
        "wins server" =     (
    And the error log says:
    Jan 8 12:49:27 sarsen.nerdgod.com digest-service[711]: digest-request: init request
    Jan 8 12:49:27 sarsen.nerdgod.com digest-service[711]: digest-request: init return domain: SARSEN server: SARSEN
    Jan 8 12:49:27 sarsen.nerdgod.com digest-service[711]: digest-request: uid=0
    Jan 8 12:49:27 sarsen.nerdgod.com digest-service[711]: digest-request: od failed with 2 proto=ntlmv1-with-v2-session
    Jan 8 12:49:27 sarsen.nerdgod.com digest-service[711]: digest-request: user=SARSEN\\windowsbackupuser
    Jan 8 12:49:27 sarsen.nerdgod.com digest-service[711]: digest-request kdc: ok user=SARSEN\\windowsbackupuser proto=ntlmv1 flags: NEG_KEYEX, ENC_128, NEG_VERSION, NEG_TARGET_INFO, NEG_NTLM2, NEG_ALWAYS_SIGN, NEG_NTLM, NEG_SIGN, NEG_TARGET, NEG_UNICODE

    For interoperability with Windows clients, this is absolutely 100% bad behavior:
    http://support.microsoft.com/kb/326549
    Note Unlike the Read-only attribute for a file, the Read-only attribute for a folder is typically ignored by Windows, Windows components and accessories, and other programs. For example, you can delete, rename, and change a folder with the Read-only attribute by using Windows Explorer.
    The Read-only and System attributes is only used by Windows Explorer to determine whether the folder is a special folder, such as a system folder that has its view customized by Windows (for example, My Documents, Favorites, Fonts, Downloaded Program Files), or a folder that you customized by using the Customize tab of the folder's Properties dialog box. As a result, Windows Explorer does not allow you to view or change the Read-only or System attributes of folders. When a folder has the Read-Only attribute set it causes Explorer to request the Desktop.ini of that folder to see if any special folder settings need to be set. It has been seen where if a network share that has a large amount of folders set to Read-only, it can cause Explorer to take longer then what is expected to render the contents of that share while it waits on the retrieval of the Desktop.ini files. The slower the network connectivity to the share the longer this process can take to the point where Explorer may timeout waiting for the data and render nothing or appear to hang.
    Note In some previous versions of Windows, you can change the Read-only attribute for folders by using the Properties dialog box for the folder, but no versions of Windows permit you to change the System attribute by using Windows Explorer.

  • Copy file from SMB share to Desktop permissions

    I have connected to a SMB share point (Windows Server)and copy a file to my desktop (Mac OS X 10.6.4).
    The file on my desktop shows I have the read and write access, however, everyone has no access.
    I could not get the system administrator to change on the server side. Is it possible to make any changes from my machine to make at lease every has read only access?
    Thanks in advance.

    I downloaded D2KWUtil from the link suggested by you. It has very nice example demo form. But the documentation provided says following
    Using D2KWUTIL in Web Deployed Applications
    The use of this library is not supported with Web deployed applications.
    In a web deployment scenario not all functions within D2KWUTIL will work. Any function that interacts with the User Interface (such as those in the WIN_API_DIALOG package) will fail.
    Any interaction with the O/S by other functions will all be executed on the NT server and will act within, or return information pertinant to, the environment on that machine. For instance GET_COMPUTER_NAME will return the Server’s name, not the name of the computer that the Client browser is running on. Likewise COPY_FILE will copy files in the Forms Server not on the Client.
    Functions such as those in WIN_API_BITOP will continue to work without change.
    so this will not work in web deployed application.
    Any other suggestion?
    Thanks

  • ITunes freezes when adding music file from smb share

    As title states, if I try to add more than 15/20 files to iTunes, it freezes and there's no turning back.
    All my music is stored on my home-server (running Gentoo/Linux) and I have always used it with success until iTunes 10 came out.
    The only thing I can do is to unmount the remote directory, open iTunes and remove the music.
    I've already tried to upgrade to v10.0.1 but no luck so far.
    Any clue?
    Thank you

    This has gotten to be a real problem for me as well. It freezes for about 40 seconds for each song I add. It even comes up as "not responding" at times in the force quit dialogue box. I rolled back to iTunes 9.2.1 as described here:
    http://discussions.apple.com/thread.jspa?threadID=2603684&tstart=0
    Others have reported this fixing the problem, but it has NOT fixed it for me. I have my media on an SMB share and my library files were on the local hard drive. I tried moving the library files over to the SMB share, but it didn't improve anything.
    I've been using "Activity Monitor" to look at what's going on and there's minimal CPU usage. But I am noticing something odd: the "Reads in" and "Writes out" figures are pretty much the same, which is what I would expect as I'm copying song files from my internal HD to the SMB share. But the "Data read" and "Data written" figures are very different. It's reading over twice as much data as it's writing. Either I'm misunderstanding what I'm looking at or something isn't right here. Anyone with more technical chops care to jump in?
    I'd post a picture, but there doesn't seem to be a way to do this.
    I'm also wondering if there are corrupted plist files or other invisible files that can be deleted and rebuilt? I used "Filebuddy" to unhide the files and found a file in the iTunes folder called "sentinel". Anyone know what that is?

  • Photoshop CS5 not actually saving files to SMB shares

    Since upgrading to OS X 10.6.6 (and still in 10.6.7) Photoshop CS5 will not reliably save documents to SMB shares on my file server. When I "Save As" a new document, Photoshop goes through all the motions of saving the file. It seems to complete successfully. No error messages. The asterix in the documents title bar disappears as if the file saved. If you command-click on the document's title bar icon it will display the file path properly, as if the file was properly saved and exists. If, however, you go to the folder on the server where the document was supposedly saved using the Finder (or on a Windows machine in the Windows Explorer) the file does not exist. It was never actually saved.
    This seems to happen mostly with larger files (over, say, 100MB in size) as oppsed to smaller files. If I change my connection to the server to AFP as opposed to SMB(CIFS) the file saves correctly without any problems.
    Has anybody else ever encountered this problem? I have only noticed this issue since upgrading past OS X 10.6.5.
    Thanks!

    This is the boilerplate text often used in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://kb2.adobe.com/cps/406/kb406793.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

  • Utility to block writing ._[files] to SMB shares over Ethernet?

    I'm just tired of informing Windows users at the office that the files I've put on their machines are the ones without the "._" at the beginning of their filenames, and that they can safely trash anything beginning with "._"
    I'm also sure I saw somewhere yesterday a utility (or was it a PrefPane?) that eliminates all resource files/"._" redundant files from being copied to smb shares. Can't remember what it was or where I bumped across it.
    Any pointers people?
    Many thanks.

    I'm actually surprised that it worked - 'DSDontWriteNetworkStores' set to "true" is supposed to block the creation (though not the copying) of ".DS_Store" files that store "Finder" info such as window or icon positions, "Comments", etc. The "._files" are "AppleDouble" files which contain information from resource forks, file attributes and some other metadata - a different thing entirely that shouldn't be affected by the ' DSDontWriteNetworkStores' setting. I think there are a few third party utilities that can clean up "._AppleDouble" files (including the ones mentioned already), but I'm not sure if there is any way to prevent them from being created...
    By the way, ...'write true' writes '<string>true</string>' whereas ...'write -bool true' writes '<true/>' to the ".plist" file. Some apps have been written to recognize a given key with either form but others seem to require one or the other. This is in contradiction to the 'man' page for 'defaults', which states:<pre> For the basic plist types (strings, data, ints, floats, booleans, and
    dates) it is not necessary to precede the value with a type qualifier.</pre>

  • Cannot add lyrics to AAC files on SMB share

    A really odd behavior. I cannot add lyrics to AAC files living on an SMB-mounted share that holds all of my songs. It works for MP3s, but whenever I add lyrics and press OK, or use an automatic lyric finding script, the pasted lyrics disappear. I know that the share is not write protected, and neither are the songs in question. I have no trouble adding new songs to that same volume.
    Any help or idea what to check for would be greatly appreciated.

    I'm sortof figuring that but I can always hope - I just wish I could find some solid documentation that says yes/no... and I haven't been able to.....

  • Finder cannot open files on remote shares

    When browsing files and folders on remote shares (smb) via finder, some files and/or folders are greyed and cannot be opened.
    Accessrights are correct, concerned files can be opened with uCommander by example.
    OSX Version 10.6.8
    Thanks for any suggestions,
    Martin

    I fixed my problem by installing Mavericks again. No need to fully restore.

  • Error -36 while copying files to SMB shares but not AFP. (OSX Server APP)

    Hello,
    So far my transition to OSX server has been a sloppy one. I have had so many problems. I have problems with permissions about everyday. Anyhoos, here is my latest problem. Everytime (from any client computer) a computer tries to copy a file or folder to a share using SMB protocol to the osx server i get this message:
    The Finder can’t complete the operation because some data in “File or folder name" can’t be read or written.
    (Error code -36)
    This does NOT happen when copying the same files using AFP protocol. I using a windows box at work, (dialing in throught the VPN) it doesn't seem to have any problems dropping files either. Anyone know whats up? I have read on the site that others are experiencing problems with SMB within OSX servers. Some report that it stright doesn't work!!!!
    Anyhoos, through all my problems, you guys have been VERY helpful to help me work through it. I really appreciate it!!

    Just found a slight work around:
    http://www.macwindows.com/TIP--Workaround-to-Mavericks-file-sharing-is-to-force- SMB.html
    Several readers offered a suggestion for yesterday's report of problems with OS X 10.9 Mavericks accessing some Windows file servers and network attached storage device. Mavericks now defaults to SMB2 file sharing protocol, but a bug seems prevent OS X from using SMB1 or AFP when the server doesn't support the newer SMB2.
    A workaround is to force OS X to use the old SMB1 (also known as SMB/CIFS). To do that, instead of mounting the server using the Finder, use the Connect to Server command in the Finder's Go menu. Then type in the following:
    cifs://server_address (using the IP address or network name of the server)
    Using smb://server_address won't work, as this will use SMB2 to access the device.
    Thanks to Mario Cajina and Kevin Lepard for the suggestion.

  • Cannot rename folders in SMB share using Column view

    I connect to an Ubuntu SMB server and files and folder access worked perfectly under 10.5.8.
    I upgraded to Snow Leopard and a curious thing happends. I set CHMOD of the main folder to 777. I can create and rename folders in this first level but if I am in column view, I can create a folder (untitled folder) but can't rename it.
    If I move to icon or list view, I can create folders levels deep. It took me a day to work out what was wrong!

    Same issue here. Can't rename a folder on Samba-share with Finder. Doesn't matter which view.
    --Server details
    FreeBSD 7.1-RELEASE GENERIC
    Samba version 3.3.7
    --Debug-info
    I raised the Samba loglevel, and noticed an increase of the file 'nobody.log'. This is strange, because I am logged in and accessing a private file.
    My Mac is named 'mrcmini'. Samba logs to 'nobody.log':
    \[2009/10/06 22:15:40, 3\] smbd/sesssetup.c:replysesssetup_andX(1412)
    wct=13 flg2=0xc801
    \[2009/10/06 22:15:40, 3\] smbd/sesssetup.c:replysesssetup_andX(1611)
    Domain=\[\] NativeOS=\[Unix\] NativeLanMan=\[Samba\] PrimaryDomain=\[\]
    \[2009/10/06 22:15:40, 3\] smbd/sesssetup.c:replysesssetup_andX(1627)
    sesssetupX:name=\[\]\\[\]@\[mrcmini\]
    Finder sets up a session to start the 'Rename'-action, but does not send the username.

  • Files on SMB share vanishing from Finder

    Hi,
    I got a brand new 13" Macbook Pro Retina running OS X Mavericks and I noticed some very odd behaviour when looking at folders on my fileserver containing solely JPGs.
    It is kind of hard to explain, but I have made a video of it so you can see the effect for yourselves:
    https://www.youtube.com/watch?v=smjM7OzTOi0
    Basically what happens is when I browse to the folder, all the files just start disappearing from the finder. Requesting info on the folder shows they're still there but I cannot see them anymore. If I mess around with the various view options for the folder for long enough they seem to reappear sometimes.
    This is pretty bad. Anyone have an idea on how to fix this or what might cause it? The fileserver is a simple QNAP box that did not have this issue with the previous Macbook I had running 10.8 nor with any other device I own so I doubt the problem is on that end.
    Any help would be greately appreciated.

    Hi,
    same problem here. I upgraded my MacBook Pro Retina to 10.9 yesterday. Files are still there as you can see in a terminal window...
    Stefan

  • Unable to enable AFP file sharing, SMB won't allow connections. Is there a workaround?

    After upgrading to Lion from Snow Leopard, I cannot enable file sharing.  Checking the checkbox immediately unchecks it.  When looking into this more closely, I can enable SMB, but not AFP, and my husband cannot connect to the SMB share when enabled- it just gives him a "Connection Failed" error.
    When I try to enable AFP, I get this message in the console:
    1/1/12 11:04:06.084 AM com.apple.coreservicesd: launch_msg(): Socket is not connected
    1/1/12 11:04:06.000 AM kernel: nstat_lookup_entry failed: 2
    When I enable or disable SMB, I get a combination of several of these messages in the console:
    1/1/12 11:12:29.970 AM com.apple.smb.preferences: ERROR [launchd_client.cpp:138] failed to send GetJob message to launchd for job com.apple.smbd: Socket is not connected
    1/1/12 11:12:30.000 AM kernel: nstat_lookup_entry failed: 2
    Is there a way to repair or work around this?  I bought Lion less than a month ago but can't find a way to contact Apple support directly.

    I have tried numerous workarounds with no success. Everything worked fine on Snow Leopard as regards to connecting to my MBP from my Mac Mini. But with Lion, none of that works. Can we get a refund for Lion? This is atrocious!

  • Trying to access SMB share, can read but not write, I use the domain account to autenticate and domain account has access to the share. its a samba domain and im a Windows Admin by trade.

    I have two  I Mac's Intel i7 models.
    I have some problems getting them to write files to SMB shares.
    The domain user account I use when requested to enter when i first try to connect to the share seems to go though without a problem and it presents me with a list of mounts (shares) I select one and the folder opens, I can read files and copy them but I cant write to any of the folders.
    I have also mounted the network locatiosn to a folder from the terminal while also specifying a user name and password to use but this also doesnt allow the specified user account to write data to the share.
    I have confirmed the user account can write to the share by having the user do so from a windows box.
    any help from any of you mac guys would be great!!!!
    Im a windows fan boy / Windows Server based Network Administrator and am slowly becomming a fan of your macs (mainly due to the Unix terminal access letting me realise there is more control to be had than most haters would lead you to believe).
    Peace Out

    I should add that I originally formatted the problematic drive for FAT32 from the Mac, but then the WinXP computer couldn't see the drive when I plugged it in directly via USB. That's why I went with Seagate's utility to format it.

  • Full permission but unable to create file on network share

    Hi all,
    We have a file server running Server 2003 R2 which has multiple shares configured.
    On one of the shares, there is one user who cannot create files on a share, even though they have full control permissions to the share and all subfolders
    So far I have:
    Added username specifically to permissions
    Confirmed at each folder level that the permissions are replicating
    Removed and re-added permissions
    Confirmed that user cannot create files on any folder within the share
    Checked effective permissions which return they should have full control
    Checked event logs and found no errors
    Copied the user account in AD and logged into to the same server and was able to create files on share
    They are connecting via RDS running on Server 2008 R2 enterprise and accessing the share via mapped drive
    Any suggestions?

    Hi,
    Do you mean that if you directly logon the Server 2008 R2 not using RDS, then you can create files on share? Please refer to the thread below to check if it helps:
    Can't copy and paste files using RDP session in server 2012
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/9c4eae05-b477-4c2d-8743-56508e870128/cant-copy-and-paste-files-using-rdp-session-in-server-2012?forum=winserver8gen
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for