Auto Mount fails on CIFS share

I have setup auto_master with the following line:
/-    auto_direct
I also have tested a client smb share connection with the following successfully since this node is a member of the cih-ettm windows domain;
I have also setup smbadm add-key with this users name and password so that when I mount here with the following command a password is not required.
mount -F smbfs //chaos.cih-ettm.com/InboundImages /export/home/ttp/images
This works and I get a mount point and I can copy files to the directory and the windows box sees and can access the files.
If I try to set this up as an automount by adding the following line to /etc/auto_direct and execute the command automount I receive the error 'not owner'
/export/home/ttp/images -fstype=smbfs,dirperms=0755,uid=ttp //chaos.cih-ettm.com/InboundImages
Error returned:
automount: mount /export/home/ttp/outboundimages/images: Not owner
I also have the following lines in the /etc/security/exec_attr
Basic Solaris  User:solaris:cmd:::/usr/lib/fs/smbfs/mount:privs=sys_mount
Basic Solaris User:solaris:cmd:::/usr/lib/fs/smbfs/umount:privs=sys_mount
In all cases the 'ttp' user is the owner of the /export/home/ttp/images
Any help would be appreciated.
Thanks,
Dave

Found out this same thing this morning. Was getting constant invalid argument errors and indeed removing "noatime" from the fstab entries fixes it. Looking at mount.cifs man page there is not only no reference to noatime but neither to relatime or anything like that.
Guess that functionality has been removed in cifs-utils? Not sure but the Wiki will need updating regardless.
Last edited by ElderSnake (2012-06-16 02:59:36)

Similar Messages

  • Auto-mount failing with segfault on FAT drives

    I've been running Arch on ThinkPads for years, just got an x240 and installed Arch on it. Everything seems to work fine except for external drives of any sort.
    I'm running Gnome 3.
    With my USB stick, every time I insert it, Nautilus detects it and when I attempt to view the drive it fails. Here's the dmesg output:
    [32426.659595] usb 2-1: new SuperSpeed USB device number 4 using xhci_hcd
    [32426.675126] usb-storage 2-1:1.0: USB Mass Storage device detected
    [32426.675173] scsi5 : usb-storage 2-1:1.0
    [32427.676716] scsi 5:0:0:0: Direct-Access Patriot Memory PMAP PQ: 0 ANSI: 6
    [32427.677167] sd 5:0:0:0: [sdb] 60566016 512-byte logical blocks: (31.0 GB/28.8 GiB)
    [32427.677442] sd 5:0:0:0: [sdb] Write Protect is off
    [32427.677458] sd 5:0:0:0: [sdb] Mode Sense: 45 00 00 00
    [32427.677775] sd 5:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [32427.831483] sdb: sdb1
    [32427.832493] sd 5:0:0:0: [sdb] Attached SCSI removable disk
    [32439.190500] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [32439.328724] usb 2-1: reset SuperSpeed USB device number 4 using xhci_hcd
    [32444.339799] usb 2-1: device descriptor read/8, error -110
    [32444.443060] usb 2-1: reset SuperSpeed USB device number 4 using xhci_hcd
    [32449.454646] usb 2-1: device descriptor read/8, error -110
    [32449.611683] sd 5:0:0:0: [sdb] Unhandled error code
    [32449.611686] sd 5:0:0:0: [sdb]
    [32449.611687] Result: hostbyte=0x07 driverbyte=0x00
    [32449.611688] sd 5:0:0:0: [sdb] CDB:
    [32449.611690] usb 2-1: USB disconnect, device number 4
    [32449.611689] cdb[0]=0x28: 28 00 00 00 0d 9b 00 00 0f 00
    [32449.611695] end_request: I/O error, dev sdb, sector 3483
    [32449.617844] sd 5:0:0:0: [sdb] Unhandled error code
    [32449.617846] sd 5:0:0:0: [sdb]
    [32449.617847] Result: hostbyte=0x01 driverbyte=0x00
    [32449.617848] sd 5:0:0:0: [sdb] CDB:
    [32449.617849] cdb[0]=0x28: 28 00 00 00 0d 9c 00 00 0e 00
    [32449.617852] end_request: I/O error, dev sdb, sector 3484
    [32449.617876] sd 5:0:0:0: [sdb] Unhandled error code
    [32449.617877] sd 5:0:0:0: [sdb]
    [32449.617878] Result: hostbyte=0x01 driverbyte=0x00
    [32449.617878] sd 5:0:0:0: [sdb] CDB:
    [32449.617879] cdb[0]=0x28: 28 00 00 00 0c ab 00 00 f0 00
    [32449.617882] end_request: I/O error, dev sdb, sector 3243
    [32449.617952] FAT-fs (sdb1): FAT read failed (blocknr 3211)
    [32449.618677] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8801574ef380
    [32449.618680] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8801574ef3c0
    [32449.621107] FAT-fs (sdb1): Directory bread(block 32768) failed
    [32449.621111] FAT-fs (sdb1): Directory bread(block 32769) failed
    [32449.621113] FAT-fs (sdb1): Directory bread(block 32770) failed
    [32449.621115] FAT-fs (sdb1): Directory bread(block 32771) failed
    [32449.621117] FAT-fs (sdb1): Directory bread(block 32772) failed
    [32449.621119] FAT-fs (sdb1): Directory bread(block 32773) failed
    [32449.621120] FAT-fs (sdb1): Directory bread(block 32774) failed
    [32449.621122] FAT-fs (sdb1): Directory bread(block 32775) failed
    [32449.621124] FAT-fs (sdb1): Directory bread(block 32776) failed
    [32449.621126] FAT-fs (sdb1): Directory bread(block 32777) failed
    [31813.104727] ------------[ cut here ]------------
    [31813.104734] WARNING: CPU: 3 PID: 7798 at fs/sysfs/group.c:214 sysfs_remove_group+0xc6/0xd0()
    [31813.104736] sysfs group ffffffff81895c40 not found for kobject 'target3:0:0'
    [31813.104737] Modules linked in: nls_cp437 vfat fat twofish_generic twofish_avx_x86_64 twofish_x86_64_3way twofish_x86_64 twofish_common serpent_avx2 serpent_avx_x86_64 serpent_sse2_x86_64 serpent_generic xts loop usb_storage usbhid hid fuse ctr ccm snd_hda_codec_hdmi joydev mousedev arc4 snd_hda_codec_realtek intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm iTCO_wdt iTCO_vendor_support cdc_mbim microcode evdev cdc_ncm psmouse uvcvideo pcspkr serio_raw iwlmvm usbnet videobuf2_vmalloc mii videobuf2_memops mac80211 cdc_acm videobuf2_core cdc_wdm videodev media btusb iwlwifi bluetooth cfg80211 rtsx_pci_ms memstick wmi tpm_tis thinkpad_acpi i915 snd_hda_intel nvram tpm rfkill ac battery snd_hda_codec video intel_agp intel_gtt drm_kms_helper drm e1000e snd_hwdep snd_pcm snd_page_alloc thermal
    [31813.104776] snd_timer mei_me lpc_ich mei i2c_algo_bit snd button shpchp i2c_i801 ptp soundcore pps_core i2c_core processor ext4 crc16 mbcache jbd2 dm_crypt dm_mod sd_mod rtsx_pci_sdmmc mmc_core atkbd libps2 crct10dif_pclmul crct10dif_common crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd ahci ehci_pci libahci ehci_hcd libata scsi_mod rtsx_pci xhci_hcd usbcore usb_common i8042 serio
    [31813.104801] CPU: 3 PID: 7798 Comm: umount Not tainted 3.13.6-1-ARCH #1
    [31813.104802] Hardware name: LENOVO 20AL009NMC/20AL009NMC, BIOS GIET66WW (2.16 ) 12/02/2013
    [31813.104804] 0000000000000009 ffff88013ecb5b40 ffffffff81513274 ffff88013ecb5b88
    [31813.104806] ffff88013ecb5b78 ffffffff81061a3d 0000000000000000 ffffffff81895c40
    [31813.104809] ffff8800c72a5c38 ffff8802114d4190 ffff8801728fb000 ffff88013ecb5bd8
    [31813.104812] Call Trace:
    [31813.104818] [<ffffffff81513274>] dump_stack+0x4d/0x6f
    [31813.104824] [<ffffffff81061a3d>] warn_slowpath_common+0x7d/0xa0
    [31813.104827] [<ffffffff81061aac>] warn_slowpath_fmt+0x4c/0x50
    [31813.104831] [<ffffffff8151843e>] ? mutex_unlock+0xe/0x10
    [31813.104834] [<ffffffff8121925e>] ? sysfs_get_dirent_ns+0x4e/0x70
    [31813.104837] [<ffffffff8121a3e6>] sysfs_remove_group+0xc6/0xd0
    [31813.104843] [<ffffffff813b7033>] dpm_sysfs_remove+0x43/0x50
    [31813.104846] [<ffffffff813aceb5>] device_del+0x45/0x1c0
    [31813.104857] [<ffffffffa00a52b7>] scsi_target_reap_usercontext+0x27/0x40 [scsi_mod]
    [31813.104862] [<ffffffff8107b887>] execute_in_process_context+0x67/0x70
    [31813.104870] [<ffffffffa00a65d4>] scsi_target_reap+0xc4/0xf0 [scsi_mod]
    [31813.104879] [<ffffffffa00a8558>] scsi_device_dev_release_usercontext+0x188/0x1c0 [scsi_mod]
    [31813.104882] [<ffffffff8107b887>] execute_in_process_context+0x67/0x70
    [31813.104890] [<ffffffffa00a83cc>] scsi_device_dev_release+0x1c/0x20 [scsi_mod]
    [31813.104894] [<ffffffff813ac3f2>] device_release+0x32/0xa0
    [31813.104899] [<ffffffff812b6b47>] kobject_cleanup+0x77/0x1b0
    [31813.104902] [<ffffffff812b69c8>] kobject_put+0x28/0x60
    [31813.104906] [<ffffffff813ac7f7>] put_device+0x17/0x20
    [31813.104913] [<ffffffffa009c5eb>] scsi_device_put+0x3b/0x50 [scsi_mod]
    [31813.104920] [<ffffffffa025e7e0>] scsi_disk_put+0x30/0x50 [sd_mod]
    [31813.104926] [<ffffffffa025f6a1>] sd_release+0x31/0x70 [sd_mod]
    [31813.104931] [<ffffffff811dc75c>] __blkdev_put+0x17c/0x1b0
    [31813.104936] [<ffffffff811dc6f7>] __blkdev_put+0x117/0x1b0
    [31813.104940] [<ffffffff811dd0be>] blkdev_put+0x4e/0x140
    [31813.104944] [<ffffffff811a5f64>] kill_block_super+0x44/0x70
    [31813.104947] [<ffffffff811a622d>] deactivate_locked_super+0x3d/0x60
    [31813.104950] [<ffffffff811a67e6>] deactivate_super+0x46/0x60
    [31813.104954] [<ffffffff811c24d5>] mntput_no_expire+0xe5/0x170
    [31813.104958] [<ffffffff811c3730>] SyS_umount+0x90/0x3c0
    [31813.104962] [<ffffffff8151d8be>] ? do_page_fault+0xe/0x10
    [31813.104966] [<ffffffff815216ad>] system_call_fastpath+0x1a/0x1f
    [31813.104968] ---[ end trace 9c2068df074620da ]---
    I never had any trouble this this before on my previous laptop (Lenovo ThinkPad E330).
    Likewise, when I use TrueCrypt to mount a volume, although I don't get the stack trace, It does never shows up in Nautilus, and dmesg has the following to say about it:
    [31234.534922] loop: module loaded
    [31234.610930] FAT-fs (dm-5): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    I can view the drive, however, so it's not as bad as the USB stick, but still not the correct behavior. There is no automount and Nautilus does not show it in the device list.
    I've tried formatting the USB stick a few different times (it needs to be FAT for compatibility) and always Arch ends up corrupting the drive and making it useless.
    Anyone have any idea as to what's going on here?
    Thanks
    -Nick
    Last edited by silverbucket (2014-03-16 23:59:56)

    Trying again, to manually mount the USB stick, when I insert it, dmesg shows:
    [22021.214586] usb-storage 2-1:1.0: USB Mass Storage device detected
    [22021.214633] scsi5 : usb-storage 2-1:1.0
    [22022.215965] scsi 5:0:0:0: Direct-Access Patriot Memory PMAP PQ: 0 ANSI: 6
    [22022.216251] sd 5:0:0:0: Attached scsi generic sg1 type 0
    [22022.216440] sd 5:0:0:0: [sdb] 60566016 512-byte logical blocks: (31.0 GB/28.8 GiB)
    [22022.216733] sd 5:0:0:0: [sdb] Write Protect is off
    [22022.216736] sd 5:0:0:0: [sdb] Mode Sense: 45 00 00 00
    [22022.217088] sd 5:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [22022.373041] sdb: sdb1
    [22022.374051] sd 5:0:0:0: [sdb] Attached SCSI removable disk
    I then try to mount it with:
    # mount /dev/sdb1 /mnt/usbstick
    And although the command appears to be successful, I get the following in dmesg:
    [22182.804311] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [22186.212884] usb 2-1: reset SuperSpeed USB device number 4 using xhci_hcd
    [22191.224027] usb 2-1: device descriptor read/8, error -110
    [22191.327268] usb 2-1: reset SuperSpeed USB device number 4 using xhci_hcd
    [22196.338854] usb 2-1: device descriptor read/8, error -110
    [22196.495462] sd 5:0:0:0: [sdb] Unhandled error code
    [22196.495465] sd 5:0:0:0: [sdb]
    [22196.495466] Result: hostbyte=0x07 driverbyte=0x00
    [22196.495468] sd 5:0:0:0: [sdb] CDB:
    [22196.495470] usb 2-1: USB disconnect, device number 4
    [22196.495468] cdb[0]=0x28: 28 00 00 00 0c ad 00 00 f0 00
    [22196.495477] end_request: I/O error, dev sdb, sector 3245
    [22196.502037] sd 5:0:0:0: [sdb] Unhandled error code
    [22196.502041] sd 5:0:0:0: [sdb]
    [22196.502043] Result: hostbyte=0x01 driverbyte=0x00
    [22196.502045] sd 5:0:0:0: [sdb] CDB:
    [22196.502046] cdb[0]=0x28: 28 00 00 00 0c ae 00 00 ef 00
    [22196.502056] end_request: I/O error, dev sdb, sector 3246
    [22196.502138] FAT-fs (sdb1): FAT read failed (blocknr 3213)
    [22196.502139] sd 5:0:0:0: [sdb] Unhandled error code
    [22196.502141] sd 5:0:0:0: [sdb]
    [22196.502142] Result: hostbyte=0x01 driverbyte=0x00
    [22196.502143] sd 5:0:0:0: [sdb] CDB:
    [22196.502144] cdb[0]=0x28: 28 00 00 00 0d 9d 00 00 0d 00
    [22196.502152] end_request: I/O error, dev sdb, sector 3485
    [22196.504146] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800785c7980
    [22196.504149] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800785c79c0
    A `df` does not show the mounted location, neither does Nautilus, however `mount` does.
    /dev/sdb1 on /mnt/ZELENACEK type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
    When I attempt to unmount it:
    # umount /dev/sdb1
    I get the following dmesg output:
    [22410.233289] FAT-fs (sdb1): FAT read failed (blocknr 3210)
    [22415.819947] FAT-fs (sdb1): Directory bread(block 32768) failed
    [22415.819951] FAT-fs (sdb1): Directory bread(block 32769) failed
    [22415.819953] FAT-fs (sdb1): Directory bread(block 32770) failed
    [22415.819955] FAT-fs (sdb1): Directory bread(block 32771) failed
    [22415.819956] FAT-fs (sdb1): Directory bread(block 32772) failed
    [22415.819958] FAT-fs (sdb1): Directory bread(block 32773) failed
    [22415.819960] FAT-fs (sdb1): Directory bread(block 32774) failed
    [22415.819961] FAT-fs (sdb1): Directory bread(block 32775) failed
    [22415.819963] FAT-fs (sdb1): Directory bread(block 32776) failed
    [22415.819964] FAT-fs (sdb1): Directory bread(block 32777) failed
    [22556.688959] ------------[ cut here ]------------
    [22556.688967] WARNING: CPU: 2 PID: 27239 at fs/sysfs/group.c:214 sysfs_remove_group+0xc6/0xd0()
    [22556.688968] sysfs group ffffffff81895c40 not found for kobject 'target5:0:0'
    [22556.688970] Modules linked in: sg nls_cp437 vfat fat usb_storage fuse ctr ccm snd_hda_codec_hdmi joydev mousedev arc4 intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm iTCO_wdt iTCO_vendor_support microcode iwlmvm evdev cdc_mbim pcspkr uvcvideo psmouse serio_raw mac80211 videobuf2_vmalloc videobuf2_memops btusb videobuf2_core videodev cdc_ncm usbnet bluetooth mii cdc_acm cdc_wdm media iwlwifi rtsx_pci_ms cfg80211 memstick thermal snd_hda_codec_realtek wmi e1000e i915 ac thinkpad_acpi nvram rfkill battery tpm_tis snd_hda_intel tpm snd_hda_codec intel_agp intel_gtt snd_hwdep drm_kms_helper mei_me snd_pcm i2c_i801 ptp drm snd_page_alloc video snd_timer mei i2c_algo_bit snd button shpchp soundcore pps_core i2c_core lpc_ich processor ext4 crc16 mbcache jbd2 dm_crypt dm_mod sd_mod rtsx_pci_sdmmc
    [22556.689016] mmc_core atkbd libps2 crct10dif_pclmul crct10dif_common crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd ahci libahci libata ehci_pci ehci_hcd xhci_hcd rtsx_pci scsi_mod usbcore usb_common i8042 serio
    [22556.689032] CPU: 2 PID: 27239 Comm: umount Tainted: G W 3.13.6-1-ARCH #1
    [22556.689034] Hardware name: LENOVO 20AL009NMC/20AL009NMC, BIOS GIET66WW (2.16 ) 12/02/2013
    [22556.689035] 0000000000000009 ffff880066217b40 ffffffff81513274 ffff880066217b88
    [22556.689038] ffff880066217b78 ffffffff81061a3d 0000000000000000 ffffffff81895c40
    [22556.689040] ffff88020af40438 ffff880089e30190 ffff880211ce7800 ffff880066217bd8
    [22556.689043] Call Trace:
    [22556.689048] [<ffffffff81513274>] dump_stack+0x4d/0x6f
    [22556.689052] [<ffffffff81061a3d>] warn_slowpath_common+0x7d/0xa0
    [22556.689055] [<ffffffff81061aac>] warn_slowpath_fmt+0x4c/0x50
    [22556.689058] [<ffffffff8151843e>] ? mutex_unlock+0xe/0x10
    [22556.689060] [<ffffffff8121925e>] ? sysfs_get_dirent_ns+0x4e/0x70
    [22556.689063] [<ffffffff8121a3e6>] sysfs_remove_group+0xc6/0xd0
    [22556.689067] [<ffffffff813b7033>] dpm_sysfs_remove+0x43/0x50
    [22556.689070] [<ffffffff813aceb5>] device_del+0x45/0x1c0
    [22556.689079] [<ffffffffa00c02b7>] scsi_target_reap_usercontext+0x27/0x40 [scsi_mod]
    [22556.689082] [<ffffffff8107b887>] execute_in_process_context+0x67/0x70
    [22556.689089] [<ffffffffa00c15d4>] scsi_target_reap+0xc4/0xf0 [scsi_mod]
    [22556.689096] [<ffffffffa00c3558>] scsi_device_dev_release_usercontext+0x188/0x1c0 [scsi_mod]
    [22556.689098] [<ffffffff8107b887>] execute_in_process_context+0x67/0x70
    [22556.689105] [<ffffffffa00c33cc>] scsi_device_dev_release+0x1c/0x20 [scsi_mod]
    [22556.689107] [<ffffffff813ac3f2>] device_release+0x32/0xa0
    [22556.689111] [<ffffffff812b6b47>] kobject_cleanup+0x77/0x1b0
    [22556.689114] [<ffffffff812b69c8>] kobject_put+0x28/0x60
    [22556.689117] [<ffffffff813ac7f7>] put_device+0x17/0x20
    [22556.689123] [<ffffffffa00b75eb>] scsi_device_put+0x3b/0x50 [scsi_mod]
    [22556.689128] [<ffffffffa029a7e0>] scsi_disk_put+0x30/0x50 [sd_mod]
    [22556.689133] [<ffffffffa029b6a1>] sd_release+0x31/0x70 [sd_mod]
    [22556.689136] [<ffffffff811dc75c>] __blkdev_put+0x17c/0x1b0
    [22556.689140] [<ffffffff811dc6f7>] __blkdev_put+0x117/0x1b0
    [22556.689143] [<ffffffff811dd0be>] blkdev_put+0x4e/0x140
    [22556.689145] [<ffffffff811a5f64>] kill_block_super+0x44/0x70
    [22556.689148] [<ffffffff811a622d>] deactivate_locked_super+0x3d/0x60
    [22556.689150] [<ffffffff811a67e6>] deactivate_super+0x46/0x60
    [22556.689153] [<ffffffff811c24d5>] mntput_no_expire+0xe5/0x170
    [22556.689156] [<ffffffff811c3730>] SyS_umount+0x90/0x3c0
    [22556.689158] [<ffffffff815216ad>] system_call_fastpath+0x1a/0x1f
    [22556.689160] ---[ end trace 615f2c14f65f6abb ]---
    If I take the USB stick out and plug it in to my other Arch Linux laptop, the drive mounts fine (and complains about fsck only because of the problems incurred on my main laptop). I know the USB stick is good, it's new and I've used it many times between my other machines. I'm assuming the hardware is good as it's a new laptop, I installed Arch Linux from this same USB stick without an issue. I've also used other types of USB devices, like wireless headphones, without issues.
    It must be some system configuration error. Perhaps something with the kernel or system libraries that are / are not installed? lib32 issues? (it's an x86_64 install)? I don't know, I'm grasping at straws. I have read through the USB_Storage_Devices and Udisks Arch Wiki pages without any luck.
    Any help is greatly appreciated as I currently can't get any large amounts data on or off this laptop easily.
    Last edited by silverbucket (2014-03-16 23:42:56)

  • Mapped GID is changing while accessing CIFS share

    Hi guys
    We're seening a strange issue on our AD-bound macs that the mapped GIDs of files on a CIFS share are changing without any change on the filesystem.
    First of all let me explain our setup:
    1. All macs are joined to our active directory domain. The output of "dsconfigad -show" for the uid/gid mapping looks as follows:
    <snip>
    Advanced Options - Mappings
      Mapping UID to attribute       = not set
      Mapping user GID to attribute  = not set
      Mapping group GID to attribute = not set
      Generate Kerberos authority    = Enabled
    <snap>
    2. Macs access a cifs share on a netapp filer.
    3. Username and groupnames are mapped correctly. The output of "id rth" for my user looks as follows:
    uid=1973125731(rth) gid=2108864217(OSAG\corp) groups=2108864217(OSAG\corp),....
    Problem:
    When I mount the netapp CIFS share and enter it, everything looks good:
    <snip>
    rth@mac-rth:~$ ls -l /Volumes/os/it
    total 696
    drwx------+ 1 rth  OSAG\corp  16384 Nov 29 11:48 admin
    drwx------+ 1 rth  OSAG\corp  16384 Mar 29  2004 corphtmlstats
    <snap>
    However when I execute a second ls a few seconds later, it can't map the group anymore:
    <snip>
    rth@mac-rth:~$ ls -l /Volumes/os/it
    total 696
    drwx------+ 1 rth  2181038096  16384 Nov 29 11:48 admin
    drwx------+ 1 rth  2181038096  16384 Mar 29  2004 corphtmlstats
    <snap>
    It seems that the mapping doesn't work anymore even tough nothing has changed in the meantime. The same behaviour can be seen on any folders on this share. With the first ls everything seems to be OK and with the 2nd execution the mapping is not correct anymore.
    From time to time it happens, that the mapping is correct again for single files or folders for a short period of time.
    Has anyone seen a similar behaviour so far?
    Thanks for your help.
    Cheers
    Raphi

    Sounds like an issue that has to do with JavaScript Origin policy. You'll have to use Domain Relaxing for this. Read all about it here:
    http://help.sap.com/saphelp_nw04/helpdata/en/59/87b54064c2742ae10000000a155106/frameset.htm
    here:
    http://help.sap.com/saphelp_nw04/helpdata/en/5e/473d4124b08739e10000000a1550b0/frameset.htm
    and here:
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/f8751d8c6b254dac189f4029c76112/frameset.htm

  • Auto mount CIFS

    I know that there are many post and solutions regarding how to auto mount CIFS shares.... but for some reason I cannot get any of them to work.
    Here is what I know.
    1) I used to use fstab.  But not fstab requires root access to mount CIFS Shares
    2) I have tried smbnetfs as described here: [url= https://wiki.archlinux.org/index.php/sa … c_mounting ] Samba .  This results in extremely slow browsing to the network share and my credentials being denied.  It is possible that I have not set up the ~/.smb/smbnetfs.auth file correctly.  I also get the message:
    WARNING: Unkown libsmbclient version: 4.1.6
    SMBNetFS may not work as expected.
    3) I have tried autofs Autofs with no luck.
    4) I would be willing to mount from the terminal or a script file.  However, when I mount with
    sudo mount -t cifs //networkstorage/01_media  /home/user/Network/01_media -o username=xxxx,password=xxxxx
    I do not get rear/write privileges.
    5) I know the CIFS share is set up correctly.  Because if I brows to the share using thunar I can mount the location (with password and username) and get full read write access.
    Can anyone suggest what is the best method for mounting.  So that I can begin trying to fiqure out how to make it work for my system.  Or if I could get some advice on what I am doing wrong in the terminal so that I could get R/W privileges.
    Thanks!

    You tried the fstab, but you didn't specify what youactually put in the fstab.  There is an option which should enable you to mount the cifs filesystem as a normal user... it is the same option as any other filesystem.  Have a look at the mount man page, as it has the information you are looking for.
    I don't know what smbnetfs is or how one would use that, but from a quick gander at the package info it appears to be a fuse filesystem.  You also didn't give even a hint of what happened when you tried autofs, or in what way you failed.
    I think what you might really be looking for is an automounting daemon though.  I'm not sure how they work with network shares that require a password, but you might want to have a look.  This would be how the DEs handle automounting.  In particular, there is udev{,2} that seems to be the most common solution.

  • Cannot mount multiple CIFS shares in /home

    I have 2 users, Joe and Fred, who each have their own directory in /home.  I also have a Netapp filer with a CIFS share called CorpData, which has subdirectories for Joe and Fred.
    On the Arch Linux box, I have this for my fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sda1
    UUID=d93def89-7611-43c8-a74f-e20bee64bd7e / ext4 rw,relatime 0 1
    //10.1.1.141/CorpData/joe /home/joe cifs credentials=/etc/credentials,noserverino,_netdev,uid=joe,gid=users 0 0
    //10.1.1.141/CorpData/fred /home/fred cifs credentials=/etc/credentials,noserverino,_netdev,uid=fred,gid=users 0 0
    The problem is that at boot time, Joe's directory will be mounted, but Fred's will not.  The reverse is true if I reverse the two entries in fstab.
    If I issue the "mount -a" command after logging in, the second mount does get mounted, but also generates this error message:
    mount error(16): Device or resource busy
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    I did refer to man mount, but since only the second mount is failing, I don't know what I could try differently.  There are many more directories in CorpData, so I don't want to just mount that entire share on /home.

    Looking into this further, it seems that the server is not able to accept the second request so quickly after the first.  Is there any way to insert a delay or sleep command between the two mount entries in fstab?

  • How Do I find out what app is auto-mounting a network share and stop it?

    I have a new laptop, the 13" rMBP.  I installed Steam and wanted to use the network share on my server to store the game files.  Everything went OK.  I closed Steam, disconnected the share and shutdown my laptop.  When I opened my laptop later on at work, it started to try and mount the network share.It keeps on going it.  I removed the Steam app and all files related to Steam that I could find.  I've looked at fstab, auto_home, auto_master and a large list of other files and directories and I *still* cannot find the offending file that's auto-mounting the share.  It's really frustrating.
    The share auto-mounts when I am home but not on the desktop or in finder.  I find it by looking at /Volumes/ in terminal.  If I mount the share manually under /Volumes/ it shows as Games-1 and mounts on the desktop under Games.
    Does anyone have any ideas on where I should be looking to find the offending process/file/daemon?
    Thank you!
    Trevor

    thanks for the reply but are you sure about this? What difference would it make? Why 5 apps?
    Even if it does work, which I doubt, at some point, I will have to resync ALL my apps again and surely the same thing will happen again, and I will be none the wiser. I still won't know which app it is. There must be a way of finding this out.
    Any ideas?
    What is really freaking me out is how it is connecting to my carrier (who is charging me) with Cellular data switched off.......?
    Thanks again.

  • CIFS[17138]: WARNING: CODIR: Failed to add share "MDATA" to

    Can someone tell me how to get rid of the message
    Code:
    CIFS[17138]: WARNING: CODIR: Failed to add share "MDATA" to eDirectoy. Error: 0

    Originally Posted by susehoush
    cluster -> yes (3node sles10sp3+oes2sp3)
    There is a nss volume object and a pool object and their attributes seem to be ok.
    We also get the following 2 errors:
    Code:
    CIFS[17138]: ERROR: ENTRY: CIFSNDSGetCIFSServerInfo: isVirtualServer = FALSE, uServerVersion = %U, aServerVersion = e, expected = %U
    ERROR: CODIR: LockDirCacheEntry failed to open file for User
    Ok, This thread might be of interest (mainly the clarification in post #25) http://forums.novell.com/forums/nove...ols-howto.html
    And the related TID (only as a reference in this case, not meant to apply that added python script) : CIFS not enabled properly on cluster resource that was created before upgrading to OES2 SP2
    Curious if you are trying to add CIFS after having created the resources? But then still, it should not be an issue anymore (as in should have been fixed).
    -Willem

  • CIFS Kernel Module Needed for A7600-F. Can't mount CIFS Shares.

    Does anyone have, or could compile a CIFS Kernel for the A10 (A7600-F) please.
    I am trying to mount CIFS shares on my NAS, nut don't have the cifs.ko file required.
    Help would be greatly appreciated.
    Thanks.
    Model Number: Levono A7600-F
    Android Version 4.4.2
    Kernel Version: 3.4.67
    Build Number: A7600F_A442_000_022_140829_ROW
    The tablet was rooted using Kingo Root.

    Hi Gmarkall,
    You really seem to know what you're doing.
    I need the same module files for my A10-70 (A7600-F).
    Are you able to complie these please?
    Lenovo make the source code available here
    http://support.lenovo.com/gb/en/products/tablets/a​-series/a10-70-tablet?TabName=Downloads
    I've tried to do this myself, but can't figure it out.
    Can you help me please?
    Thanks
    Moderator comment: This post and its replies below were pulled out of an old thread about a different model and merged here. Subjects here and below edited to match. Was: Re: CIFS Kernel Module? - can't mount CIFS share on IdeaPad A2109

  • Server Shares will not Auto-Mount on Clients

    Hi,
    When I log onto my network, my server shares do not auto-mount.
    Clients are able to log onto network. Connection to server on clients shows a
    green light.  When I go into finder and try to connect to shares network  with
    client user name /password it will not open shares.   Shares will open with server
    password, but I don't want to save server password on the clients.
    All other services will setup and work as expected using  client username / password.
    I'm using Mountain Lion Server 10.8.2 and Mountain Lion Clients 10.8.2.
    File sharing is turned on in the MLS Profile. Service access for clients File Sharing is checked. 
    I have tried restarting server clients.
    Any ideas on how to fix this, short of a reinstall?
    Thanks,
    John

    Imagine you want to enter your parents' house. You have a key for your house but it won't work on their locks. They won't give you their key and now you complain you can't get in with your own key. Same thing, server password and client password are two different keys for two different locks.

  • Auto Partion fails error = /dev/sda is mounted

    I booted from the cd,  ran /arch/setup then began going through the setup program
    at the point it is going to auto partition my harddrive it fails with /dev/sda is mounted or busy.
    I checked /mnt and its not showing anything mounted.
    32M for boot
    512M for swap
    7500 for / and home

    Correct me if I'm wrong...I'm stuck at work on a *cough* winbloze machine. 
    rw=read/write
    auto=mount when it boots up
    user=users can mount/unmount
    sync=write data to the drive immediatly when saved.  async writes the data whenever it gets good and ready.
    0 0 means the drive will never be force checked.
    Or at least one of the 0's does.  can't remember for the life of me what the other means.

  • Auto-Mounting Network Shares/Disk Images

    Hi,
    I'd like to share how I solved my problem with auto-mounting a network disk image/folder share to be used as a custom library/location for Aperture 3.xx. I can now either reference the master photos from the network or have it copy to this disk image volume on the network, although it might be better to have it copy to the disk image volume, so one can move it around as a file later. I researched hard over these forums and internet resources and discovered what I thought was the best way to accomplish this. Initially, I found right away that Aperture doesn't allow you to create a library over your network drive or a home server such as mine, unless it is partitioned/formatted to Mac OS. This wasn't acceptable for me as I also run Windows 7 PCs that need to utilize the network folder shares, as well.
    I don't understand why I don't have this problem using iPhoto 2011, and do with Aperture 3.0, which is a far more expensive application. Anyhow, I read a little about NFS, but didn't know how to implement this or if it required the Mac Server and/or a non-built in application, it probably isn't compatible with windows. So, I found that by creating a .DMG disk image file, as a partitioned/formatted Mac OS file in Disk Utility, and saving it to the network folder of my choosing, did the trick.
    Steps I used to accomplish this:
    -Go to Disk Utility and create "New Image"
    -Select format w/ MacOSX Extended(journaled) and choose "single partition/GUID" type (or whatever you want)
    -Enter a custom size of your disk image (ex in 1GB or 1TB). Click "Create"
    * I created this locally 1st and then I copied it over the network, to the network folder/subfolder on my HP Mediasmart Home Server EX495. I found that creating it over the network took too long and would crash Disk Utility.
    -After it's copied to your desired location over the network folder, open Automator.
    -choose "Application" workflow, double-click to add "Get Specified servers". Enter location of your server (ex smb://hpserver/)
    -Then add "Connect to Servers",
    -Then add "Get specified Finder Items". Click Add, and locate your disk image file over the network. (this will automatically add the location path. For ex. smb:/hpserver/photos/aperture_library.dmg)
    -Then add "Mount Disk Image".
    -Then test workflow by clicking on "Run" button on top right of window. If your
    Finder->Preferences->General settings on your Mac is set to show "Connected Servers" on your desktop, your disk image will appear on you desktop.
    -Finally, save this Application workflow as an application by clicking File menu->Save As. Save this to your documents folder area.
    -To have your Mac auto-mount your disk image automatically when you login:
    ->go to System Preferences->Accounts->your "Admin account name"->Login Items
    ->click "+" sign and navigate to the Documents folder, to where the Automator application you saved
    ->click Add. Once done, it will appear on the Login Items area. You can choose to hide it, if you want by clicking the checkbox.
    -Now Restart your Mac, and now your disk image should auto-mount.
    Hope this helps, as it helped me solve the issue. Too bad one must have to program this and it is not native on MacOSX.

    Too many steps. Do this:
    1. Go to Disk Utility and create a disk image with the following properties:
    Format: Mac OS Extended (Journaled)
    Partitions: Hard Disk
    Image Format: Sparse bundle disk image
    2. Copy the image you just created to the share on the network where it should reside.
    3. Open System Preferences, and click on the Accounts icon
    4. Select *your account* and click on the Login Items tab
    5. Drag the icon for the disk image from the network share into the Login Items list
    If a login item is something on a network share, it will reconnect to the share it's located on automatically first.
    If a login item is a disk image, the disk image will be opened and mounted.
    It's important that the image is a journaled one because if it isn't, being disconnected from it while writing would be potentially disastrous.
    It's important that the image is a sparsebundle for two reasons: sparsebundles only take up as much space as they need (e.g., a 1Tb sparsebundle with 100M of data takes up about 100M of space), and they also break the disk down into smaller files. If the underlying filesystem on your network share is FAT32, then no file can go over 4Gb. If you use a sparsebundle, of course, there's no practical limit to how large the disk image can get. Also, it can speed up certain types of backup procedures.
    I suggest using partition type "Hard Disk" instead of "1 partition GUID" because, as a disk image, there's no sense in having a partition table or making it bootable (because you can't boot from the image).

  • Auto Mounting Network Shares

    How would I go about automatically mounting Windows CIFS shares as well as Linux NFS and Samba (SMB) shares on my desktop at login???
    Thanks,
    -brian

    Once they are mounted on your desktop you can drag them onto your login items window in your account preferences.

  • Mounted CIFS shares timing out

    I have a few CIFS mounts on my system during the day that periodically time out and appear to be disconnected. I cannot unmount them, as umount -t cifs -a just locks up (however a reboot will take care of it).
    CIFS VFS: Server fakename has not responded in 120 seconds. Reconnecting...
    This wasn't a problem until recently (last month or two). I mount these manually by calling entries in fstab. When mounted the shares work as they should, however the disconnect is becoming a headache for applications that depend on the mount points.
    Some system specs:
    cifs-utils 5.8-1
    Linux fakehost 3.7.1-3-ck #1 SMP PREEMPT Thu Dec 20 17:59:35 EST 2012 x86_64 GNU/Linux
    The servers of the mounted shares are Windows Server 2008, XP, and Windows 7 boxes (problem appears to not discriminate).
    Any help is greatly appreciated,
    EDIT:
    I should point out the force option appears to work- however this doesn't address the time out problem.
    Last edited by jskier (2012-12-27 21:49:55)

    I mount some cifs shares (on XP and 2k3 mostly, occasionally 2k8) from 'noauto' fstab entries. In most cases I don't keep them mounted for more than a few hours. The only issues I've had is when I forget to unmount them before shutting down.

  • Error Referencing Old CIFS Shares

    Previously I used to use CIFS to connect to my shares on my NV+, but I've switched to AFP.
    For some reason, something in Lion is still trying to get the CIFS shares and so when I open random applications such as Garage Band and others that use the media inspector to let me browse audio and picture files, I get an annoying error pop up that won't go away unless I close down the application. I'm trying to figure out where this old share is being referenced and how I can remove whatever reference there is so I can quit getting the pop up errors.
    The system log shows this when I get the error...
    10/11/11 3:09:22.142 AM NetAuthSysAgent: smb_mount: mount failed to nas-mccordnet (CIFS)._smb._tcp.local/pictures, syserr = No such file or directory
    Is there a file that references these shares that I can delete or edit?

    hwoess,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://www.novell.com/support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • Accessing Windows CIFS Shares via Nautilus

    Hi,
    I've recently installed and configured Solaris 11, am having problems accessing Windows CIFS shares via Nautilus.
    I've installed both samba (needed for CUPS to print to printers connect to a windows pc) and smb/client. The smb/client and samba services are running. The smb/server service is not installed.
    I can print to any printer on the windows PC I'm trying to access via Nautilus, so I know my username/password for accessing the pc are correct.
    I can also manually mount any share on the windows PC via the cli (eg mount -F smfs -o user=elin //elink/users /mnt), and browse the files directly that way, except the file permisssions don't seem to align with any unix user. Again this just shows that the username/password combination is ok.
    For Samba, I'm using the default smb.conf file as /etc/samba/samba.conf. Workgroup is set to WORKGROUP in smb.conf.
    On the Windows pc, in the security event viewer, I can see the auth request, however is failing with bad password (event ID 4776, error code 0x006a). In the default group policy object for networking, I've set to accept "LM & NT, NTLMv2 when neogiatated", as this allows legacy clients to connect. (Legacy meaning NT4, Win95, etc, and also has the benefit of allowing other OSes to connect as well).
    I'm also able to access the WIndows PC CIFS shares from an Arch Linux based setup (running GNOME 3.2 w/ Nautilus 3.2), so I doubt it's the Windows side of things causing the problems. Additionally, when I was running Solaris 10u9 (just before upgrading to Sol11), I was able to access the shares via Nautilus as well.
    So my question is:
    1. Does Nautilus use Samba or the Oracle smb/client service to handle mount windows CIFS shares?
    2. What log files or configuration files do I need to looking at to help with this error?
    As a side question,
    I've found that on a clean installation running the "Print Manager" accesses CUPS fine, but once you install a printer, it'll no longer connect to CUPS, unless run from the cli "sudo system-config-printers". So this is a permissions issue, where's the best place to fix/handle that one.

    Replying to my own thread, as I have a possible but very-hackish solution.
    To add some further details to my original post.
    There are 4 PCs on the LAN.
    1. Hellfire - OS = Solaris 11 11/11
    2. Brimstone - OS = Arch Linux
    3. Elink - OS = Win7 Pro x64 SP1
    4. IsaacPC - OS = WinXP Home SP3
    Attempting to connect to Elink from Hellfire, accessing CIFS shares via Nautulis fails. (Mounting shares via Nautulis fails, but works fine from CLI using 'mount' command which to my understanding uses the smb/client service to work). Elink also hosts all the printers on the LAN, a HP LJ1200 and an Epson Fax/Printer/Scanner.
    Helfire does attempt to authenticate, as listed in the event logs on the Win7 PC (elink), but is returning bad password when using Nautulis. (but printing from hellfire to either printer on elink works fine, as does mounting CIFS shares using 'mount').
    Booting the live CD of Solaris 11, also exhibits the same non-working behaviour when attempting to mount CIFS shares in Nautulis.
    Attempting to access CIFS shares on elink from Brimstone (via Nautulis 3.2 within GNOME 3.2), or from IsaacPC works fine.
    Hellfire configuration.
    Samba is installed, but NOT running (samba is needed for accessing the printers on elink, as CUPS needs smbspool which is part of the samba package), and the native smb/client service is also running.
    smb.conf is a direct copy of the default *.conf file, except the WORKGROUP is set to 'WORKGORUP'. There is a symlink to smb.conf in /etc/sfw/smb.conf -> /etc/samba/smb.conf
    Onto the hackish-fix.
    I've noticed that there are 2 copies of libsmbclient.so installed on the system, one in /usr/sfw/lib (part of the "libsmbclient" package) and another in /usr/lib/samba (part of the "samba" package).
    "libsmbclient" appears to be based on samba 3.5.8 codebase, and is linked to the gvfsd-smb daemon (this is the software that Nautulis uses to talk SMB to access CIFS shares).
    "samba" is based on the samba 3.5.10 codebase, and it's installation has nothing to do with GNOME or Nautulis in any manner.
    Using any of the samba included tools to test SMB/CIFS functions, work with 1 minor exception (which I'll list below). eg, using smbclient I can list all shares on any PC on the LAN, etc.
    So as a hunch, I renamed the libsmbclient.so.0 in /usr/sfw/lib, and symlinked /usr/sfw/lib/libsmbclient.so.0 -> /usr/lib/samba/libsmbclient.so.0 (so that gvfsd-smb is linked against the slightly newer version of the libsmbclient.so as included in the samba package located in /usr/lib/samba).
    I rebooted Hellfire, and now I'm able to access CIFS shares via Nautulis, provided that some form of authentication is needed (that is a username and password is needed - guest access and blanks passwords don't work - but these IMO should be disabled immediately as part of a baseline security package in regards to Windows - so no harm there).
    Now to the minor exception I noted earlier. When using smbclient to actually connect and transfer files, I get:
    ld.so.1: smbclient: fatal: relocation error: file /usr/lib/libreadline.so.5: symbol tgetent: referenced symbol not found
    As far as I know, tgetent is part of libtermcap.so, so I guess when building smbclient or libreadline.so, the link reference to termcap was left out? (or something like that). Anyway, that's another issue...

Maybe you are looking for

  • Problem while invoking BPEL from a JSP.

    I have a very simple JSP <%@page import="com.oracle.bpel.client.Locator" %> <%@page import="com.oracle.bpel.client.NormalizedMessage" %> <%@page import="com.oracle.bpel.client.delivery.IDeliveryService" %> <%@page import="java.util.Hashtable" %> <%@p

  • Looking for totable one-hand keyboard for iPad

    I want to carry my iPad into the field and need a better keyboard than the on-screen version. But, I also want it to fit onto the iPad so I can hold it with one hand and type with the other, so a non-flexible, horizontal frame for the iPad with a bui

  • Java update caused youtube streaming to stutter

    I downloaded "Java for Mac OS X 10.7 Update 1" and now Youtube is acting strange with stuttering and laggy frames. this did not happen before the update. Help would be much appreciated. I am using a 2011 13'' Macbook Air with i5 processer.

  • Uploading a Portal resource to Spaces

    Version: WebCenter 11g PS3 (Spaces) Hi, I have created a custom page template in JDeveloper using the DesignWebCenterSpaces.jws workspace. ( I am refering the Chapter 49 of WebCenter Developer Guide). In the page temaplate I have included some task f

  • Sharing photos between networked versions of Elements

    Has anyone shared photos between different versions of Elements?  Specifically, I have Elements version 3 on a XP system.  Now I would like to add a new Windows 7_64bit system and run the latest version of Elements on it.  As I will be keeping both s