Autofs / sshfs / osxfuse

Attempting to do sshfs mounts through autofs and have hit a snag.
my direct map in auto_master:
/-                              auto_ssh          -nobrowse,nosuid
my auto_ssh file:
/mnt/users/ssh/scanner          -fstype=sshfs,sshfs_debug,idmap=user,follow_symlinks,max_read=65536,rw,nodev,ca che=no,IdentityFile=/Users/cmp12/.ssh/id_dsa cmp12@dirac:/tmp/that
I'm pretty sure the problem is because root becomes the owner of my mount point when i add it to autofs:
tesla:~ cmp12$ ls -ld /mnt/users/ssh/scanner
dr-xr-xr-x  2 root  wheel  1 Mar 11 11:48 /mnt/users/ssh/scanner
Its owned by me when not included in autofs:
tesla:~ cmp12$ ls -ld /mnt/users/ssh/scanner
dr-xr-xr-x  2 cmp12  DHE\BIAC-Users  68 Mar 10 13:04 /mnt/users/ssh/scanner
When i try to access the mount location the sshfs mount is getting done correctly and shows up in the mount tab, but i cannot access the folder because its now owned by root. 
mount entry:
cmp12@dirac:/tmp/that on /mnt/users/ssh/scanner (osxfusefs, nodev, nosuid, synchronous, nobrowse, mounted by cmp12)
logs:
Mar 11 11:54:20 tesla.dhe.duke.edu automountd[71454]:   fork_exec: /sbin/mount_sshfs -o nobrowse -o nosuid,nodev -o sshfs_debug,idmap=user,follow_symlinks,max_read=65536,rw,nodev,cache=no,Identit yFile=/Users/cmp12/.ssh/id_dsa -o automounted -o nosuid cmp12@dirac:/tmp/that /mnt/users/ssh/scanner
Mar 11 11:54:20 tesla.dhe.duke.edu automountd[71454]:   fork_exec: returns exit status 0
Mar 11 11:54:20 tesla.dhe.duke.edu automountd[71454]:   mount of /mnt/users/ssh/scanner dev=2f000073 rdev=0 OK
Mar 11 11:54:20 tesla.dhe.duke.edu automountd[71454]: MOUNT  REPLY  : status=0, AUTOFS_DONE
That mount command returns a successful/usable sshfs mount when NOT used in combination with autofs ( because my user is the owner of the mount point ).  with any of the other mounts i have in autofs, the mountpoint starts off being owned by root, then ownership is changed to be the user accessing the mount after the mount happens. ( my smbfs mounts are working perfectly )
Is there any way around this in autofs?  I would like this to be in autofs so it can handle mounts/umounts/etc automatically.
Thanks,
-chris

Thanks for the suggestion .. i finally found a way around this.
I found that the fuse module doesn't respect the options set in the fuse.conf file ( this works on my linux machines ).
However, if i specifically set the option with sysctl and use allow_other, then things work the way i want .. and the way i've been using this in linux.
I turn on allow_other:
sysctl -w osxfuse.tunables.allow_other=1
But i'm only mounting in a location that my user has access .. and adding allow other in the auto_sshfs file:
tesla:local_cvs cmp12$ cat /etc/auto_sshfs
/mnt/users/ssh/scanner          -fstype=sshfs,sshfs_debug,allow_other,idmap=user,follow_symlinks,max_read= 65536,rw,nodev,cache=no,IdentityFile=/Users/cmp12/.ssh/id_dsa          cmp12@dirac:/tmp/that
May not be the most secure way, but it works

Similar Messages

  • [SOLVED] sshfs - Hangs at different occations (reboot needed?)

    I'm using Thunar with gvfs and sshfs, both works fine and does the job.
    Only problem is that for some reason, sshfs when going back to a folder after a while (that's bookmarked if that matters) nothing happens, and if i try to "unmount" the remote filesystem it hangs thunar.
    I'm not quite sure which mount point to unmount so i usually go full out noob and reboot.
    But here's my mount:
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    dev on /dev type devtmpfs (rw,nosuid,relatime,size=8194272k,nr_inodes=2048568,mode=755)
    run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
    /dev/sda2 on / type reiserfs (rw,relatime)
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
    cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
    pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
    cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
    tmpfs on /tmp type tmpfs (rw)
    debugfs on /sys/kernel/debug type debugfs (rw,relatime)
    configfs on /sys/kernel/config type configfs (rw,relatime)
    mqueue on /dev/mqueue type mqueue (rw,relatime)
    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
    /dev/sda3 on /home type reiserfs (rw,relatime)
    fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
    gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=0)
    Last edited by Torxed (2013-08-15 18:30:02)

    Bha solved it (after living with it for weeks)...
    ps aux | grep ssh
    Just looked for anything suspicious and:
    ssh -oForwardX11 no -oForwardAgent no -oClearAllForwardings yes -oProtocol 2 -oNoHostAuthenticationForLocalhost yes -l user -s host sftp
    Just killed the correct pid.

  • [SOLVED] cifs / sshfs mounting problem

    I have a Ubuntu 12.04 home server running samba. I use autofs to mount a share from that server on my Arch desktop. This worked fine until about a week ago. Now if I try to cd to the mount point, the terminal hangs a long time. Eventually, I can run an ls, but trying to list a subdirectory with a lot of files get stuck indefinitely. Accessing it through thunar or dolphin also hangs. Strangely, using sshfs instead of cifs also hangs.
    If I use my Crunchbang netbook, or a Windows laptop to access the share, it works fine. sshfs on the netbook also works. So the problem seems to be specific to the Arch desktop.  I don't see any sign of problems in logs on either end (the samba server log, server syslog, desktop journalctl -xn and dmesg).
    Any thoughts? It's probably related to a pacman update at some point, but since I don't access the share frequently, I can't be sure when. I also tried using systemd's automount instead, it also hangs.
    Last edited by deadrabbit (2014-09-22 05:04:02)

    deadrabbit wrote:Turned out to be a bad switch between the two - very embarrassing.
       You know, I almost always tell people check the cable.  Almost.

  • Sshfs/fuse

    sshfs/fuse does not work anymore when you compile it yourself (like from Ports). This is a severe regression in functionality.
    The problem appears to be related to kernel module signing:
    30/10/2014 14:18:38,979 com.apple.kextd[19]: ERROR: invalid signature for com.github.osxfuse.filesystems.osxfusefs, will not load
    Is there any plans from Apple to help this software operate as it did in previous revisions?

    Guys... I know that I am no expert but... all I did was installed:
    sshfs
    package on the client and rebooted and right after that I have run on the ssh client (where the drive is being mounted using sshfs):
    su
    mkdir /media/1862_GB_X-Ternal
    chown login:login /media/1862_GB_X-Ternal
    and then as user I ran:
    sshfs -p 22 login@hostname:/mount/point/ /media/1862_GB_X-Ternal/
    and since I have ssh authentication with a auth keys - drive was mounted.
    Later I have created a .sh script that runs the command for me at boot time automagically and it works...
    Added:
    /media/1862_GB_X-Ternal/
    to the dolphin places menu and it's there... after each boot.
    Same command in my LXDE machine - pcmanfm sees the drive as a local drive - never even had to add it in the "Places" pane...
    I know I am probably not doing it right but... it works.
    I wrote this while still using PCLinuxOS. I know - You will probably laugh and say it's lame but what the heck...
    Regards.
    Andrzej
    Last edited by AndrzejL (2013-02-14 01:04:32)

  • Autofs.service causing problems with gnome's save dialog boxes

    Recently I have been having a problem saving files to disk using the gnome save dialog box when autofs is running. Basically what happens is most of the folders on the right side of the save dialog disappear (see screenshot below) and remaining few become unresponsive when clicked. If I wait a few minutes the folders will eventually appear and work when clicked, but needless to say this is annoying.
    I can "fix" this  problem instantly by simply running systemctl stop autofs.service, but this is not a good solution because I like the convenience of mounting my  NFS shares on demand.

    Recently I have been having a problem saving files to disk using the gnome save dialog box when autofs is running. Basically what happens is most of the folders on the right side of the save dialog disappear (see screenshot below) and remaining few become unresponsive when clicked. If I wait a few minutes the folders will eventually appear and work when clicked, but needless to say this is annoying.
    I can "fix" this  problem instantly by simply running systemctl stop autofs.service, but this is not a good solution because I like the convenience of mounting my  NFS shares on demand.

  • MS WORD TABLE commands such as "AutoFit to contents" can be achieved in LabVIEW report generation?

    LV 7.1 and Report Generation Toolkit 1.1.
    I generate a report by the tookit.But tables are in disorder because of the different contents in cells.
    Is there a way(or any function) in LabVIEW to made it like "AutoFit to contents" or "AutoFit to window" in WORD.
    Thanks
    =======================
    Windows XP SP2+LabVIEW 7.1
    Attachments:
    Report.vi ‏98 KB

    Where is this VI that you say to take the "Data" output from located?  I can not find it on the Palette.
    I need to do the same thing to a word report I am creating, autofit the tables to contents (except certain ones) and need to know how to access that property.
    EDIT - Nevermind - I found it.
    http://digital.ni.com/public.nsf/allkb/dc08b6a56dbe00a586256f1d006826dc
    Thanks,
    Ryan
    Message Edited by RVallieu on 04-26-2006 04:14 PM
    Ryan Vallieu
    Automation System Architect

  • MS Word AutoFit behavior

    I'm attempting to edit the AutoFit behavior of a MS Word 2003 report generated through the Report Generation Tool, but I'm having some trouble with ActiveX. I referenced an earlier thread I found via search here, but it's from 2006 so I'm not sure if either it's still applicable or if I am doing it wrong.
    I've attached my VI with a comment where I'm getting an error. I think it has to do with referencing the index, but as far as I know, "1" references the current table/graph... If someone could point me in the right direction or help me with the solution, I'd greatly appreciate it.
    Solved!
    Go to Solution.
    Attachments:
    TEST_Word2003_2Dfloat.vi ‏54 KB

    ChaoyD wrote:
    Had to make a .zip because of a subVI I used, but here's the LV2009 of it.
    Hmmm ... this subVI looks familiar!
    Try this (I haven't tried it in your vi but I know it works as a standalone).
    Ben64
    Attachments:
    TEST_Word2003_2Dfloat_modified.vi ‏50 KB

  • How to share an autofs mounted drive between users?

    Hi all,
    I've spent a frustrating (albeit informative) couple of days trying to share my ITunes library between two users on the same MacBook Pro. I've managed to share the iTunes library files themselves by placing the iTune.xml in the /Users/Shared folder and creating aliases in each user's /Users/username/Music folder. However, it's getting the iTunes library to recognise the remote media location thats the problem. All the iTunes media files are on a Synology DiskStation NAS which I am trying to mount in such a way that it can be seen the same way - regardless of which user is logged in.
    Firstly, I tried mounting the DiskStation/itunes folder and placing a link to the mount in each user's Login Items, but that never seems to give me a persistent mount.
    Secondly, I tried creating an /etc/auto_afp file to specify the mount location and using the /etc/auto_master file to mount the Diskstation/itunes folder to /Users/Shared/itunes.  This works great - but only for the first user to log in. When I look at the permissions for the mounted share that this creates I see that it is owned by 'User1'. When User2 logs in they cant access the share due to a lack of permissions, so when they start up the shared iTunes it complains that it cant see any of the media files!
    Does anyone know  a way to create a mount using autofs that can be mounted by multiple users and give all of them the permission to read/write to it?

    Niel's instructions don't cover you 100%.  You want to keep things on a different drive and there won't be a "shared" folder there. That's only on your main drive.  You also have to migrate media and/or your library to a different drive using a special process or you will end up breaking all your music links.
    You need to clearly state what you want to share.  You can share just media or you can share your whole library structure.  Sharing only media is safest but if you share a common media pool you will all have to keep each other appraised of additions (and deletions, because those too will affect everybody) from the pool.  You have to be pretty trusting and coordinated on this.  Alternatively you can make it so others can copy your media but you will each have your own copy of the file so if somebody else wants to change the name on a track it doesn't do it to the copy you use too.  Of course this takes up the most space but is the safest.  Which migration procedure to do will depend upon your answers to this section.
    Finally, I hope you have a backup plan implemented on this.  Nobody will be happy when that external drive fails and it all disappears.

  • How to configure Airport Extreme AFP disk sharing to host multiple users' home-directories (Lion, using autofs)

    I have this working, but only by completely bypassing access control, using guest access with read+write permissions.
    Do I need to buy Lion Server, to do this. All my past unix/linux experience says Lion Server should _not_ be necessary.
    This seems like a simple & obvious setup objective, but it is proving to be harder than I would imagine.
    Setup:
    multiple users, sharing two mac mini's running OSX Lion
    connected to an Airport Extreme (4th gen) with a USB disk shared (either via disk password, AEBS password, or using AEBS user's passwords).
    After much experimentation and web research, I finally have managed to get the mini's to auto mount the Airport Extreme's AFP shared USB disk. Well almost... It only works if, on the Airport, I set the guest access permissions to read+write and select the "Secure Shared Disks" method to "With disk password" or "with Airport Extreme password".  In other words, it only works if I essentially bypass/disable access control by using the guest authentication mechanism to the AFP shared disk.
    On the Lion side of this, I am automounting the users directories via "autofs". The config files for this are
    /etc/auto_master:
    # Automounter master map
    +auto_master            # Use directory service
    /net                    -hosts          -nobrowse,hidefromfinder,nosuid
    /home                   auto_home       -nobrowse,hidefromfinder
    /Network/Servers        -fstab
    /-                      -static
    /-                      auto_afp
    /etc/auto_afp:
    # Automounter AFP master map
    # https://discussions.apple.com/thread/3336384?start=0&tstart=0
    /afp/users -fstype=afp afp://;AUTH=No%20User%[email protected]/Users/
    Then, after rebooting and verifying read+write access to the /afp/users directories, I change each user's home directory: In System Preferences > System > Users & Groups, I right-click over the users to access the Advanced Options, changing the Home directory field to point at the AFP-mounted /afp/users/Users/* home directories.
    I experimented with alternate UAM specifications, as well as both OSX and AESB users & passwords. Using guest access is the only thing that has worked.
    Any pointers would be appreciated...

    Based on lots more experimentation which confirms the information in a parallel discussion (cf. Automount share as non ROOT or SYSTEM user! https://discussions.apple.com/thread/3221944), I have concluded that the Lion 10.7.2 implementation of AutoFS mechanism is broken. I submitted a bug report via apple.com/feedback.
    Work arounds..?
    Earlier I wondered if installing Lion OSX Server was necessary.  The more I contemplate this, the more I am convinced it _should_not_ be necessary. The client-server architecture is clear: my mac's are the file-server client's and the Airport Extreme is supposed to act as the file server. The only thing instaling Lion Server would do (besides enriching Apple.com) is enable me to configure one of the mac's as the file server. This would require it to be "always on" (thus enriching my electric utility as wel).  Okay, an additional benefit would be configuring software RAID disks attached to the Lion server, but Time Machine has worked fine for me in the past, backing up to disks mounted on the Airport Extreme.
    One solution is to create a disk partition for each user and instruct each user to connect / authenticate to the Airport Extreme AFP share at login.  The multiplicity of partitions is necessary since the first user to mount the AFP share, takes ownership of it, blocking other users from accessing that disk partition.  A user can "steal" ownership by reconnecting, but this will leave the other user's applications & open files dangling.
    This disfunctional situation really *****.  Before instaling Lion, I put a 64 GB SSD (solid state disk) in each of our mac's. I did this expecting to easily configure the /Users/* data on external networked storage. I'm having a dejavu "Bill Gates"-ware moment; problems like this were why I abandoned Windoz.
    I will make a few more experiments using the depreciated /etc/fstab mechanism.  Maybe that will bypass the broken-ness of AutoFS...? Alternately, I guess I could also try to run Kerberos authentication to bypass whatever is broken in AutoFS, but that would require a running a Kerberos daemon somewhere.  Possibly I could configure a Kerberos service to run on both my mac's (without installing Apple's Lion Server)...?
    Stay tuned...

  • I am pulling my hair out! I am using adobe indesign and just want to make a text box 'autofit text' as I change fonts a lot and want the font to automatically re-size as I change it. help help help please - I have latest version of indesign - thanks

    I am pulling my hair out! I am using adobe indesign and just want to make a text box 'autofit text' as I change fonts a lot and want the font to automatically re-size as I change it.
    Is it not possible to create a text box, fill it with dynamic (data driven) text, but make the font size either scale up or down automatically, so that the entire text box is filled? This is a feature in PrintShop Mail Pro called COPY FIT. but no such feature in Indesign??
    help help help please - I have latest version of indesign - thanks, DJ

    lol... it seems to work, but I have another huge problem!
    Apparently .CSV files cannot contain page breaks in the data! The data I am trying to merge is a 'letter', with paragraphs, line breaks, etc.,
    But, after data merging, it ignores page breaks and only merges the first paragraph of each letter. (sigh)
    Solution? Hopefully, an EASY solution. lol as we have thousands of records.
    Is there a third party indesign plugin that will allow .xml, or .xls data merge import??
    Thx,
    DJ

  • AutoFS + Samba share problems when share not online (especially in itunes)

    I'm trying to look into having some or all of my media on a server for a couple of my macs, the main one of interest right now being a mac mini working as a HTPC under a tv, being operated 99% of the time with just the apple remote and frontrow.
    A friend informed me that if you have your itunes library not managed and add files from a remote share then everything works pretty well. Namely if you try to play a file it will seemingly automount the remote file and start it playing. If the remote server is not available it will quickly discover this and after a short pause start giving explanation marks next to the broken tracks. Get the remote destination connected and then try to play a broken track and it will successfully mount the track and play.
    Basically perfect.
    I quickly tried accessing these files via a symbolic link or alias to them on the remote drive, in doing this i can be somewhat insulated from problems of trying to move the library to other machines/shares in the future. This all works fine but you do lose the ability for itunes to automatically mount the remote drive, which is a bit of a step back, but not a big deal on my normal machine. On my HTPC machine however i'd really like front row to be able to just work, hence automatically mounting the server as required.
    The only problem was that when i tried with files directly added to the itunes library from a remote location frontrow would NOT automount the tracks/videos when you attempted to play them like itunes would do.
    I've just spent the last few hours following the advice here
    http://rajeev.name/blog/2007/11/22/autofs-goodness-in-apples-leopard-105-part-i/
    to setup autofs in the hope that this would let me get auto mounting working as it does with itunes and directly added to the library remote files.
    I boiled this down to the following settings
    as root
    vi /etc/auto_master
    and add
    /smb auto_smb
    then create this new config file
    vi /etc/auto_smb
    and add
    <Mount dir under /smb folder> -fstype=smbfs ://<share user>:<share pass>@<ip address>/<share point>
    ie.
    testMount -fstype=smbfs ://netuser:[email protected]/remoteMount
    finally tell automount to throw away its cache
    automount -vc
    then the mount should be setup
    df -h
    shows the indirect map waiting
    map auto_smb 0Bi 0Bi 0Bi 100% /smb
    and by triggering it
    ls /smb/testMount
    you should connect and get a listing, a subsequent df shows
    df -h
    //[email protected]/Media 466Gi 325Gi 141Gi 70% /smb/Media
    Everything worked well with the share getting mounted nicely when present, frontrow could just start playing the files it needed, perfect!!
    The problem came when i wanted to simulate the media server being offline, basically frontrow, a lot of the system including finder, cd commands attempting to access the share, and itunes if you tried that would all freeze for long periods of time as they tried their best to get the files they were looking for.
    I tried looking into getting this to gracefully time out and think i got somewhere by trying to setup the samba share to be soft linked.. I wasn't sure in what files i could add this to, first attempts didn't seem to do anything but adding this seemed to make a difference
    /etc/nsmb.conf
    containing something like
    #Configuration file for example.com
    [default]
    minauth=ntlmv2
    streams=yes
    soft=yes
    to turn soft samba shares on. Things like cd in a terminal seemed to behave quite well with this, when no remote share present you would get empty folders and the like. Finder would also seem to be reasonable with it.
    Frustratingly itunes and frontrow both still have quite massive pauses even when finder and cds in the background show that perhaps the soft links are working and failing like they should.
    I'm now left wondering what i can do to fix it, and resorting to perhaps having the files added via a symbolic link, using the login items to launch the remote share every boot and then having it so that all i need to do is reboot the HTPC mac mini if the server is on for it to pick it up and let me play the files. Otherwise they'll just be unavailable and will fail gracefully without locking up itunes. The perfect solution would be to either have a crontab running, or some applescript bound somehow to whenever frontrow is ran which manually tries to tell finder to do the equivelant mount the login items setup does.
    It's frustrating though as its so close, and the autofs solution if it did work better would seem to be the perfect solution. Has anyone dabbled with this and got any suggestions as to options you can setup to make things not go horribly wrong when a remote share is NOT present, preferrably within the context of itunes or front row not complaining, but to be honest any suggestions i'll be able to try out myself.
    Sorry i've written so much, perhaps some of it will be helpful reference as it took me a while to decipher that link at the top into just setting up a samba autofs.
    Cheers.

    It seems like it's not only the ArchLinux workstation that displays the norwegian letters wrong. The only machine that shows this correc is the machine that created the file/catalogue.
    It seems like the windows 2000 displays the cataloge created by windows XP just fine.

  • How to autofit JEditorPane in a jpanel?

    Hi everybody,
    I have added a JEditorPane to a JPanel wrapped by a splitpane, as displayed in [this snapshot|http://img40.imageshack.us/img40/7540/jeditorpaneissue.png].
    The splitpanel works fine, but for some reason the JEditorPane has a fixed size and won't fit the parent when I resize it by dragging the split bar (the red arrows in the image show the annoying gap).
    I'd like to improve this GUI with 2 things:
    1) autofit: when I change the size of the window or I drag the split bar, the JEditorPane should fit the new size automatically. I suppose I can do this with a listener, but I was wondering if there is better way of doing it (e.g. some settings in the panel).
    2) vertical scrollbar: I obviously need a scrollbar for the JEditorPane, but I don't know where I am supposed to add it.
    Thanks for any hints!
    Mulone

    PS: here's the code:
    JEditorPane:
    public class Recommender extends JEditorPaneInit function of the JEditorPane:
    void init(){
    setEditorKit(new StyledEditorKit());
    setContentType( "text/html" );
    setEditable(false);
    setPreferredSize(new Dimension(300,600));Place where I load the JEditorPane
    InfoBrowserPanel infoBr = new InfoBrowserPanel();
    infoBr.add( UcdNavManager.getInstance().getRecommender() );
    mapHandler.add( infoBr );InfoBrowserPanel (just a container):
    public class InfoBrowserPanel extends JPanel implements BeanContextChild, BeanContextMembershipListenerthen I load it into a splitPane
    if(someObj instanceof InfoBrowserPanel){
    Debug.message("basic", "OpenMapFrame: found an InfoBrowserPanel");
    InfoBrowserPanel bp = (InfoBrowserPanel)someObj;
    splitPane.setRightComponent(bp);which is defined as:
    private JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);That's pretty much it.
    Mulone

  • NFS vs SSHFS

    Hello.
    I got two computers that both runs linux (arch). One of them can be classified as "user-station" and the other as "server". I would like to develop in PHP but instead of creating a local copy of the files on my user-station, and then moving them with sftp/ftp or something else to the server, I would like to directly save files on the server. I was thinking about using NFS, but I also got suggestion for SSHFS.
    There is one problem I tough about:
    The remote web folder is owned by root hence I would need to either run sudo before any operation on the files or finding some other solution (I might think about per-user-web-folder for apache [i.e. localhost/~username]). I need the *FS to handle it in some way or to find workout.
    Some limitations:
    * For now the webserver will be accessed only locally, but there might be a need to open it to specific public clients, hence I need the *FS to handle allow and deny on application level (example: allow 80.90.100.200 to access the www root folder but deny from him the mount option).
    Thats it I think.
    Thanks for help
    Last edited by skwo (2009-12-08 19:38:01)

    I don't know about NFS, but with sshfs you can do "sshfs root@<host>:<www> <mountpoint> -o uid=<your uid>,gid=<your gid>".  In terms of the need to open it up to specific clients, that should be handled by your web server's firewall, apache settings, and ssh config.

  • [SOLVED] Can't get autofs to work with NFS4

    NFS share mounts successfully either from fstab or manual mount, but autofs doesn't seem to be able to handle it.
    My /etc/autofs/auto.master:
    /nfs /etc/autofs/auto.nfs
    /etc/autofs/auto.nfs:
    mountpoint -fstype=nfs4 serv1:/mnt/stor
    And then:
    # systemctl reload autofs
    $ cd /nfs/mountpoint/
    bash: cd: /nfs/mountpoint/: No such file or directory
    Am I doing something wrong with autofs?
    Last edited by nesk (2014-09-15 06:23:44)

    Here they are:
    # automount -d -f -v
    Starting automounter version 5.1.0, master map auto.master
    using kernel protocol version 5.02
    lookup_nss_read_master: reading master files auto.master
    parse_init: parse(sun): init gathered global options: (null)
    lookup_read_master: lookup(file): read entry /nfs
    master_do_mount: mounting /nfs
    automount_path_to_fifo: fifo name /run/autofs.fifo-nfs
    lookup_nss_read_map: reading map file /etc/autofs/auto.nfs
    parse_init: parse(sun): init gathered global options: (null)
    mounted indirect on /nfs with timeout 300, freq 75 seconds
    st_ready: st_ready(): state = 0 path /nfs
    handle_packet: type = 3
    handle_packet_missing_indirect: token 565, name mountpoint, request pid 2124
    attempting to mount entry /nfs/mountpoint
    lookup_mount: lookup(program): looking up mountpoint
    lookup(program): lookup for mountpoint failed
    dev_ioctl_send_fail: token = 565
    failed to mount /nfs/mountpoint
    handle_packet: type = 3
    handle_packet_missing_indirect: token 566, name mountpoint, request pid 2124
    dev_ioctl_send_fail: token = 566
    handle_packet: type = 3
    handle_packet_missing_indirect: token 567, name mountpoint, request pid 2124
    dev_ioctl_send_fail: token = 567
    Those last 3 lines appear every time I try to cd into /nfs/mountpoint/

  • Autofs direct mapping not working

    Hi there,
    I'm currently migrating from Gentoo and hit a problem. I'm trying to use an autofs feature called 'Direct mapping'. It allows one to use map one directory to a specific server. Combined with ghosting, one can use this to do a on demand bind setup. This is useful if the target is not always available (like an encrypted disk that is not active).
    Relevant auto.master snippet:
    /etc/autofs/auto.bind_1 \
    -fstype=auto,--timeout=5 \
    defaults,nodev,noexec,nomand,nosuid,noiversion,\
    noatime,bind
    and the full contents of auto.bind_1:
    /home/gedeeld/secure :/home/secure/gedeeld
    /opt/32bit_chroot/home/secure/ronald :/home/secure/ronald
    Automounter just won't list it:
    [root@Alpha autofs]# automount -f -v
    Starting automounter version 5.0.7, master map auto.master
    using kernel protocol version 5.02
    syntax error in nsswitch config near [ syntax error ]
    mounted indirect on /var/autofs/cifs with timeout 5, freq 2 seconds
    ghosting enabled
    mounted indirect on /var/autofs/dev with timeout 10, freq 3 seconds
    ghosting enabled
    This exact same configuration file used to work with autofs on Gentoo. I'm at deads end why it's not working under Arch. Autofs documentation is sparse, especially with respect to 'Direct mapping'.

    http://bugs.archlinux.org/task/6936

Maybe you are looking for

  • Best way to copy from an External HD to TimeCapsule's internal HD?

    Hi, I have a USB 2.0 connectable external drive (powered) that's full of files I'd like to copy over to my TimeCapsule's internal drive. If I connect the USB to my Mac and copy the files by selecting them all and dragging them to the mounted share on

  • Mini Jack 3.5 mm speakers with an Apple TV?

    I have iHome iP1 speakers but the Apple TV have optical audio. How can I connect it?

  • Standard vs. Admin User

    Am I correct that nobody who owns a Mac runs it under a "Standard" user account? If so, is this what experienced Mac security people do? Or is "Standard" user something the unwashed masses like me DON'T do, but should? The "Standard" user seems locke

  • Server Exception during PPR

    Hi. I use JDeveloper 11g and JHeadstart. I work with ADF BC Technology. I have custom base java classes. After adding new record in table, I receive this message on one of my pages: "0 For more information, please see the server's error log for an en

  • Error when throwing OARowValException in ValidateEntity of EO

    Hei, i have a problem with OARowValException thrown from ValidateEntity. Here is the code:   protected void validateEntity()     super.validateEntity();    if (getTilDato() !=null)        long fraDato = getFraDato().dateValue().getTime();        long