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
ADVERTISEMENT
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
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
View Related
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
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
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
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
Nov 25, 2015
I just installed Debian 8.2 (Jessie). I couldn't find the way to mount the Windows 7 partition, at installation time.
¿Could you tell me how can I mount NTFS partitions in order that they be mounted at boot time and can be accessed (read and write) by any user?
I know, I should edit "/etc/fstab" file. But I don´t know very well how to modify it.
And... ¿Should I create the mount point directory, also?
View 4 Replies
View Related
Mar 14, 2010
I want all my external drives mounted when I start OS.I don't want to do it for a specific external drive. I want my external drives mounted by default.o you have an idea? Does linux have such a configuration I can change?
View 8 Replies
View Related
Jul 12, 2011
Nautilus mounts NTFS partitions when I acces them, and before mounting, it asks for root password. Is there a method to auto-mount ntfs partitions on Debian startup, without requiring root password each time they are automatically mounted ? And without installing additional packages.
View 3 Replies
View Related
Feb 7, 2010
My software RAID setup is as follows.
/dev/md0 (made from sda1 and sdb1) RAID1 /boot partition
/dev/md1 (made from sda2, sdb2, and sdc2) RAID5 / partition
Earlier on I had some trouble with my sda drive, it dropped itself from both arrays, screwing up the mirroring of my two raid partitions participating in the /boot partition. I eventually got everything sorted out and back in sync. (I also have grub installed to MBR on both sda and sdb). Things are working fine regarding that, but since then I've had this issue:
During boot up, I'll get an error message that it could not mount my /boot partition (when fstab is set to either /dev/md0 or the UUID). It claims c9ab814c-47ea-492d-a3be-1eaa88d53477 does not exist!
My fstab:
Code:
[mark@mark-box ~]$ cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Wed Jan 20 16:34:41 2010
[code]....
As far as I know, it isn't neccessary for /boot to be mounted always, correct? Although, as I understand, I need to have it mounted whenever making kernel changes correct?
View 2 Replies
View Related
May 5, 2011
How do I configure my Debian installation to mount external USB drives to mount points based on the volume names of the drives? For instance, if I have a thumb drive with the volume name of "SWORDFISH," how do I have Linux mount it at /media/SWORDFISH? I'm aware that this can be setup in FSTAB, but that requires that I know the UUID of the device beforehand and that I take the time to set each external device up in FSTAB first. That does nothing for me when I have a thumb drive that has never been plugged into my computer before.
This seems to be setup by default in Ubuntu/Kubuntu, but is not working for me with a fresh installation of Debian Squeeze and KDE4. I've spent the past 2 hours Googling for a solution and have turned up nothing. UPDATE: My results are inconsistent. Sometimes Debian mounts devices to mount points based on the volume names, and other times it gives them generic mount points (e.g. /media/usb1).
View 2 Replies
View Related
Mar 6, 2011
I am using Debian 6.0. When I try to mount a drive (USB) in GNOME or using udisks, I end up with following error message:
Code:
And the when executing
Code:
Code:
Seems like it is trying to mount a CD.
But I am able to mount the same using
Code:
I tried the same with different filesystem and getting same message form udisks.
I am able mount other hard disk partition using udisks:
Code:
How to mount drives using udisks. I don't know how I can configure udisks.
View 1 Replies
View Related
Mar 12, 2011
i did try to look for an open post for this, i found other items, but not exactly what i was looking for. i am not that o-fay with linux so you will have to bare with me.
firstly my disto.
Version: 2.30.2
Distributor: Debian
[code]....
View 2 Replies
View Related
Feb 27, 2011
I've just made the switch from Ubuntu to Debian Squeeze and am having trouble connecting external media (be it a USB stick or an ext HD). The error I am getting when I connect anything via usb is the following:
Error mounting: mount exited with exit code 1: helper failed with: mount: wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or helper program, or other error.
View 4 Replies
View Related
Oct 13, 2010
A windows server named SRV is sharing folders for each users in /share/From a Debian computer on network logged with the user session "foo" I can mount the remote directory /share/foo with:smbmount //SRV/share/$LOGNAME /remote_directorythen the prompt ask me for password and when I have gave it the remote directory is mounted correctly.Now I would like to make this at boot time.If I put the same command in the .bashrc, when I boot, the remote directory is not mounted when the session is opened but then if I open a console, it ask me for password and the directory is mounted.This way is not convenient and it would be better if the directory is mounted when the user open his session and using the same password.The point is that every user should have a his own remote directory mounted when the session is opened.
View 2 Replies
View Related
Aug 8, 2011
in debian stable, what is the proper configuration to add in /etc/fstab in order to mount ntfs partitions automatically at boot time, for all users, and every user to have read, write and execute permissions ?
View 2 Replies
View Related
Nov 20, 2010
Running Debian stable. I added the following command to rc.local and made it executable:mount -t cifs -o username=ted,password=computer,uid=mooreted,gid=users "//192.168.1.121/Storage Volume" /mnt/vortexAfter rebooting dmesg throws the following error:
[ 21.400697] CIFS VFS: Error connecting to IPv4 socket. Aborting operation
[ 21.400708] CIFS VFS: cifs_mount failed w/return code = -101
However, if I run the command as root after the system boots it works fine.Been using this method on other distros for over a year. No idea what the problem is.
View 4 Replies
View Related
Feb 25, 2010
I just bought a DLink 323. I have fun_plug installed and ssh enabled, and it works great.I am having trouble mounting the NAS to an actual location (i.e. /mnt/dlink) I've added the following line to /etc/fstab.
View 4 Replies
View Related
Feb 3, 2011
I want to have a secondary hard drive mount at boot, mainly because it happens to be the home drive. But I have to manually mount it after I boot.
Any way to get "places" to mount on startup under 10.10?
View 2 Replies
View Related
Jan 13, 2011
how to set auto mount at startup. I have 3 partition how can i auto mount this partition at startup.
View 7 Replies
View Related
Feb 21, 2011
After reformatting a usb drive with gparted, no usb stick will automount when I plug it in anymore. If the usb is in place at startup, however, it is recognized and mounted.The media will show up in fdisk and disk utility, but there is no link to it in Places > Computer. I have no trouble manually mounting, but I would rather not have to go through the hassle each time I plug in my flash stick. I am running Ubuntu 10.10 64bit
View 1 Replies
View Related
Jun 11, 2010
I am kind of new to linux. How can I make Fedora automatically mount my NTFS partition on boot?
View 7 Replies
View Related
May 18, 2010
Just installed my first ever linux distro in my life and sad that i did not come here before. Anyways i have a WD Green 1TB External HDD. I have Ubuntu 10.04 Lucid Lynx Installed and i want it to mount my HDD as soon as my PC starts up.Quick Q: How much time does it take for any USB device to get recognized on ubuntu. Takes me more than 2 minutes compared to a few seconds on my windows i had before (same machine)
View 9 Replies
View Related
Jun 6, 2010
i would like to have all my ntfs drives mount @ start up here is the command im currently useing sudo mount -t ntfs-3g /dev/sdc1 /media/D -o forcei have made the folders D E F etc now i know that the command for starting restarting and stoping samba changed in 10.04 so did something change with mounting ntfs drives
View 1 Replies
View Related
Jun 17, 2010
how would i mount mapped linux (ntfs drives) when ubuntu starts
View 2 Replies
View Related
Jul 18, 2010
I am running 64bit ubuntu 10.04. I have an nvidia software raid formatted with ntfs. The raid only mounts about every 10-15 boots. It is completely random on when it will mount. I even have included "force" in the ntfs-3g mount options.
Also, possibly related, many times ubuntu will not even load unless I load windows first and then restart. I run Ubuntu on its own partition using ext3, so this makes no sense.... It makes me scared to run a computer with only Ubuntu because it seems Ubuntu cannot load unless window loads before it! I could understand this if Ubuntu was formatted as NTFS, but the only NTFS drive Ubuntu sees is the raid, which is not mounting anyways, so why is it dropping to the command prompt?
View 5 Replies
View Related
Jul 20, 2010
i did it to mount my hd in the startup but id didnt work, so i want to undo it, and if somebody can tell how to make my hd to be mounted since the startup
[Code]...
View 5 Replies
View Related
Nov 8, 2010
I work at a school where we are experimenting with Ubuntu 10.10. On our Windows machines, when the users sign in, their "U:" drive automatically mounts up so that can access their network shared storage. Is there a way to set this up in Linux so it automounts, rather than them have to go and find it out on the network every time?
View 2 Replies
View Related
Dec 28, 2010
I've been trying to unsuccessfully auto-mount my drives when starting up. I've made a script that sets me to the root using "sudo -s" and then mounts the drives. The commands to mount the drives work properly when entered into the command line, but when I try running them from an executable, they don't work. What might I be missing?
View 2 Replies
View Related