Results 1 to 4 of 4

Thread: WinSCP permission issues when server PermitRootLogin NO

  1. #1
    Join Date
    Feb 2019
    Location
    Virginia
    Beans
    67
    Distro
    Ubuntu 18.04 Bionic Beaver

    WinSCP permission issues when server PermitRootLogin NO

    I can Login to the Ubuntu server from WinSCP using authentication key, however once logged in permissions do not allow access to all storage folders. I suspect it's because my ssh config file does not permit root login. Is there a way to switch to root user from within WinSCP after log-in? I can't imagine that the recommended usage here is PermitRootLogin Yes? Trying to push files to storage server.

    Linux --> Linux = easy. However, getting old files off older windows NTFS disks, having to figure out the WinSCP

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: WinSCP permission issues when server PermitRootLogin NO

    scp permissions are limited to the permissions in the directory for the userid that is used for the connection. These are normal Unix-style permissions, so you can make them be whatever you want. However, if you override normal permissions for existing directories, then it is likely those changes will lead to being hacked if any normal network service is involved like http or ftp.

    Any Unix permissions tutorial will explain the file & directory permissions model for Linux. umask, chmod, chown are the normal tools to manage permissions.

    If you have used samba/cifs previously, those tools have a different method of dealing with permissions outside the standard Unix model.

    On Ubuntu, permitrootlogin shouldn't be enabled without multiple other conditions like with keys and restricted to specific IPs.

    If you show exact permissions for exact files, someone might have specific guidance. Often, media files need to be readable by a media player program running under a different account, for example. If you want that software to have delete capabilities, then rw on the directory is necessary for the group that the media center userid runs using.

  3. #3
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    1,171
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: WinSCP permission issues when server PermitRootLogin NO

    Instead of opening up Linux for systems that are going away, why not go the other way around?

    Setup Windows to access its shares (HINT: As administrator, you already have full-drive access thru the C$, D$, E$, etc. shares)

    Then use CIFS to mount the Windows share from Linux. You can then transfer the files with all the Linux tools available to you.

    LHammonds

  4. #4
    Join Date
    Feb 2019
    Location
    Virginia
    Beans
    67
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: WinSCP permission issues when server PermitRootLogin NO

    Thanks for the help. I can see now how the two methods can work. I lean to using Linux to pull the data from the windows machine using CIFS and therefore no need to mess with permissions on the Linux side.

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
  •