Ubuntu Networking :: Mount Sshfs After Network Initialization?

Apr 8, 2011

I've got a non-vital sshfs filesystem in my fstab (by non-vital I mean just files that I access on-demand).However, the fstab file seems to get read and things try to mount before the network has been brought up. I recently switched to Kubuntu 10.10 from Arch, and Arch didn't display this behaviour.I'm wondering if it's possible to make it mount the sshfs filesystem AFTER the network has been brought up?

View 2 Replies


ADVERTISEMENT

Debian :: Mount Sshfs At Startup - Get Mount For UserA To Happen On Boot

Mar 18, 2011

I am struggling with getting an sshfs mount mounted on system boot. I have a script that mounts the sshfs for "userA". When userA runs the script all is well - user A can access the remote filesystem, root user can't see it as expected. The basic command is: sshfs userA@remote host:/home/userA /home/userA/mountdir -p 21212 -o password_stdin < passwordfile. I can prepend the sshfs command in the script with su - userA -c and when I run this script logged in as root all is well, userA has access and all is well. If I then put this script in /etc/init.d and reference it properly in the rc. directories the mount doesn't happen. If I prepend the sshfs command with sudo, same thing. Logged in as root I can run the script and UserA has access. Run the script in /etc/init.d during startup and the mount doesn't happen. Echoing text to a log file shows that the script is being executed but no mount happens.

View 4 Replies View Related

Ubuntu :: Automatically Mount Sshfs Upon Startup?

Jun 17, 2010

I use this command to mount sshfs:sshfs -o idmap=user user@ip:/home/user/public_html ~/FolderThen I enter my password. I do this every time I start my computer

View 3 Replies View Related

Ubuntu :: Bash Script That Uses Sshfs To Remotely Mount A SSH Directory?

Apr 23, 2010

I have a bash script that uses sshfs to remotely mount an SSH directory.

Where should i place this script so it mounts with route privileges?

One consideration is i use VPN so the directory needs to be mounted after openvpn is started.

View 3 Replies View Related

Ubuntu :: SSHFS Setup On Desktop To Mount HDD (Write Permissions)

Oct 17, 2010

I'm trying to set up sshfs on a desktop/fileserver so that I can mount its HDD's I use for storage on my laptops. My issue seems to be getting permission to write to the mounted drives. I just keep getting permission denied. here is what I think are some relevant tidbits.
mount point on server,

Code:
joe@joe-desktop:~$ ls -ld ~/sda2
drwxr-xr-x 2 root root 16384 1969-12-31 19:00 /home/joe/sda2

HDD I'm trying to mount
Code:
joe@joe-desktop:~$ ls -ld /dev/sda2
brwxrwxrwx 1 joe disk 8, 2 2010-10-17 15:22 /dev/sda2

Mount point on client
Code:
joe@joe-laptop:~$ ls -ld ~/sda2
drwxrwxrwx 2 joe joe 4096 2010-10-17 19:58 /home/joe/sda2

This is the command I'm trying to use to mount
Code:
sshfs joe@192.168.1.103:/home/joe/sda2 ~/sda2

I can chmod the mount on the server to 777 but as soon as I mount the HDD to the server all write permission just goes *poof* and its back to "drwxr-xr-x".Chown seems either, it just wont stick.

View 8 Replies View Related

Ubuntu Security :: Adding User With Access To Mount Point Over SSHFS Only

Sep 2, 2010

I'd like to add a user to my server that will only have access to a mount point over sshfs. Is there any way I can provide them this access without actually giving them permission to open a terminal on my server? I tried /bin/false and /sbin/nologin already, but /bin/false didn't allow the mount point to be made and /sbin/nologin prevented a login completely (also stopped the mount point from working).

View 6 Replies View Related

Software :: Limit Mount Points Of SSHFS To Just User's Home Directory

Apr 21, 2010

We recently had a serious loss of data because of SSHFS mounting. A user in our group mounted the entire home directory of our server (/home). This was so they could easily move between user folders to read/write data from other people involved in the same project. They then deleted several folders that were not in there home directory.

