Thread: Unable to view file after rsync'ed to different computers but using same UID
hi all,
i've been able rsync 1 folder computer computer b through ssh. using super user: jo
problem: in computer a, both users (jo & kk) able vi file; not case in computer b (giving permission denied error);
in computer a, user details:
- jo uid = 1000
- kk uid = 1001
- both included in group kkstaff (gid = 1001)
in computer b, user details:
- jo uid = 1000
- kk uid = 1001
- included in group kkstaff (gid = 1001)
now, in computer have 1 file kkfile, stat:
rsync command use transfer folder:code:-rwxrwx--- 1 kk kkstaff 4 jul 29 19:37 kkfile file: `kkfile' size: 4 blocks: 8 io block: 4096 regular file device: fc02h/64514d inode: 18164547 links: 1 access: (0770/-rwxrwx---) uid: ( 1001/ kk) gid: ( 1001/ kkstaff) access: 2009-07-29 19:37:15.000000000 +1000 modify: 2009-07-29 19:37:11.000000000 +1000 change: 2009-07-29 19:37:11.000000000 +1000
now, in computer b kkfile stat:rsync --owner --inplace --rsync-path='sudo rsync' --delete-during --timeout=0 -zaoh -e 'ssh -2 -i /rsyncprivatekey -p 22' /data1/currentdata/ 192.168.0.3:/data1/currentdata/
do think has rsync rather folder permission itself? did miss here?code:-rwxrwx--- 1 kk kkstaff 4 jul 29 19:37 kkfile file: `kkfile' size: 4 blocks: 8 io block: 4096 regular file device: fc02h/64514d inode: 15597571 links: 1 access: (0770/-rwxrwx---) uid: ( 1001/ kk) gid: ( 1001/ kkstaff) access: 2009-07-29 19:38:45.000000000 +1000 modify: 2009-07-29 19:37:11.000000000 +1000 change: 2009-07-29 19:38:45.000000000 +1000
Forum The Ubuntu Forum Community Ubuntu Specialised Support Security [ubuntu] Unable to view file after rsync'ed to different computers but using same UID
Ubuntu
Comments
Post a Comment