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

dplinnane
dplinnane used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Top Expert 2013
Commented:
Have change rmssbxbt the directory /11g/rmsapp/rmsbatch/scripts to group-writeable:

cd /11g/rmsapp/rmsbatch
chmod g+w scripts

Author

Commented:
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
Most Valuable Expert 2013
Top Expert 2013

Commented:
Could it be that "/11g/rmsbatch/scripts/test.txt" already exists and you're not allowed to overwrite it?

Author

Commented:
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
Most Valuable Expert 2013
Top Expert 2013

Commented:
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?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial