Is there a way to nfs mount a drive from another system with the same names but different uids and gids. I have just installed Edubuntu after previously installing K12ltsp. I used smbldap both times but I chose to make a new database the second time. If I copy the files from the old machine to the new machine the permissions match (showing names) but if I mount with nfs directly from the other machine it only shows numbers (not names) and therefore the user and group ownership doesn't match.
<br><br>Is there a /etc/exports or /etc/fstab option to get around this?<br><br>Krsnendu dasa<br><br><div><span class="gmail_quote">On 10/10/2007, <b class="gmail_sendername">Rob Owens</b> <<a href="mailto:rowens@bio-chemvalve.com">
rowens@bio-chemvalve.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Carl,<br><br>The system assigns ownership based on UID and GID (numbers) and
<br>"translates" that to usernames.  Your user and group ID numbers in<br>/etc/passwd and /etc/group need to be the same on the new system as they<br>were on the old system.<br><br>Alternatively, you can fix your problems by doing a "find" of files
<br>owned by a particular user and change ownership to the proper user.<br>Same thing for groups.  Like this:<br><br>find /home -user wrongusername -exec chown -R rightusername {} \;<br>find /home -group wronggroup -exec chgrp -R rightgroup {} \;
<br><br>Please test this on a small batch of files before letting it loose on<br>your whole system.  Also note that I specified /home as the path.  You<br>may have other folders to search, for instance /mnt/shared_drive or
<br>something.<br><br>-Rob<br><br>Carl Keil wrote:<br>> Hi Folks,<br>><br>> So, the big disaster happened.  My K12LTSP hard drive died.  I've got<br>> everything backed up (thank you BackupPC), so I thought I was golden,
<br>> but I'm having a weird problem.<br>><br>> When I restore files from backup they are showing up "read only" in<br>> people's directories.  When I do a "ls -la /home/username" it is showing
<br>> that the files are owned by other users and other groups.  A "chown -R<br>> username:groupname /home/username" doesn't solve the problem.<br>> I tried copying over all the 500+ /etc/passwd and /etc/shadow info from
<br>> the most recent backup but after that I couldn't even log in as<br>> different users.  Any suggestions for what I should do?  I'd really like<br>> to just set up new user accounts for everyone and then just copy over
<br>> selected files from backup for each user.  This is a family installation<br>> of K12LTSP, so there are only about 10 user accounts.  I used "useradd"<br>> on the new server to create everyone's account and I don't think I did
<br>> them in the same order as the original server.  Should I delete everyone<br>> and re-add them in the exact same order?  I could do that based on<br>> /etc/passwd from the backup?<br>><br>> Thanks a lot,
<br>><br>> ck<br>><br>> _______________________________________________<br>> K12OSN mailing list<br>> <a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/k12osn">
https://www.redhat.com/mailman/listinfo/k12osn</a><br>> For more info see <<a href="http://www.k12os.org">http://www.k12os.org</a>><br><br>_______________________________________________<br>K12OSN mailing list<br>
<a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a><br>For more info see <<a href="http://www.k12os.org">
http://www.k12os.org</a>><br></blockquote></div><br>