NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
user management
1 TopicIssue with old user permissions and NFS
I recently migrated my RN214 to expose NFS shares instead of SMB (no Windows PCs anymore). Turned out that there was a UID collision, user "volker" was auto-assigned UID 100 which I didn't care too much back then. Now, with NFS, UID 100 reflects to systemd-network on my local PC and the system would not let me change attributes, rsync was throwing erros similar to sync: [generator] failed to set permissions on "/media/rn214-Media/somefile": Operation not permitted (1) . So I created a new user "volker" on the RN214 (changing the existing UID was not possible) with UID 1000 which is the same on the local PC after first renaming the existing user volker to "volker_old". This new "volker" can read and write to files owned by "volker_old", copy them around and even delete them, but he can't get ownership of the existing file nor change permissions. Now I have numerous files owned by "volker_old" that I want to transfer to "volker". So I figured running find /data/Media -user volker_old -exec chown volker:users {} \; in a shell on the RN214 would be an elegant solution to this, since find /data/Media -user volker_old returned plenty of hits. However, I get chown: changing ownership of '/data/Media/somefile': Operation not permitted errors, even as admin user belonging to the admin group. sudo does not exist and for su - I don't know the root password - if there is any. Sure, I could just delete all the offending files and copy them over from a backup again, but this is about 5TB of data and will take an eternity. Is there any way to resolve this ownership issue efficiently? Any help highly appreciated.115Views0likes2Comments