Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 10-23-2007, 07:34 PM   #1
LQ Newbie
Registered: Oct 2007
Posts: 10

Rep: Reputation: 0
SCP and permissions


Please help me with this problem. It concerns using Secure Shell SCP and user permissions.

I have 2 servers say and, each installed with RedHat Linux 7.3

These are the users and group created in each server.
Of course, for every user I created, there is a group created with the same name. The only group explicitly created is group5_1, which has one member, user5_admin.
Each user has its own home directory.
A directory, say invoices, is created in each home directory.

In, user1_admin runs scripts automatically, creates unique files and sends it through SCP to each of 3 users in user5_1, user5_2, user5_3's invoice directories.
Each of these users cannot read each other's directories. But user5_admin can.

So it may be a good idea to go to these users' invoice directories and make a chgrp group5_1 <directory>, so that user5_admin and the owners can see the files.

The question is when user1_admin copies the files, which user does he use to perform the scp? How do I change the permissions from using a remote command in SSH? I cannot run any scripts inside as it is solely used as a repository.
user1_admin (User)
user5_1 (User)
user5_2 (User)
user5_3 (User)
user5_admin (User)
group5_1 (Group) : user5_admin is a member

Let me know if the above is still not clear.
Old 10-23-2007, 07:38 PM   #2
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-29-2008 12:41 AM
SCP and Permissions: Please help me with this problem atrac Linux - Newbie 1 10-23-2007 09:51 PM
scp from a linux behaving strange and fubar'ing permissions on destination bsd system rg.viza Linux - Security 3 07-07-2007 04:00 PM
SCP how to the_rhino Linux - Newbie 5 02-11-2005 08:50 PM
scp with preserving permissions pradi_net Linux - Software 1 06-08-2004 09:00 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration