Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Copying the file broken?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3642

PostPosted: Fri Jul 05, 2024 2:11 am    Post subject: Copying the file broken? Reply with quote

Hi, ALL,
Have a weird question.

Since my laptop doesn't have a network right now, I tried to pull my code in one of my other laptops (KDE and wired interface)

So I execute "git pull" and brought the updated code in.

Then I attached mu USB external hard drive, mounted it and copy the code as root over to that drive.

I then verified that the code is there, by unmounting the drive and mounting it again.

Then I unmounted the drive and attached the drive to the laptop in question.

Again drive was mounted and the files were copied.

However, when I tried to do the "ls -la" the files were not changed and the user/group on them were still showing as a regular user and not root.

The KDE laptop is very old and was not updated for a while.

Does anyone experienced that before?

Also - I hope this is the right forum for that kind of stuff...

Thank you.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9741
Location: almost Mile High in the USA

PostPosted: Sun Jul 14, 2024 10:02 pm    Post subject: Reply with quote

Not sure if I understand correctly but removable storage with automount with udisks, will honor permissions for the person who's occupying the console seat for disks that don't have user permissions (fat/vfat, etc.) I suppose this is due to console attack principle, if the person has physical control of the media, there's no reason to bother honoring root permissions - they already effectively have it.

I recall some extfs disks however maintaining user permissions so this isn't true for all fs.

Encryption is a different matter.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22304

PostPosted: Sun Jul 14, 2024 11:17 pm    Post subject: Reply with quote

What options were used for copying the file to the destination system? Did cp/rsync (as appropriate) display any errors? My guess from the description (and lack of program output) is that the new copy ended up somewhere other than expected, leaving the existing files untouched.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3642

PostPosted: Wed Jul 17, 2024 3:38 pm    Post subject: Reply with quote

Hu,
I unounted the automatic one and use the following command:

Code:

mount -o rw /mnt/sdb1 /mnt/usb


and then copied to /mnt/usb and from that place on both machines.

I just wish I can have the internet access on the target machine (where the code is going)...

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum