dplinnane
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/scrip ts
drwxr-xr-x 4 rmssbxbt sbx 4096 Mar 19 16:33 scripts
etc/passwd
tjones:x:510:20005::/home/ tjones:/bi n/bash
rmssbxbt:x:20004:20005::/h ome/rmssbx bt:/bin/ba sh
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.
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.
drwxrwxrwx 2 tjones tjones4096 Apr 3 09:21 scripts
to
/11g/rmsapp/rmsbatch/scrip
drwxr-xr-x 4 rmssbxbt sbx 4096 Mar 19 16:33 scripts
etc/passwd
tjones:x:510:20005::/home/
rmssbxbt:x:20004:20005::/h
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Could it be that "/11g/rmsbatch/scripts/tes t.txt" already exists and you're not allowed to overwrite it?
ASKER
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(pl innane)
cp test.txt /11g/rmsbatch/scripts/
ls /11g/rmsbatch/scripts/
bin src test.txt
[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(pl
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?
"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?
ASKER
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/tes