NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
dougo
Jul 22, 2011Aspirant
Readynas beta for Lion (AFP fix) hoses Mac
Hi, First, thanks for your quick work addressing the Readynas Lion problems. For some reason, it's not working for me. I've got an NV+. I installed the Readynas beta for Lion to get afp workin...
kraney
Jul 24, 2011Aspirant
I can confirm from taking packet traces that if the UID on the readynas doesn't match the UID on the mac, it changes the behavior of Lion so it doesn't ask for FPAccess.
In order to change my UID on the readynas, I did the following:
1. Log in as root
2. Edit /etc/passwd. (I used vi but if you're not a vi guy you might want to use nano. I think there are instructions for setting up nano somewhere on the forum.)
Look for the line that starts with your account name. That line will have your username, a string of characters (which is your encrypted password,) then your UID and your group ID. Change your UID to a number not in use by any other user in the file. Then save and quit the editor.
3. Now you need to change the ownership of all files belonging to your old UID to your new UID. Use this command (still running as root)
find / -uid <oldid> -exec chown <username> {} \;
that stuff at the end is open curly brace, close curly brace, space, backslash, semicolon, and it's all important so don't leave it out.
The find command may take a very long time to finish its job, depending on how full your disk is.
Example line in /etc/passwd. In this example, the number 502 is the UID that needs to be changed:
And in this example, the find command would need to be:
In order to change my UID on the readynas, I did the following:
1. Log in as root
2. Edit /etc/passwd. (I used vi but if you're not a vi guy you might want to use nano. I think there are instructions for setting up nano somewhere on the forum.)
Look for the line that starts with your account name. That line will have your username, a string of characters (which is your encrypted password,) then your UID and your group ID. Change your UID to a number not in use by any other user in the file. Then save and quit the editor.
3. Now you need to change the ownership of all files belonging to your old UID to your new UID. Use this command (still running as root)
find / -uid <oldid> -exec chown <username> {} \;
that stuff at the end is open curly brace, close curly brace, space, backslash, semicolon, and it's all important so don't leave it out.
The find command may take a very long time to finish its job, depending on how full your disk is.
Example line in /etc/passwd. In this example, the number 502 is the UID that needs to be changed:
badacct:$1$Wasdf$6gga3$jgK3djKwypT/:502:100:somebody@example.com:/c/home/badacct:/bin/bash
And in this example, the find command would need to be:
find / -uid 502 -exec chown badacct {} \;
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!