LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2010, 03:48 AM   #1
maxmil
LQ Newbie
 
Registered: Feb 2006
Posts: 21

Rep: Reputation: 15
Mount sshfs as root using sudo


I would like to mount a sshfs using fstab.

My user does not have permissions to access the mount point on the remote machine but does have sudo privileges on the machine.

Using ssh i can connect to the mount point on the remote machine using

Code:
ssh myuser@remotemachine:/remote/mount/point -t sudo -i
However i haven't found the way to convert this to an sshfs mount.

Is this possible?
 
Old 01-04-2010, 11:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
http://www.debuntu.org/2006/04/27/39...-form-etcfstab
 
0 members found this post helpful.
Old 01-05-2010, 04:43 AM   #3
maxmil
LQ Newbie
 
Registered: Feb 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks for your reply but following these instructions i will not be initiating a session with root privileges which is what i need.

With ssh you can include a command that executes as soon as the connection is established (sudo -i in my case).

What i'm looking for is a way to do this when mounting a sshfs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Gedit won't save to SSHFS mount, cured LXer Syndicated Linux News 0 05-20-2009 01:12 AM
sshfs mount testing Murdock1979 Linux - Software 5 05-14-2009 09:18 AM
Permission denied error when trying to mount image contained in sshfs mount openSauce Linux - General 2 03-08-2009 09:50 AM
nome/nautilus doesn't allow sshfs mount sarhang Linux - General 1 07-01-2008 08:04 AM
Gnome/nautilus doesn't allow sshfs mount sarhang Linux - Enterprise 1 07-01-2008 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration