• 0 Posts
  • 38 Comments
Joined 1 year ago
cake
Cake day: July 4th, 2023

help-circle






  • As far as I understand, the user server is not the user running your web server e.g. www-data, right? Otherwise I would advise against giving him elevated privileges such as sudo rights.

    If the authentication of the user server has sufficiently high level, e.g. a strong password, SSH key authentication, I don’t see a high risk in using the NOPASSWD method. But, as I am no expert, please take this with a grain of salt.


  • The solutions you’ve proposed definitely are more elegant and I’d prefer either of these over my quick and dirty solution.

    The question is: How frequently is this needed? If its on a regular basis, then the workaround using bind or selecting a different storage path are preferable. If it’s needed even more frequently, setting up the Docker SFTP container is an acceptable extra work.


  • You may try

    sshfs server@10.0.0.100:/var/lib/docker/volumes/syncthing_data/_data/folder /home/user/folder/ -o sftp_server="/usr/bin/sudo /usr/lib/openssh/sftp-server"
    

    Please check the correct path to sudo and sftp-server. However, you need to login via ssh and start a sudo session once before running the command. If someone has a solution to work around this, please feel welcome.






  • So it should be the some other components which don’t make Android a ‘real’ Linux according to some definition.

    Personally I agree, that the Linux kernel makes a system a Linux system. However, the choice of a specific C library is important as it ensures some kind of binary compatibility between distributions, i.e. download a generic ‘GNU/Linux’ binary and run it is possible.

    I use Debian btw. ;-)


  • As far as I understand the comment on Wikipedia, Android can be seen as a Linux distribution, but not as a GNU/Linux distribution which we commonly understand as ‘real’ Linux.

    Android is a Linux distribution according to the Linux Foundation, Google’s open-source chief Chris DiBona, and several journalists. Others, such as Google engineer Patrick Brady, say that Android is not Linux in the traditional Unix-like Linux distribution sense; Android does not include the GNU C Library (it uses Bionic as an alternative C library) and some other components typically found in Linux distributions.