How to transfer files to mounted disk with sftp? [closed]My new hard drive won't automount on bootHow to rebuild fstab automaticallyFile Transfer mode in sftpHow to use fsck in Ubuntu?after 16.04 upgrade - will not boot without external drive attachedstoring data on second HDD, mountingRead/Write permission of 2nd hard driveCannot edit files with SFTP

Isn't any conversation with the US president quid-pro-quo?

Engine sync for jet engines; vs prop sync to eliminate beats

Is staccato implied in the bass on this Burgmuller Arabesque?

Showing a point on a plot as a circle rather than a disk

Running code in a different tmux pane

Stack data structure in python 3

How to capitalize letter (using uppercase) that has been assigned to let (or to def)?

Grammar explanation for ~よし

Stalemate situation with all pieces on the board

Did Ohio pass a law granting students the right to give scientifically wrong answers consistent with their religious beliefs?

What other tricks were there to get more data onto floppy disks?

Ran out of space of newly installed HDD?

How can I improve combat so my players don't always use the strategy of collectively focusing fire on one enemy at a time until it's dead?

What should be the waveform for ZX Spectrum tapes?

Can the treble clef be used instead of the bass clef in piano music?

Modified stem cells as a resuscitation serum after death by cyanide poisoning?

Days in indexed month

If a photon truly goes through both slits (at the same time), then why can't we detect it at both slits (at the same time)?

Contradictory parts of D&D Beyond: which is official?

Is "montäglich" commonly used?

Can a UK passport valid for two months travel to Germany post-brexit?

Graph that visualizes subset relations

Why does it not make sense to define addition on points in geometry?

Does toddler keep hands around private parts?



How to transfer files to mounted disk with sftp? [closed]


My new hard drive won't automount on bootHow to rebuild fstab automaticallyFile Transfer mode in sftpHow to use fsck in Ubuntu?after 16.04 upgrade - will not boot without external drive attachedstoring data on second HDD, mountingRead/Write permission of 2nd hard driveCannot edit files with SFTP






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2


















So i mounted an external HDD to /media/data and now I am trying to use th SFTP protocol to transfer files on the external disk.



Yet anything I try ends up with permission denied error:



Connected to 192.168.1.14.
sftp> cd /media/data/
sftp> put Test.txt
Uploading Test.txt to /media/data/Mitja/Test.txt
remote open("/media/data/Test.txt"): Permission denied


Any ideas what can I do?



EDIT:
My mount command /etc/fstab is:



proc /proc proc defaults 0 0
PARTUUID=e20a628d-01 /boot vfat defaults 0 2
PARTUUID=e20a628d-02 / ext4 defaults,noatime 0 1
UUID=A2DE-E78C /media/data auto rw,defaults,gid=33,uid=33,umask=0027 0 1


And for the purpose of testing I am using "pi" user to sftp.










share|improve this question

















closed as off-topic by user68186, karel, Kulfy, Kristopher Ives, cmak.fr Sep 13 at 6:54


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user68186, karel, Kulfy, Kristopher Ives, cmak.fr
If this question can be reworded to fit the rules in the help center, please edit the question.

















  • @user68186 Edited my OP.

    – skrat
    Sep 7 at 21:34






  • 2





    Are you 100% sure that the 'pi' user is gid=33, uid=33? "No permission to access" a location is usually tied specifically to userids and how things're mounted.

    – Thomas Ward
    Sep 7 at 21:43











  • @ThomasWard You are correct, it was not 33. Instead gid=1000, uid=1000. And that actually solves the problem. Can you please post an answer so I can accept it? Thanks!

    – skrat
    Sep 7 at 21:51











  • @skrat are you using Ubuntu or Raspbian?

    – Thomas Ward
    Sep 7 at 22:04






  • 1





    Raspbian Buster Lite

    – skrat
    Sep 7 at 22:11

















2


















So i mounted an external HDD to /media/data and now I am trying to use th SFTP protocol to transfer files on the external disk.



Yet anything I try ends up with permission denied error:



Connected to 192.168.1.14.
sftp> cd /media/data/
sftp> put Test.txt
Uploading Test.txt to /media/data/Mitja/Test.txt
remote open("/media/data/Test.txt"): Permission denied


Any ideas what can I do?



EDIT:
My mount command /etc/fstab is:



