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;
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
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
add a comment
|
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
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
@user68186 Edited my OP.
– skrat
Sep 7 at 21:34
2
Are you 100% sure that the 'pi' user isgid=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. Insteadgid=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
add a comment
|
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
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
permissions mount ssh hard-drive sftp
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
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
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
@user68186 Edited my OP.
– skrat
Sep 7 at 21:34
2
Are you 100% sure that the 'pi' user isgid=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. Insteadgid=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
add a comment
|
@user68186 Edited my OP.
– skrat
Sep 7 at 21:34
2
Are you 100% sure that the 'pi' user isgid=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. Insteadgid=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
add a comment
|
1 Answer
1
active
oldest
votes
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
add a comment
|
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
add a comment
|
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
add a comment
|
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
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
answered Sep 7 at 22:04
Thomas Ward♦Thomas Ward
52.7k24 gold badges132 silver badges190 bronze badges
52.7k24 gold badges132 silver badges190 bronze badges
add a comment
|
add a comment
|
@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