Now I know this is a bad idea and that there should be a dedicated "projects" folder where everyone collaborates and does their stuff. Such a folder/system exits but I can't make them use it. My question: Is there anyway to configure SSHFS such that the only thing the user's can mount is their home directory? Obviously this won't fix the problem since they can sym-link to other folders but I've got to start somewhere. Perhaps there's a better solution (one that doesn't involve me nagging users about proper form).

View 4 Replies View Related

Debian Installation :: Failed In Network Initialization

Jan 20, 2010

I'm trying to install Debian 5.03 from the netinstall on a usb flash disk. When it gets to the network initialization step, it fails and cannot get an IP from DHCP. Manual configuration does not work either. Out of desperation I installed windows to see if the network device was broken (this is a new motherboard), however it works fine without drivers even. Invoking lspci shows that it is a Realtek RTL8111/8168B PCI Express Gigabit Etherent Controller (revision ff)

View 4 Replies View Related

Ubuntu :: Unison Not Working - Uncaught Exception Gtk.Error("GtkMain.init: Initialization Failed Ml_gtk_init: Initialization Failed")

Jul 30, 2010

So I installed the Unison synch software with sudo apt-get install unison-gtk. When I set up the two directories for synchronization it looks like this: $ unison ssh:\SERVER\pathpath /var/www/path/path/path

