SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot w1nk5's Avatar
    Join Date
    Aug 2009
    Location
    Ontario, Canada
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SFTP Upload with SUDO permissions

    I have a client that only supports SSH connections to their server and has only granted me sudo permissions other than on my users home directory. I can download and browse all files, but I c6an only upload files to my users home directory unless I use sudo.

    I informed my client of these issues and they suggested that I upload the files to my users home directory and then move the files to the proper directory via terminal using sudo. This seems like a nightmare and kind of ridiculous.

    I am currently using PhpStorm, I also have Dreamweaver. I am uploading directly to /var/www and I want to upload using sudo which Phpstorm does not support.

    Are there any IDEs out there that support this?

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,122
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Probably not, but is the location in /var/www a directory? As you could always create a link to your home folder using sudo ln -s /home/folder/ /var/www/foldername so you could then just upload to your home folder and it will be accessible via the link to /var/www

  3. #3
    Foozle Reducer ServerStorm's Avatar
    Join Date
    Feb 2005
    Location
    Burlington, Canada
    Posts
    2,699
    Mentioned
    89 Post(s)
    Tagged
    6 Thread(s)
    Yes like cpradio says an workaround is to use a symbolic link in your home directory to the destination folder.

    Have you explored the possibility that they can 'Jail Root' access into the destination folder so you can have full root access but just in those locations that are allowed by the jail rooting? This may not be neccessary as you may have been granted permissions to change execution bits so even if you had to transfer an executable program via the symbolic link you may not need the jail rooting.

    Of note, jail rooting can be nice as you can umask root permission without needing to assign users to specific groups (other than their default user group).

    Regards,
    Steve
    ictus==""

  4. #4
    SitePoint Addict
    Join Date
    Apr 2009
    Posts
    357
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I've never done it, but if you're on windows winscp may work for you

    http://winscp.net/eng/docs/faq_su
    Doug G
    =====
    "If you ain't the lead dog, the view is always the same - Anon


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •