Mounting samba share starts avahi, ssh and sftp at client

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

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

Similar Messages

  • Native SSH and SFTP in LabVIEW

    At the risk of re-opening a can of worms, is there any consideration for adding native SSH and SFTP support for LabVIEW?
    Using PuTTy/plink is cumbersome and not cross-platform.
    Calling a .NET (or any other) external assembly is cumbersome and not cross-platform.
    Labwerx SSH has a terrible licensing model (not to mention the additional cost).
    It is 2015, and SSH/SFTP is ubiquitous and not going away. These protocols should be natively supported in LabVIEW.
    I have seen this idea on the exchange (http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Native-SSH-and-SFTP-Support/idi-p/1141529), but there hasn't been any movement in 5 years. I would appreciate any news from NI here, even in the negative. If LabVIEW isn't going to support SSH anytime soon, it would be better to find out now.
    Solved!
    Go to Solution.

    I doubt it is likely to happen any time soon - the LabSSH toolkit is pretty reasonably priced when you compare it to how long it would take you to implement the functionality yourself and there is nothing to stop you from implementing it yourself using the TCP/IP functions which are in LabVIEW. You can of course use the command-line interface to something like WinSCP / PuTTy as well.
    I did also find a wrapper that someone had made for an Open Source .NET SSH library called Renci
    I downloaded a copy from this thread: http://forums.ni.com/t5/LabVIEW/Plink-PuTTY-works-30-of-the-time-using-System-Exec-vi/td-p/3002261
    There is also another implementation of the wrapper here: https://decibel.ni.com/content/docs/DOC-41388
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • JDev 11.1.1.4.0 Support for SSH and SFTP

    Using JDeveloper 11.1.1.4.0
    I've tried researching Oracle docs, but find nothing on Secure FTP (SFTP). Does Oracle ADF have built-in SSH and SFTP Java libraries? If not, has anyone had success with the Java libraries from SourceForge or is there something better out there?
    Thanks,
    Troy

    There is no build in ftp or ssh library in jdev. I used http://commons.apache.org/net/ in one of my project.
    Timo

  • Mount samba share on boot

    Hello,
    I want to mount a samba share on boot.
    I have put this in /etc/fstab
    //linuxbak/mp3 /mnt/mp3 smbfs username=***,password=***,user 0 0
    But the network daemon is started after /etc/fstab is executed.
    And I was wondering if it possible to change this somewhere.
    Or maybe an other idea to mount the samba share on boot time

    maybe an automounter would help you?  http://www.google.com/search?q=autofs&s … 8&oe=utf-8

  • [SOLVED] Suddenly unable to mount samba share using cifs

    I have a home server running ArchLinux, hosting an SMB share. My client box is also ArchLinux, both are up to date, running Linux-ck 3.9.2-2-ck. Prior to rebooting both machines around twenty minutes ago, the share mounted fine for months.
    Here is the extent of the "verbosity" I receive from mount:
    mount error(13): Permission denied
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    Here is my fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    tmpfs /tmp tmpfs nodev,nosuid 0 0
    # UUID=71066ae2-40ec-4125-9db7-d04b6a04f712
    UUID=71066ae2-40ec-4125-9db7-d04b6a04f712 / ext4 rw,relatime,data=ordered 0 2
    # UUID=172faa6a-9cca-4d9e-a0b9-a5da3ea81922
    UUID=172faa6a-9cca-4d9e-a0b9-a5da3ea81922 /boot ext2 rw,relatime 0 2
    # UUID=65023815-33fc-4ebd-b245-65683201fbcf
    UUID=65023815-33fc-4ebd-b245-65683201fbcf /home ext4 rw,relatime,data=ordered 0 2
    UUID=1a23d461-fa2b-4ea4-8e58-e7efba3f3bed /media/Storage ext3 rw 0 2
    //ARRAY/Array /media/Array cifs credentials=/home/xaero/.smbpasswd,iocharset=utf8,uid=1000,gid=1000,nounix,sec=ntlm 0 0
    I have tried any number of different options on that final line defining this share now:
    I have tried //array/array (which is what it was originally) and //ARRAY/Array (which is case-sensitive) as well as any combination of using my credentials file (which used to work) or user=,pass= as well changing my credentials file to use quotation marks around my password as it has special characters. I've also read of using sec=ntlm fixing mount issues, but in my case it did not. I'm kind of scratching my head here as passing --verbose to mount yields zero additional information... the uid and gid entries were necessary in the past to mount this share, however I have tried both with and without them, to no avail.
    I rely on SMB in lieu of sshfs as there isn't a stable sshfs implementation for Windows users, which there are some on my network; I also find for whatever reason SMB happens to be faster.
    Last edited by Xaero252 (2013-05-19 21:45:30)

    I'm not exactly sure what fixed this... I looked at the configuration file to make sure I hadn't missed it being updated, and it was in the new format; everything setup correctly (I remember having to edit it not long ago to fix something, probably for the update which you mentioned) I reverted my fstab back to the way it was before (making backups is good) and restarted the smbd on the server numerous times... at some point it just started working again. I wish I had a more concrete answer for documentation sake, but I was literally just rebooting/restarting services in desperation with little to no config hacking between and suddenly things clicked. I'm also no longer running the sec=ntlm option..
    Thanks for reminding me to check my config though, when I updated I had forgotten to enable user restriction (guest was enabled, and certain directories weren't user-specific)

  • Unable to mount samba share file for xbox 360

    I want to be able to stream music from a directory in my arch linux computer (xfce4) to my xbox using samba on a local network using ethernet cables and a router not connected to the internet. I've been able to get samba to startup and I see the folder "share" in my network tab in thunar, but I am currentlly unable to mount that folder. I haven't been able to get the xbox to recognize my arch computer or visa versa.
    Here is the configuration I am running as of now:
    #======================= Global Settings =====================================
    [global]
    # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
    workgroup = XBOX
    # server string is the equivalent of the NT Description field
    server string = "Samba Server"
    # Security mode. Defines in which mode Samba will operate. Possible
    # values are share, user, server, domain and ads. Most people will want
    # user level security. See the Samba-HOWTO-Collection for details.
    security = user
    [share]
    comment = music for xbox
    path = /home/ricky/Music
    browsable = yes
    guest ok = yes
    read only = yes
    create mask = 0777
    # This option is important for security. It allows you to restrict
    # connections to machines which are on your local network. The
    # following example restricts access to two C class networks and
    # the "loopback" interface. For more examples of the syntax see
    # the smb.conf man page
    I did a chmod -r 777 on the ~/Music directory already and I still haven't been able to mount it. I have read in the wiki that creating a /mnt/xboxshare directory, for example, would actually mount the share directory and allow the xbox to share. However, I would rather just use the directory I specified instead of creating another directory. Has anyone else experienced this problem or have any advice for me?
    Here is some additional information:
    I do have to input a password when I issue this command
    $ smbclient -L \\RG_ARCH
    Enter password:
    Domain=[XBOX] OS=[Unix] Server=[Samba 3.6.8]
    Sharename Type Comment
    share Disk music for xbox
    IPC$ IPC IPC Service ("Samba Server")
    rg Disk Home Directories
    Domain=[XBOX] OS=[Unix] Server=[Samba 3.6.8]
    Server Comment
    RG_ARCH Samba Server
    Workgroup Master
    XBOX RG_ARCH

    I was wondering whether it had anything to do with the network I was using. The router I am using can't access the internet and I am using the basic 192.168.1.X setup with 255.255.255.0 as the mask.
    My computer has an ip of 192.168.1.2 and the xbox has an ip of 192.168.1.3. However, I am still unable to ping the xbox or even see it show up in the network. I did notice that whenever I am using another router that is connected to the internet, I can see other windows based computers in the network tab in thunar under "windows network"
    Also, I do have a username and password associated with the samba setup.. so I assume maybe that has something do with it. I checked the permissions of the share folder and it was root:root with read and write permissions. I know samba is working fairly well.. but for whatever reason I can't get the xbox to connect even while it is on the same local network.

  • [Solved for me]Distinguishing SSH and SFTP (for QoS purposes)

    Hi there,
    I'm thinking about shutting down the FTP on my homeserver and use SFTP instead. There is only one thing I couldn't solve so far: In my router I have QoS-rules that make FTP low priority traffic so my normal activities don't get affected by the file transfers. I would like to have the same setup for the SFTP. Now the problem is this: SFTP and SSH are both coming from the same ssh server, listening on port 22. So there is no way of distinguishing them on a ip/port basis. Is there any way of distinguishing SFTP and SSH? Like using iptables to tag one of them and then doing QoS based on the tag or something along those lines? I don't want to slow down my ssh-connections together with the sftp. If anyone has an idea how to accomplish this I would be really glad to hear about it.
    Thanks in advance
    seiichiro0185
    Last edited by seiichiro0185 (2010-08-22 11:27:32)

    briest wrote:Well, a simple, though definitely not bulletproof solution: define multiple ports in sshd_config, then use one of them for sftp, and another for ssh?
    Thanks for this hint, I didn't know that ssh could listen on multiple ports. Its not totally bulletproof, but good enough for my case. The only people who will have access to the server are trustworthy and won't fiddle with the settings to circumvent my restrictions.
    Thanks to all of you for your suggestions.

  • SCP, SSH and SFTP in CMD / File-Explorer and SSH key management with Windows Credential Manger

    Please add SSH, SFTP and SCP in CMD and File Explorer.
    Also, allow us to copy to FTP in File Explorer.
    Would be nice to have the SSH credentials managed by Windows Credentials Manager.

    Even with the RHEL firewall completely disabled, it has the same upper limit. SCP between the Solaris systems, with ipfilter running on both systems and both systems on completely different networks, is not a problem. Between Solaris and RHEL, same network but different subnet, RHEL with no firewall running (only while troubleshooting this, don't panic), still a problem. Using PuTTY SFTP from/to any of the systems is fine, even though on different networks. The mtu on the RHEL was the same as the Solaris systems (1500) - changing values on the RHEL increased the upper limit but still hit a ceiling. Only have one RHEL system so I can't see whether RHEL-RHEL transfers are affected, only those between Solaris, PuTTY on Windows, and the one RHEL system.

  • 10.4.3 not mounting Samba shares

    I am having problems connetcting to the SMB Shares on out server. The Server is running Fedora 4 and Samba 3.0.14 I have attached the server logs to show what is happening when I try to connect. Basically I cannot connect to the server or browse the server since it says that I am already connected to the share but the share shows up no where. I cannot also unmount the share or eject it if it decides to show up. I have completely re installed 10.4 and ran the updates via downloads not the software updater. I am not having any other connectivity issues such as email or internet access.
    Any help would be great thanks.
    Server Logs:
    [2005/11/21 10:49:00, 1] smbd/service.c:makeconnectionsnum(648)
    quicksilver-500 (192.168.0.130) connect to service design initially as user production (uid=500, gid=500) (pid 28394)
    [2005/11/21 10:49:00, 3] smbd/secctx.c:set_secctx(288)
    setting sec ctx (0, 0) - secctx_stackndx = 0
    [2005/11/21 10:49:00, 3] smbd/reply.c:replytcon_andX(456)
    tconX service=DESIGN
    [2005/11/21 10:49:00, 3] smbd/process.c:process_smb(1091)
    Transaction 4 of length 39
    [2005/11/21 10:49:00, 3] smbd/process.c:switch_message(886)
    switch message SMBtdis (pid 28394) conn 0x96d8520
    [2005/11/21 10:49:00, 3] smbd/secctx.c:set_secctx(288)
    setting sec ctx (0, 0) - secctx_stackndx = 0
    [2005/11/21 10:49:00, 3] smbd/secctx.c:set_secctx(288)
    setting sec ctx (0, 0) - secctx_stackndx = 0
    [2005/11/21 10:49:00, 1] smbd/service.c:close_cnum(836)
    quicksilver-500 (192.168.0.130) closed connection to service design
    [2005/11/21 10:49:00, 3] smbd/connection.c:yield_connection(69)
    Yielding connection to design
    [2005/11/21 10:49:00, 3] smbd/secctx.c:set_secctx(288)
    setting sec ctx (0, 0) - secctx_stackndx = 0
    [2005/11/21 10:49:00, 3] smbd/process.c:process_smb(1091)
    Transaction 5 of length 43
    [2005/11/21 10:49:00, 3] smbd/process.c:switch_message(886)
    switch message SMBulogoffX (pid 28394) conn 0x0
    [2005/11/21 10:49:00, 3] smbd/secctx.c:set_secctx(288)
    setting sec ctx (0, 0) - secctx_stackndx = 0
    [2005/11/21 10:49:00, 3] smbd/reply.c:reply_ulogoffX(1249)
    ulogoffX vuid=100
    [2005/11/21 10:49:00, 3] smbd/process.c:timeout_processing(1336)
    timeout_processing: End of file from client (client has disconnected).

    What do you mean 'upgraded Fedora'?
    What part?
    (I have a similar problem)

  • Using SSH and VNC my client screen distorts

    If I log in over my local network the screen of my client machine appears in normal proportions.
    When I log in over a ssh connection from lets say a hotel, my client screen is distorted (stretched lengthwise).
    Anybody know ho to fix this?
    I tried the screen settings in my application (I use jolliesFastVNC) but his does not fix it.
    Thanks

    If you enable screen sharing on your mac then ssh into that mac using the following command
    ssh -L 5901:localhost:5900 serveraddress
    replace serveraddress with the IP of the server.
    then launch the screen sharing app on the remote computer that is login in found at
    /System/Library/CoreServices/Screen\ Sharing.app
    then enter as the host address localhost:5901
    Then your running a vnc server tunnelled through your ssh connection.

  • User unable to umount samba share

    Here is the lines in my /etc/fstab related to samba shares.
    # Some Windows/SAMBA shares
    //BAO-QNAP500GB/USB\040Disk\0401 /mnt/eBooks smbfs workgroup=BAO-HOME,username=xxxxxx,ip=192.168.2.4,password=xxxxxx,noauto,noatime,user,rw 0 0
    I am able to mount samba share as a user (not root) after
    chmod u+s /usr/bin/smbmnt
    chmod u+s /usr/bin/smbumount
    by
    mount /mnt/eBooks
    However, I am unable to umount as a user:
    [ning@HP-m8100y ~]$ umount /mnt/eBooks
    umount: /mnt/eBooks mount disagrees with the fstab
    On the other hand, this could work:
    smbumount /mnt/eBooks
    Can somone tell me what I did wrong?

    Looks like its something to do with fstab though I don't know what never having mounted shares though fstab myself. I would try removing the fstab entry and just using smbmount to mount shares, thats the way I've always done it and never have problems with mounting/unmounting.
    smbmount //IP Address/source folder /destination folder

  • Can't connect to samba share via VPN

    Hello all,
    I am looking for an answer for few days now and still can't manage to fix it. I found two workarounds in the meantime, but it's not what I want!
    My case:
    Cisco vpn on one side and Mac vpn client (native). I can connect alright, can't only mount samba share. Via console I got invalid argument error, but when I go to finder > go to server it's just processing (no error). Left it for few mintes and nothing happened. I have a windows on virtual machine and I can mount samba alright. One more thing. I created a new user, logged in and it works! ****.
    Can anyone say where should I look? What can be the problem on my old account? Don't want to switch and change all the things now, there must be a way to fix it...
    Hope someone can help
    Thanks in advance,
    Regards,
    Jake

    Hi Richard,
    Thanks for interest. It's a windows share 2003 smb. It's a company network. As I said its not the case of VPN itself.
    About the new user, that's a yes, it's same username as my samba share name, but even tho it's the same it needs my authentication. For the more, when I am with my mac at work and connect via cable I can access everything alright from my old account.
    How can VPN block me when I can access it from my windows virtual (which is not the same as my work username). I can access it from new user, I would say its not the case of VPN blocking me there, I guess it's something I have changed over the years with my previous VPN settings.
    I have direct access to VPN and I know firewall is off right now as we are testing it, so its for sure my mac settings...
    Question is where do I find it:)

  • After update to 10.6.3 copy to a Samba share fails

    I have just upgraded to 10.6.3. Since then whenever I copy a file from my iMac to a Samba share on a Linux server I get the error:
    The operation can't be completed because you don't have permission to access some of the items.
    No changes were made on the server before this update.
    If I create a file using any program or create/delete a folder on the share works fine, but I cannot copy files. The error occurs at the end of the copy, not a the beginning....
    Anyone has had this problem? My best guess is something is not right with this latest patch.

    Hi,
    I have noticed the error occurs when I copy files from my Mac to any samba server (I run OpenSuSE on a Phenom-X4 and Ubuntu PPC on an old iBook-G3). However when I copy to a file share on a PC running Windows Server 2003 I do not get any file copy problems.
    Reading and executing files from mounted samba shares or windows shares did not seem to have any issues.
    For the moment I have relegated myself to copying files to a Windows OS running on a virtual machine in my Phenom-X4 and then logging into the VM and copying the files a second time to the samba share but I would appreciate anyone posting further on this issue. Because of my experiences I believe the issue is an incompatibility with the Samba servers after upgrading to 10.6.3.

  • [SOLVED] advanced shell script for mount and unmount samba share

    Good morning guys,
    Today I've a very long question....
    Hope in your help....:
    I usually move from different network.
    For one of those I need to mount some share that are under an ActiveDirectory server.
    To do that I use samba.
    Especially I've made and use the below  shell script.
    I know that it's so stupid but I'm a very newbie:
    #!/bin/sh
    echo "This is a custom script for mount my citrix share"
    echo "Please insert user password (must a sudoer user)"
    echo " "
    sudo mount -t cifs -o username='myusername',password='mypassword' //host_ip/TsHome$/myusername /home/myuser/samba_share/TsHOME
    sudo mount -t cifs -o username='myusername',password='mypassword' "//host_ip/direction" /home/myuser/samba_share/direction
    echo " "
    read -p "Press ENTER key to close this terminal"
    exit
    As I say the script work but it's so crude...!
    I want/need to implement it whit the follow addictions:
    1. print a feedback on mount: somenthing like "TsHOME is now mounted" or "unable to mount TsHOME"
    2. check if the share are already mounted: to prevent accidentally multiple mount. If a share is already mounted I want to print something like "TsHOME is already mounted on /home/myuser/samba_share/TsHOME"
    3. ask for share password  (now it's in clear on script) - This is optinal
    4. un-mount the share before reboot or shutdown command. That because I've notice that If i reboot or shutdown without manually un-mount the share the step of unmounting network file system became very slow
    If it's no extremely difficult, can someone help me to write this script?
    I know that man exist but I'm not a programmer and it's so difficult for me approch it.
    Thank you in advance.
    Ale
    Last edited by Alexbit (2010-09-23 21:29:13)

    Thank you very (VERY) much!
    I've follow your information and.. it work!
    If can be usefull to other this is the complete script:
    #!/bin/sh
    echo "This is a custom script for mount citrix share"
    echo "****************************************"
    echo " "
    echo "Please insert domain password:"
    read -s mypassword
    echo " "
    echo "|checking mount state...in share are not mounted mount it!|"
    echo "+-------------------------------------------------------------------------+"
    if grep "TsHome" /etc/mtab &>/dev/null; then
    grep "TsHome" /etc/mtab | awk '{print "TsHome is already mounted on " $2}'
    else
    sudo mount -t cifs -o username='yourusername',password="$mypassword" //ipaddress/TsHome$ /home/Samba_share/TsHOME && echo "TsHOME is now mounted" || echo "unable to mount TsHOME"
    fi
    echo " "
    if grep "direction" /etc/mtab &>/dev/null; then
    grep "direction" /etc/mtab | awk '{print "direction is already mounted on " $2}'
    else
    sudo mount -t cifs -o username='yourusername',password="$mypassword" '//ipaddress/direction' /home/Samba_share/direction' && echo "direction pat is now mounted" || echo "unable to mount direction"
    fi
    echo " "
    if grep "Area" /etc/mtab &>/dev/null; then
    grep "Area" /etc/mtab | awk '{print "Area is already mounted on " $2}'
    else
    sudo mount -t cifs -o username='yourusername',password="$mypassword" '//ipaddress/Area' /home/Samba_share/Area && echo "Area is now mounted" || echo "unable to mount Area"
    fi
    echo " "
    echo "All DONE!"
    echo " "
    read -p "Press ENTER key to close this terminal"
    exit
    I don't really well understand what I've to put in rc.local.shutdown....
    I think somethings like:
    #!/bin/bash
    # /etc/rc.local.shutdown: Local shutdown script.
    echo "This is a custom script for UN-mount citrix share"
    echo "********************************************"
    echo " "
    echo "|check mount state: if mount then un-mount!|"
    echo "+-------------------------------------------------------+"
    echo " "
    if grep "TsHome" /etc/mtab &>/dev/null; then
    grep "TsHome" /etc/mtab | awk '{print "TsHome is NOT mounted -> going on..." $2}'
    else
    sudo umount /home/Samba_share/TsHOME && echo "TsHOME is now UN mounted" || echo "unable to UN-mount TsHOME"
    fi
    echo " "
    if grep "direction" /etc/mtab &>/dev/null; then
    grep "direction" /etc/mtab | awk '{print "direction is NOT mounted -> going on.." $2}'
    else
    sudo umount /home/Samba_share/direction && echo "direction is now UN mounted" || echo "unable to UN-mount direction pat"
    fi
    echo " "
    if grep "Area" /etc/mtab &>/dev/null; then
    grep "Area" /etc/mtab | awk '{print "Area is NOT mounted - Finished" $2}'
    else
    sudo umount /home/Samba_share/Area && echo "Area is now UN mounted" || echo "unable to UN-mount Area"
    fi
    echo " "
    echo "going shutdown"
    echo " "
    sleep 5
    I've try but it seems to ignore the IF statement... this is the output when ALL share are UNmounted:
    $ sh /etc/rc.local.shutdown
    This is a custom script for UN-mount citrix share
    |check mount state: if mount then un-mount!|
    +-------------------------------------------------------+
    umount: /home/Samba_share/TsHOME: not mounted
    unable to UN-mount TsHOME
    umount: /home/Samba_share/direction: not mounted
    unable to UN-mount direction
    umount: /home/Samba_share/Area: not mounted
    unable to UN-mount Area
    going shutdown
    Tomorrow I will test again when I'm at office.
    Meanwhile can you check if I made a macroscopic mistakes?
    Thank you again!
    Last edited by Alexbit (2010-09-23 17:34:49)

  • What can I do to stop high network usage when a Samba share is mounted?

    Ok, so i've done a lot of googling on this, but i've not really found any conclusive answers.
    Basically, when I mount a samba share from another machine, Lion goes crazy. I can see from iStat menus that network (wireless) usage varies wildly from 300KB/s, right up to 6/7 MB/s, but my cpu usage doesn't spike at all. When this is happening the laptop is almost unusable, clicking something can take 30 seconds for a response. I'm presuming that this is something to do with Spotlight trying to index the share, but as it's several terabytes in size, it never completes. I've left the laptop on overnight in the hope that whatever process is causing this would finish, but to no avail. I've also placed the share in the Privacy tab in Spotlight's preferences, and used mdutil -i to stop it accessing the volume, but with no luck.
    Can anyone help? It's driving me nuts and it means i can't access my files without having to ftp in instead.
    I'm running 10.7.3

    Unfortunately, your description of the problem and the placement of both your main and AirPort Express routers does lend itself to believe the problem is most likely Wi-Fi interference. If it isn't the microwave or portable phones, it could be obstacles like walls between the routers that may be preventing the stream from consistently reaching the Express.
    In your configuration, the stream will first travel to the main router, and then, from the main router to the AirPort Express. If, for example, you started the stream in the same room as the Express, that stream would have to travel across several rooms at least twice.

Maybe you are looking for

  • Captions are not shown in HTML

    Dear experts, In the web design captions are shown. However when I publish my designed pages to a map some of the captions do not show up when I open the HTML. Thanks in advance for your help, Andre

  • How to erase a motion icon?

    Hello! Does anybody knows how to erase or how to stop a moved object (which is moved by a motion icon). I would like to avoid erasing the display icon, where the moved object is in. Thanks for comments! Jeanette

  • Function based indexes available in Standard Edition ?

    Is the function based index available in the standard or only the enterprise edition ? Thanks Oliver

  • 1GB sd card for Creative Muvo Sport C100 questi

    I want to get a GB sd card for a Creative Muvo Sport C00. I was thinking of getting it from amazon. Can anyone tell me )the name of ones that will works with the Creative Muvo Sport C00. 2)the best one I should get (or should I just get the cheapest)

  • Iphone 3Gs won't sync music, photo's etc after updating to iOS 5.1. Need help!

    I recently updated my iOS on my Iphone 3Gs and it won't sync any of my music or photo's. I'm extremely frustrated and annoyed that I can't put any of my music or photo's onto my Iphone as the new iOS (5.1) won't sync. I've done everything I can think