I am getting this error in terminal Uncaught exception Gtk.Error("GtkMain.init: initialization failed ml_gtk_init: initialization failed") Fatal error: exception Util.Fatal("Error in getLogch: /home/path/.unison/unison.log: No such file or directory"

View 1 Replies View Related

OpenSUSE Network :: Error In Repo Initialization While Running Online Updates

Mar 18, 2011

Earlier I have no problems when I install opensuse. After installation the network runs and I can run online updating in yast for the system. But since a few version it doesn't work after installation and I don't know why. I think maybe the errors could happen because I have no
internet connection. Today I install 11.4 and get this message when I want to run online updates in yast.

There is an error in the repository initialization
'repo-update' [URL]
[repo-update URL]
Repository is not cached
I think this problem stars with 11.1 or 11.2.

View 5 Replies View Related

Ubuntu Networking :: SSH Port Forwarding With X11 And SSHFS?

Nov 2, 2010

I've used wake on lan and SSH on the local network for some time now. I also used SSH to mount a filesystem (SSHFS / sftp, same thing, right?) and I could forward X11, loved it. I used both these options for my convenience. So I decided it was time to open up some ports on my router (Linksys WRT320n running dd-wrt) and try to set up a remote connection. This actually worked after some time, so I'm now able to turn on my home computer from the Internet (school in my case) and then log in to it through SSH. I set this up using other ports then the default ports. Something like this (these are not the actual ports I use, just examples):

port 2112 -> port 9 (for wol, wake on lan)
port 2113 -> port 22 (for SSH)

This information might be useful: I set this up using public and private keys. This is necessary for SSHFS to work properly I think and it also makes it more secure. And then I found (and had some presumptions that this was going to happen) that both SSHFS and X11 were not working. I'd rather not open up more ports on the router for security's sake though, so I'm asking for other solutions. And if there really aren't any other solutions then which ports to forward. And if forwarding is really necessarily then how to make the client use port 2114 for SSHFS and 2115 for X11 so I can forward those ports to the default ports.

View 3 Replies View Related

Networking :: Is There Any Alternative To SSHFS

Oct 13, 2010

I know that SSHFS is the way to mount the file and directory on remote server. It has many advantages such as security, convenience, fast and so on. I wonder if there is disadvantage of SSHFS and the alternative to it? I am looking forward to your reply.

View 2 Replies View Related

Ubuntu Networking :: SSHFS Crossover Cable Connection 10x Slower In 10.04

May 2, 2010

I have a desktop running Ubuntu 8.04. I installed 10.04 on my laptop. When I mount my desktop music folder on my laptop and transfer files, they now only go at 100-200 KB/s. When I had 9.10 installed, they transferred at 1-2 MB/s.

This is the command I use to mount the directory:
sshfs matt@169.254.6.233:/home/matt/Music/ /home/matt/Music/desktop/
Is there any way I can speed it up to get it back to max speed?

View 1 Replies View Related

Networking :: Limiting Sshfs Access To Specific Directory / Tunneling Nfs Over Ssh

Jan 22, 2010

I have a server with a /data/ directory, everything in the /data/ folder has "-rwxrw-rw- 1 root root" permissions.all works fine, multiple users are mounting this over a lan and everyone is able to modify files. However I would like to be able to access the /data/music/ directory from the internet.

Is it possible to configure sshfs to only accept logins from a user restricted to reading the /data/music directory, or would it be possible to tunnel nfs over ssh in such a way that everyone on the lan 192.168.0.xxx has unrestricted access to the data directory, but something coming from outside only has read access to the music directory. Although is one were tunneling nfs over ssh, the nfs mount request would appear to come from the server itself. The router is at 192.168.0.1 and the server is at 192.168.0.3.This Seems very much like what I want to do, however I'm having a bit of trouble getting this to work well with other users mounting with full rights over the lan too.

View 5 Replies View Related

Networking :: Eth0 : Delaying Initialization E1000e?

May 14, 2009

I am struggling to install RHEL 5 in one Hp Compaq dc7900 machine. My network is not coming up with a message e1000e device eth0 does not seem to be present. lspci givens following message

00:19.0 Ethernet controller: Intel Corporation Unknown device 10de (rev 02)
Subsystem: Hewlett-Packard Company Unknown device 3035
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-

[code]....

I could see /etc/modprobe.conf has a line "alias etho e1000e" present. In fact another machine dc7900, installed with Fedora Core 10, detects the card with e1000e as the module.

[code]...

View 2 Replies View Related

Networking :: Device Eth0 Does Not Seem To Be Present - Delaying Initialization?

Jun 17, 2009

I have swapped out four known working, different bran network cards. Each one I get the same error as in the subject. If I boot to a Live CD such as CentOs 5.3 LiveCD both Nics are given an IP. This seems to only be happening with my CentOs 5.3 server install.I noticed the CentOS Live CD the Nics were reversed from eth0 to eth1 and eth1 to eth0.

At the moment as of the output of the commands, I am running two identical Nics, since the first one has always worked. I have previously used an rtl8139, 3com c3905-TX, onboard Rhine III based (now disabled) Here are steps I have done to try and figure this out:

Quote:

[root@centos ~]# lspci | grep -i eth
00:0a.0 Ethernet controller: VIA Technologies, Inc. VT6105/VT6106S [Rhine-III] (rev 86)
00:0e.0 Ethernet controller: VIA Technologies, Inc. VT6105/VT6106S [Rhine-III] (rev 86)

Quote:

[root@centos ~]# cat /var/log/dmesg | grep -i eth
eth0: VIA Rhine III at 0xee800000, 00:1b:11:bb:17:7d, IRQ 177.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1.

[code]....

I went through the system-config-network-tui. I copied /etc/sysconfig/network-scripts/ifcfg-eth1 to the ifcfg-eth0 and edited for sanity. and as stated earlier, have swapped out four different nics for eth0, and booted to two different LiveCD's. Both LiveCD's work fine.

View 3 Replies View Related

CentOS 5 Networking :: Eth1 Does Not Seem To Be Present,delaying Initialization?

Sep 24, 2009

I have added a new network card on my Cent OS machine. This is a RTL-8139/8139C/8139C+ card. When the machine boots or I start the network it displays "eth1 does not seem to be present,delaying initialization."I have gone through different posts on the forum with similar problems and have posted output of some of the commandsOutput of lspci is

00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10)

[code]....

View 8 Replies View Related

CentOS 5 Networking :: Bcm43xx Device Eth1 Does Not Seem To Be Present - Delaying Initialization

Mar 15, 2009

Ethernet card works, but Wireless card activation fails at bootup time. It also fails if I try it again from the Network Configuration UI.

I have provided some output I got from initial exploration.

I upgraded to a recent version of the 2.6 kernel.

uname -a: Linux localhost.localdomain 2.6.28.7 #1 SMP Sat Mar 14 19:04:11 PDT 2009 i686 i686 i386 GNU/Linux

I have installed the correct firmware hopefully.

cd /lib/firmware ls

Output is:

I do have the bcm* files for firmware.

output of lspci is:

Last two lines show the that Wireless card BCM4312 is visible.

View 5 Replies View Related

Ubuntu Networking :: Can't Mount Network Location

Sep 27, 2010

I added this line to the fstab file:

Code:
//SERVER/dfs/users/USER /media/USER cifs uid=1000,gid=1000,username=USER,password=PASSWORD 0 0
and when I try to run

[Code].....

The line worked fine on Ubuntu 10.04 but is causing this error on 10.10

View 3 Replies View Related

Ubuntu Networking :: Cannot Mount Windows Network Shares

Feb 13, 2010

I am trying to share files on my Windows XP Home machine over my P2P network to my Ubuntu netbook. The folder I wish to share is configured in Windows with public permissions. I go to the Files & Folders > Documents and then I click on Network in the Places tab. A Windows Network icon appears, but when I double click it I receive the error message, "Unable to mount location. Failed to retrieve share list from server."

View 2 Replies View Related

Ubuntu Networking :: Unable To Mount Network Drive On 10.04

Nov 9, 2010

I'm unable to mount a network drive on my ubuntu 10.04.

View 2 Replies View Related

Ubuntu Networking :: How To Mount A Network Drive On Bootup

Apr 5, 2011

My laptop is connected to my network through wifi. One of my desktops is always running as a file server for the rest of the network. Currently, to access that file server, I have to manually mount the network drive each time I boot the laptop. I have tried adding a line to fstab to have the drive mounted when the system first boots up, but since the wireless connection isn't active yet, the system hangs with an error message saying that the drive was not able to mount correctly and I have to press a key to continue.

is there any way to have the system automatically mount the network drive AFTER the network connection has become available AND, if for some reason the drive is not able to mount (i.e. I'm on the road and the laptop logs into a different network), it simply bypasses that and continues booting without displaying an error?

View 2 Replies View Related

Ubuntu Networking :: Mount A Network Drive On Bootup?

Aug 18, 2011

My laptop is connected to my network through wifi. One of my desktops is always running as a file server for the rest of the network. Currently, to access that file server, I have to manually mount the network drive each time I boot the laptop. I have tried adding a line to fstab to have the drive mounted when the system first boots up, but since the wireless connection isn't active yet, the system hangs with an error message saying that the drive was not able to mount correctly and I have to press a key to continue.

My question is this: is there any way to have the system automatically mount the network drive AFTER the network connection has become available AND, if for some reason the drive is not able to mount (i.e. I'm on the road and the laptop logs into a different network), it simply bypasses that and continues booting without displaying an error?

View 8 Replies View Related

Ubuntu Networking :: Mount Network Drive Automatically ONLY When Present?

Jun 10, 2011

I have a network drive connect to my lan with iomega's iconnect device. I am getting tired of mounting the drive manually each time I want to use it. I would like therefore to have it mounted automatically on boot by placing a line in fstab, but since the computer (a laptop) won't always be connected to my home lan, this might cause problems. Is there a way to list the drive in fstab so if the drive is not present it will just move on?

View 8 Replies View Related

Networking :: Cannot Mount Network Drive In Mandriva

Oct 28, 2009

I recently bought a Freecom 500GB network drive for backup and sharing files on my home network.I can access it via wireless on my Vista laptop and read/write to it with Dolphin and Krusader in Mandriva. I can also use the sync function in Krusader but it is so slooooow! Therefore I want to use Grsync but for that the drive needs to be mounted, that is where the problem lies!

View 8 Replies View Related

Networking :: Mount Network Drive Script?

Jul 26, 2011

would anyone advise on how to properly mount a samba share using a script which i'd run whenever i wanted to map it? I was trying to write one but with no joy...I tried having read many pages about mount / smbmount / mount.cisf / fstab etc. but I didn't achieve what I need and now I'm totally cofused... My goal is to have a script file, like a .bat, which i would use as myself to map a share to a directory. I would like to be able to mount it as non-root and umount as non-root as well. The level of access should be rw so i could copy and delete files.

View 1 Replies View Related

Ubuntu Networking :: Can't Seem To Mount The External Drives Attached To Either Machine Over The Network

Jun 4, 2010

I have two machines, a laptop and a desktop, both running Lucid. each works fine, but... I can't seem to mount the external drives attached to either machine over the network. I can share folders from the internal drives fine but when I try to access an external drive from either machine I get "unable to Mount volume". Is it possible to mount the external drives across the network? If so, How?

View 1 Replies View Related

Ubuntu Networking :: NFS Doesn't Mount Correctly - Network Manager And Upstart

Sep 25, 2010

I have the following problem: There are three NFS mounts in /etc/fstab, which are automatically mounted. The network connection runs over NetworkManager. Since NWM brings up the network asynchronously, NFS doesn't mount correctly on the first try, but is loaded soon enough since mount automatically retries until it works.

I can live with the fact that I have an error in my boot messages, since everything is up in time for the user. But, I need a (selfmade) upstart script which depends on the NFS mount being up. Even using "remote-filesystems" as the trigger doesn't help, because the trigger is apparently sent after the first failed try (I checked with cat /proc/mounts in my script, the nfs mounts are clearly not up.) Can I somehow force the remote mounts to wait until NWM is up, or make the NFS mount emit an event when the mounts really get mounted?

View 6 Replies View Related

Ubuntu Networking :: How To Share/Mount Hard Drives Over A Local Area Network

Mar 19, 2011

I have a computer, the one I am on now, with Ubuntu 10.10, it should be completely updated... and I can network with other computers, I can access Windows XP and 7 shared locations on other computers, and I can also get Ubuntu on other computers to access this computer's shared files.What I can't do, however, is share my hardrives that are on this computer, I have tried sharing them in /media/ and etc, but it is not working, apparently you have to mount them in some mystical way.

Another problem is getting Windows machines to access Ubuntu computers on the network - which I believe is a Windows problem, so I can figure that out some other time, but importantly, I want to be able to share my hardrives over the network.

If someone can give me some instructions to mounting and sharing hardrives(internal), and even my DVD-Drives, and portable USB devices, would also be fantastic - since, in Windows you can just right click, "share", and it's done.. It is a very useful thing to have, and I don't want to use Windows on this computer anymore, but I have no choice, really, if I can't share my storage to the other computers.

View 4 Replies View Related

Networking :: Samba Update - Cannot Mount Network Shares Using Script

May 13, 2010

I've, for years, been using a little script, as user, to mount network shares, like this:
mount.cifs //server/Data ~/Data -o username=robertw
Previously it used to be smbmount, but that changed. Anyway, the latest updates have stopped me be able to run this as a user. I tried running it as root and that just won't let me get access to the shares, tells me permission denied. I thought I'd try using fstab. This gives varying degrees of success.

Here are two of the entries:
//server/CAD /mnt/CAD cifs credentials=/etc/samba/auth.server.robertw 0 0
//server/Data /mnt/Data cifs credentials=/etc/samba/auth.server.robertw 0 0
The auth.server.robertw clearly shows my correct username and password.

Now, I can't get into the /mnt/Data directory at all, just says permission denied and I can only read from, but not write to, the /mnt/CAD directory. My /mnt directory is like this.
drwxr-xr-x 20 500 505 0 2010-05-11 06:21 CAD/
drwxr-x--x 170 500 501 0 2010-04-09 23:18 Data/
I'm on Mandriva 2010 if that's important.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved