Ubuntu :: Automatically Mount Sshfs Upon Startup?
Jun 17, 2010I 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 RepliesI 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 RepliesI 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 RelatedI had to re-install Windows XP because the install was running slow.So, I created another partition using GParted for my personal data and moved my files there and re-installed Windows XP.Now, the Windows partition won't mount automatically.NTFS Configuration Tool shows 0.0GB. So, I have to open up a Terminal window, and issue sudo mount /dev/sda1 /media/Windows and everything is fine.
View 2 Replies View RelatedI was wondering if I can mount my second hard drive (/dev/sda4/) automatically on startup? Now I have to enter my password every time.
View 5 Replies View RelatedMy 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?
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 RelatedI 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.
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.
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 RelatedWe 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).
I am trying to setup fstab to automatically mount my NTFS partitions. I have used various Mount managers to create the entries in fstab. The fstab seems fine, but when mounting at boot or even via Nautilus I get the error message that I do not have permission to mount the disk.
1) Can this permission be set in the fstab file? If so what is the syntax of the fstab entry?
2) If not, is there a tool i.e. GUI to set the mount permissions?
I need a guicance related to mounting USB stick of 2GB capacity. Normally when I insert my USB stick it mount automatically and show me.I want that instead the usb mount automatically I manually mount it. Now there are two steps to do it. First How to stop USB to mount automatically ? Second How to mount it manually ?
View 1 Replies View RelatedHow can I turn off specific authentications? I don't want to have to authenticate every time I mount a different drive (in a different partition). (Because I can't open Mozilla, since it pulls a profile from that partition, without authenticating; and I want to have Mozilla automatically launch on startup, but it can't launch if I need to type my password to gain access to the drive first!).
View 1 Replies View RelatedSince a few weeks my PC have been working slow and the gnome system Monitor says that my cpu is working at 100% all the time. when I ran top command appears:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
770 root 20 0 4060 308 240 R 76 0.0 8:41.05 yes
919 root 20 0 4060 312 240 R 49 0.0 8:23.39 yes
[code]...
I want to auto run
Code:
sudo updatedb at Ubuntu startup. Is this okay: [URL]...
i am succesfully installed TeamSpeak 3 server and now i want to startup it automatically without screen daemon and on every startup on linux ubuntu 9.10 i am using this command for start the TS3 server:./ts3server_linux_amd64 dbplugin=ts3db_mysqlin home/user/Desktop/ts3server_linux_amd64
View 4 Replies View RelatedI've been searching for a solution get mount my NTFS FakeRAID automatically when 9.10 64-bit starts, but haven't managed to find a solution.Currently, after boot, dmraid activates my RAID automatically but does not map the partitions on the drive:
Code:
$ ls /dev/mapper/
control isw_bibdafajea_Vault
[code]...
Recently I have had a run of random errors on boot up. Finally, the quit button, top right of the screen disappeared permanently. I am convinced it is because I added Evolution to the programs that start automatically when I login to Ubuntu (auto login). Evolution uses the Internet connection which hasn't been successfully established by the time it starts. In the past, this would crash Ubuntu. It seemed to be fixed by this stage, but maybe not. Is there some way of delaying the startup of a program in the automatic startup list - to give the rest of everything time to settle in - before it starts trying to use other startup resources?
View 3 Replies View RelatedIs there any way to automatically activate the wifi at system startup without using the keyboard switch? I have tried this script in gedit, saved as .run and added to startup applications but it doesn't work:
dbus-send --system --type=method_call --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.DBus.Properties.Set stringrg.freedesktop.NetworkManager string:WirelessEnabled variant:boolean:true
I am using Vetor Linux and I want to login automatically every system starpup instead ask for user and password. Vector linux is based in slackware and uses shell to ask user and password.
View 1 Replies View RelatedI need to startup a program automatically. What to do? I using kubuntu. In Windows, you go to the startup folder under program files(I think.)
View 1 Replies View Relatedi have a RAMdisk set up on my desktop with a hidden folder of stuff in it; but i want to know is it possible for me to set ubuntu to copy the files to another directory on shutdown, and copy back again on startup?
View 2 Replies View RelatedKind of like Windows allows you to do. Specifically, I'd like to get Thunderbird to startup in the tray each time I log in.
View 3 Replies View RelatedI am writing this second topic to know how I can have hamachi automatically loaded at startup of PC (with fedora 10) without having to manually start. I tried several scripts but nothing works .
View 3 Replies View RelatedSkype works for me, but there is a small thing i like to solve.
For the x64 version i need to start skype with a bash command so that the video and sound works and i thougth that a simple batch in folder bin would solve it.
So that it gets executed automatically once the desktop loads. Seems it doesn't since i still have to do it manually.
How do i execute a batch automatically upon startup under KDE?
I am using gdm to start awesome wm via .xinitrc.I like awesomes usability and gnomes integrity and so far most of the startup programs work fine but i am fighting with ssh-agent. When starting gnome my password protected id_rsa is automatically added to ssh-agent on startup.. i am trying to achive the same with my .xinitrc started awesome wm.My .xinitrc:
/usr/libexec/at-spi-registryd &
/usr/libexec/gdu-notification-daemon &
gnome-screensaver &
[code]....
I was wondering how to run a bash command automatically on startup. on start-up have "alsamixer" or "start-network" executed from terminal.
View 3 Replies View RelatedI added a 1TB USB drive to a Red Hat 5.3 system. I added the following line to the /etc/fstab to automount the drive at startup.If I manually the mount the drive (mount /mnt/external), I can access and read/write to the external USB drive without any issues. My problem is that during the startup process after a reboot, the drive is not being mounted automatically.
View 8 Replies View RelatedI have recently installed denyhosts to help guard against bruteforce ssh attacks on my Fedora 12 server from the Fedora repositories. If I manually start denyhosts (as root) using: /usr/sbin/denyhosts.py --daemon
it works fine. The denyhosts log file is created and indeed the /etc/hosts.deny file is updated. However if I make attempts to start denyhosts automatically upon the server restart denyhost fails with a permission denied error for /etc/hosts.deny (error 13) I have tried using chkconfig to enable /etc/init.d/denyhosts on run levels 3, 4 and 5. I have also tried including the line:
/usr/sbin/denyhosts.py --daemon
in /etc/rc.local Both of these attepts report the same error. anyway to automatically start denyhosts or know why this problem might be happening?
I have a script and I would like it to automatically run whenever the machine starts up. How can I configure it to do that? I am a complete Linux n00b.
View 2 Replies View Related