proc /proc proc defaults 0 0
PARTUUID=e20a628d-01 /boot vfat defaults 0 2
PARTUUID=e20a628d-02 / ext4 defaults,noatime 0 1
UUID=A2DE-E78C /media/data auto rw,defaults,gid=33,uid=33,umask=0027 0 1


And for the purpose of testing I am using "pi" user to sftp.










share|improve this question

















closed as off-topic by user68186, karel, Kulfy, Kristopher Ives, cmak.fr Sep 13 at 6:54


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user68186, karel, Kulfy, Kristopher Ives, cmak.fr
If this question can be reworded to fit the rules in the help center, please edit the question.

















  • @user68186 Edited my OP.

    – skrat
    Sep 7 at 21:34






  • 2





    Are you 100% sure that the 'pi' user is gid=33, uid=33? "No permission to access" a location is usually tied specifically to userids and how things're mounted.

    – Thomas Ward
    Sep 7 at 21:43











  • @ThomasWard You are correct, it was not 33. Instead gid=1000, uid=1000. And that actually solves the problem. Can you please post an answer so I can accept it? Thanks!

    – skrat
    Sep 7 at 21:51











  • @skrat are you using Ubuntu or Raspbian?

    – Thomas Ward
    Sep 7 at 22:04






  • 1





    Raspbian Buster Lite

    – skrat
    Sep 7 at 22:11













2













2









2








So i mounted an external HDD to /media/data and now I am trying to use th SFTP protocol to transfer files on the external disk.



Yet anything I try ends up with permission denied error:



Connected to 192.168.1.14.
sftp> cd /media/data/
sftp> put Test.txt
Uploading Test.txt to /media/data/Mitja/Test.txt
remote open("/media/data/Test.txt"): Permission denied


Any ideas what can I do?



EDIT:
My mount command /etc/fstab is:



proc /proc proc defaults 0 0
PARTUUID=e20a628d-01 /boot vfat defaults 0 2
PARTUUID=e20a628d-02 / ext4 defaults,noatime 0 1
UUID=A2DE-E78C /media/data auto rw,defaults,gid=33,uid=33,umask=0027 0 1


And for the purpose of testing I am using "pi" user to sftp.










share|improve this question
















So i mounted an external HDD to /media/data and now I am trying to use th SFTP protocol to transfer files on the external disk.



Yet anything I try ends up with permission denied error:



Connected to 192.168.1.14.
sftp> cd /media/data/
sftp> put Test.txt
Uploading Test.txt to /media/data/Mitja/Test.txt
remote open("/media/data/Test.txt"): Permission denied


Any ideas what can I do?



EDIT:
My mount command /etc/fstab is:



proc /proc proc defaults 0 0
PARTUUID=e20a628d-01 /boot vfat defaults 0 2
PARTUUID=e20a628d-02 / ext4 defaults,noatime 0 1
UUID=A2DE-E78C /media/data auto rw,defaults,gid=33,uid=33,umask=0027 0 1


And for the purpose of testing I am using "pi" user to sftp.







permissions mount ssh hard-drive sftp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 7 at 21:33







skrat

















asked Sep 7 at 20:50









skratskrat

1234 bronze badges




1234 bronze badges





closed as off-topic by user68186, karel, Kulfy, Kristopher Ives, cmak.fr Sep 13 at 6:54


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user68186, karel, Kulfy, Kristopher Ives, cmak.fr
If this question can be reworded to fit the rules in the help center, please edit the question.









closed as off-topic by user68186, karel, Kulfy, Kristopher Ives, cmak.fr Sep 13 at 6:54


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user68186, karel, Kulfy, Kristopher Ives, cmak.fr
If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by user68186, karel, Kulfy, Kristopher Ives, cmak.fr Sep 13 at 6:54


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – user68186, karel, Kulfy, Kristopher Ives, cmak.fr
If this question can be reworded to fit the rules in the help center, please edit the question.












  • @user68186 Edited my OP.

    – skrat
    Sep 7 at 21:34






  • 2





    Are you 100% sure that the 'pi' user is gid=33, uid=33? "No permission to access" a location is usually tied specifically to userids and how things're mounted.

    – Thomas Ward
    Sep 7 at 21:43











  • @ThomasWard You are correct, it was not 33. Instead gid=1000, uid=1000. And that actually solves the problem. Can you please post an answer so I can accept it? Thanks!

    – skrat
    Sep 7 at 21:51











  • @skrat are you using Ubuntu or Raspbian?

    – Thomas Ward
    Sep 7 at 22:04






  • 1





    Raspbian Buster Lite

    – skrat
    Sep 7 at 22:11

















  • @user68186 Edited my OP.

    – skrat
    Sep 7 at 21:34






  • 2





    Are you 100% sure that the 'pi' user is gid=33, uid=33? "No permission to access" a location is usually tied specifically to userids and how things're mounted.

    – Thomas Ward
    Sep 7 at 21:43











  • @ThomasWard You are correct, it was not 33. Instead gid=1000, uid=1000. And that actually solves the problem. Can you please post an answer so I can accept it? Thanks!

    – skrat
    Sep 7 at 21:51











  • @skrat are you using Ubuntu or Raspbian?

    – Thomas Ward
    Sep 7 at 22:04






  • 1





    Raspbian Buster Lite

    – skrat
    Sep 7 at 22:11
















@user68186 Edited my OP.

– skrat
Sep 7 at 21:34





@user68186 Edited my OP.

– skrat
Sep 7 at 21:34




2




2





Are you 100% sure that the 'pi' user is gid=33, uid=33? "No permission to access" a location is usually tied specifically to userids and how things're mounted.

– Thomas Ward
Sep 7 at 21:43





Are you 100% sure that the 'pi' user is gid=33, uid=33? "No permission to access" a location is usually tied specifically to userids and how things're mounted.

– Thomas Ward
Sep 7 at 21:43













@ThomasWard You are correct, it was not 33. Instead gid=1000, uid=1000. And that actually solves the problem. Can you please post an answer so I can accept it? Thanks!

– skrat
Sep 7 at 21:51





@ThomasWard You are correct, it was not 33. Instead gid=1000, uid=1000. And that actually solves the problem. Can you please post an answer so I can accept it? Thanks!

– skrat
Sep 7 at 21:51













@skrat are you using Ubuntu or Raspbian?

– Thomas Ward
Sep 7 at 22:04





@skrat are you using Ubuntu or Raspbian?

– Thomas Ward
Sep 7 at 22:04




1




1





Raspbian Buster Lite

– skrat
Sep 7 at 22:11





Raspbian Buster Lite

– skrat
Sep 7 at 22:11










1 Answer
1






active

oldest

votes


















3



















The problem is you are using wrong UID and GID entries.



As you indicated, your user pi is using group ID 1000 and user ID 1000. Update your mount point as follows in your fstab:



UUID=A2DE-E78C /media/data auto rw,defaults,gid=1000,uid=1000,umask=0027 0 1





share|improve this answer

































    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3



















    The problem is you are using wrong UID and GID entries.



    As you indicated, your user pi is using group ID 1000 and user ID 1000. Update your mount point as follows in your fstab:



    UUID=A2DE-E78C /media/data auto rw,defaults,gid=1000,uid=1000,umask=0027 0 1





    share|improve this answer






























      3



















      The problem is you are using wrong UID and GID entries.



      As you indicated, your user pi is using group ID 1000 and user ID 1000. Update your mount point as follows in your fstab:



      UUID=A2DE-E78C /media/data auto rw,defaults,gid=1000,uid=1000,umask=0027 0 1





      share|improve this answer




























        3















        3











        3









        The problem is you are using wrong UID and GID entries.



        As you indicated, your user pi is using group ID 1000 and user ID 1000. Update your mount point as follows in your fstab:



        UUID=A2DE-E78C /media/data auto rw,defaults,gid=1000,uid=1000,umask=0027 0 1





        share|improve this answer














        The problem is you are using wrong UID and GID entries.



        As you indicated, your user pi is using group ID 1000 and user ID 1000. Update your mount point as follows in your fstab:



        UUID=A2DE-E78C /media/data auto rw,defaults,gid=1000,uid=1000,umask=0027 0 1






        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered Sep 7 at 22:04









        Thomas WardThomas Ward

        52.7k24 gold badges132 silver badges190 bronze badges




        52.7k24 gold badges132 silver badges190 bronze badges
















            Popular posts from this blog

            Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

            How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

            Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü