LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-23-2007, 12:14 PM   #1
atrac
LQ Newbie
 
Registered: Oct 2007
Posts: 10

Rep: Reputation: 0
SCP and Permissions: Please help me with this problem


Hi

I hope some one can help me with this problem.
It may not be a problem for gurus out there but it is for me:

I have 2 servers say 192.168.1.1 and 192.168.1.5 each installed with RH Linux 7.3
There are users and groups inside each server, obviously.
Of course for every user I created, there is a group with the same name eg there is both a user and group with the name "master". Of course every user has his own home directory. I have also created a group in 192.168.1.5 called group01, of which slave is a member.

Both servers also have root users which obviously can do 'anything'

================================================================
192.168.1.1
master - user
drwx------ 24 master master 16384 Oct 12 14:19 master
================================================================
192.168.1.5
slave - user
drwx------ 24 slave slave 16384 Oct 12 14:19 master
user01 - user
drwx------ 24 user01 user01 16384 Oct 12 14:19 master
user02 - user
drwx------ 24 user02 user02 16384 Oct 12 14:19 master
user03 - user
drwx------ 24 user03 user03 16384 Oct 12 14:19 master

group01 - group, slave is a member
================================================================
This is what I want to do:

I have Bash scripts written under the user "master" in 192.168.1.1

User 'master' needs to create unique files and copy it using SSH to the home directories of the users 'user01', 'user02' and 'user03' in the server 192.168.1.5.

'Master' can perform the scp command logging into the other server either as slave or root (though this is often not recommended, I think)

But each user 'user01', 'user02' and 'user03' should not be able to see each other's files, cos the files are confidential.

How will master's script perform the scp command in 192.168.1.1 to be able to copy the files over into each user's directory without each of the 3 users not being able to read each other's files? What algorithm should I use? You are free to create your own groups or users or using chmod, chgrp or anything.

I may be a bit long winded. Please clarify if the above is not clear.
 
Old 10-23-2007, 09:51 PM   #2
atrac
LQ Newbie
 
Registered: Oct 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Problem resolved.
 
  


Reply


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 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 problem ... Please help ! khanrockz Linux - Software 2 06-14-2007 12:18 PM
scp problem juanb Linux - General 11 01-28-2006 05:21 PM
scp with preserving permissions pradi_net Linux - Software 1 06-08-2004 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:36 PM.

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