Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
scp permissions question [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Mon May 10, 2010 1:43 pm    Post subject: scp permissions question [solved] Reply with quote

i secured copied some files from one machine to another and now my user on the recipient machine can only open those files "read only". is there a permission paramter i can pass to my scp command to allow me to use the files fully on the recipient machine?

thank you


Last edited by h2sammo on Mon May 10, 2010 6:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
ShinyDoofy
n00b
n00b


Joined: 22 Jul 2006
Posts: 73

PostPosted: Mon May 10, 2010 5:42 pm    Post subject: Reply with quote

You might want to try to copy those files with "scp -p" to keep original permissions.
Other than that, do the files belong to the user they're supposed to belong to? I.e. is the owner the same user that you try to open your files with? If not, chmod can fix that for you.
Back to top
View user's profile Send private message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Mon May 10, 2010 6:08 pm    Post subject: Reply with quote

its a different user. thank you.
for others wondering,
Code:
scp -pr /home/user/dir/* user@190.0.etc:/home/user/dir
would copy all filed from /dir recursively (including folders) AND keep original permissions.

if (like in my case) you want to copy the files to a different user,
Code:
ls -l /home/user/dir/
would show the file permissions (r: read, w: write, etc).
to solve my probelm i had to
Code:
chmod a+w /home/user/dir/
that gives writing permissions to all users to files in /home/user/dir.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum