NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
steveT1
Nov 11, 2014Aspirant
UID > 1000
I have been using a ReadyNAS Duo for a while as a backup device and a media server. My main environment is linux and so far the backups and media have been set up from an older Fedora Core 16 laptop. All works fine.
At some point, I was planning on upgrading the FC16 to FC20 (I should have done this ages back to 18, and then onto 20) - and have now been forced down that route.
The problem is that under FC16, user uids of <1000 were ok - so I could marry the main UIDs on the laptop with the UIDs used on the NAS. All the backups that I currently have on the NAS are using those UIDs.
Fedora Core 20 is set to set up 'user' accounts from UID 1000 on. So now my backups no longer 'belong' to the correct user (in effect belong to no current user on the laptop at all). So I then tried to create a new user with UID 1000 on the NAS - but that fails with an 'invalid UID' type message. From googling it seems that UID 1000+ are 'pseudo' users on the NAS used for the backup/media services.
Is there now an 'official' way of allowing users >1000 to be used on the NAS? I can see that I can potentially get into the box and look at /etc/passwd and remove the >1000 users, but I am paranoid about losing may backup box - as I can't now complete the restore of my laptop without the NAS - and I seem to need UID >1000 to do that.
At some point, I was planning on upgrading the FC16 to FC20 (I should have done this ages back to 18, and then onto 20) - and have now been forced down that route.
The problem is that under FC16, user uids of <1000 were ok - so I could marry the main UIDs on the laptop with the UIDs used on the NAS. All the backups that I currently have on the NAS are using those UIDs.
Fedora Core 20 is set to set up 'user' accounts from UID 1000 on. So now my backups no longer 'belong' to the correct user (in effect belong to no current user on the laptop at all). So I then tried to create a new user with UID 1000 on the NAS - but that fails with an 'invalid UID' type message. From googling it seems that UID 1000+ are 'pseudo' users on the NAS used for the backup/media services.
Is there now an 'official' way of allowing users >1000 to be used on the NAS? I can see that I can potentially get into the box and look at /etc/passwd and remove the >1000 users, but I am paranoid about losing may backup box - as I can't now complete the restore of my laptop without the NAS - and I seem to need UID >1000 to do that.
1 Reply
- steveT1AspirantOK - no replies here.
So just to complete the thread:
I tried to contact Netgear via their 'online chat' and managed to 'talk' to one of their team who didn't even seem to be aware of the issue with user ID 1000. So, I re googled the issue and re-looked at what others had done 'unofficially', just to make sure that I hadn't missed anything.
I really only needed UID 1000 to be available on the NAS (but this would have worked for other >1000 UIDs).
1) I installed SSH access to the NAS.
2) Logging in as root with the admin password, I initially took a look at the /etc/passwd file and /etc/group to see what/who had been defined and confirmed that users existed for 'backup' and 'media' - both of which taking up UIDs in the >=1000 range (so really the NAS is out of step with Linux distros, where it now seems that 'system and utility' users are allocated <1000, and normal users >=1000).
3) Checked if 'backup' (UID 1000) had any files on the NAS via find - none found.
4) Using 'usermod', I moved the backup user to UID 1099 from 1000.
5) Again with usermod, I moved 'my' original UID 500 user to UID 1000 and GID 1000.
6) Using chown -R myuser:mygroup I then changed all the ownerships of the files (which were now orphaned to the non-existant UID 500 and wrong group) in both the main backup, home and media folders.
That enables me to now use UIDs >=1000 on FC20, and be able to keep the NAS UIDs in sync.
Early days, as I obviously haven't fully restored from the NAS and backed up to it again, but on first looks and after one successful restore, it looks ok (I did try connecting from DLNA devices to the 'media' music share, and that seemed to work as well). I never used the 'backup' button on the NAS, so at this point I'm not certain that moving the backup user hasn't created any issues elsewhere.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!