Link to home
Start Free TrialLog in
Avatar of dplinnane
dplinnaneFlag for United States of America

asked on

Permissions on directories, copying from one user to another, groups setup

I have a user tjones who has to keep his home directory at chmod 700 because off ppk authentication.

I have a user rmssbxbt    which is has its primary group as sbx
tjones is also has sbx as its group.  

tjones needs to copy files from
/home/tjones/scripts/test.sh
drwxrwxrwx 2 tjones tjones4096 Apr  3 09:21 scripts
to
/11g/rmsapp/rmsbatch/scripts  
drwxr-xr-x 4 rmssbxbt sbx 4096 Mar 19 16:33 scripts

etc/passwd
tjones:x:510:20005::/home/tjones:/bin/bash
rmssbxbt:x:20004:20005::/home/rmssbxbt:/bin/bash

cat /etc/group | grep 20005
sbx:x:20005:

I will not be gien access to root and they will not allow user rmssbxbt to login to winscp and scp files.

Is there anyway around this. Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dplinnane

ASKER

plinnane:x:54323:20005::/home/plinnane:/bin/bash
chmod g+w scripts
drwxrwxr-x 4 rmssbxbt sbx 4096 Mar 19 16:33 scripts

copying from my home directory /home/plinnane

cp test.txt /11g/rmsbatch/scripts/
cp: cannot create regular file `/11g/rmsbatch/scripts/test.txt': Permission denied
Could it be that "/11g/rmsbatch/scripts/test.txt" already exists and you're not allowed to overwrite it?
I solved the problem.
[plinnane@app01 ~]$ id
uid=54323(plinnane) gid=54324(plinnane) groups=54324(plinnane)
newgrp sbx
id
uid=54323(plinnane) gid=20005(sbx) groups=20005(sbx),54324(plinnane)
cp test.txt /11g/rmsbatch/scripts/
ls /11g/rmsbatch/scripts/
bin  src  test.txt
Yes, that's it.

"id" would have been the next option for me to suggest - although you didn't mention a user "plinnane" in your Q.
How should we have known about this one?