Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hello, I am trying to change user id's on my computer so that they match those of another computer (this will enable me to use nfs without conflicts between usernames - and i don't want to use nis). The problem is one user on one computer has the same user id as another user on the other computer I have edited the /etc/passwd file and the /etc/group file to change and match the user id's, then I ran a
chown -R <username> /home/<username>
chgrp -R <username> /home/<username> .
After this, all ownerships and groups seem to be correct, but KDE goes beserk and stops working (stuff on the desktop disappears, applications won't run...).
I'm told that this should change anything with the old UID to the new UID. Kde still refuses to work. Then I heard something about editing the /etc/shadow file to reset the password - this did not work either. Any ideas?
Manually editing of the files /etc/passwd and /etc/group, and then changing ownership should work. I've done it plenty of times. A chown as you did it unfortunately may not get the hidden files. However, the find command, at least on my implemnetation does "find" them. Just for the sake of it you might check the .dotfiles in the /home directory. Might kde keep some database that gets confused, or maybe some socket in /tmp or such that it is trying to use? This is strictly a guess, but that is where I would look next.
I am using Red Hat 9 and you can create a new user and specify their user ID while creating that user name. If you have Gnome installed and running what follows should work when creating a new user. To do that click on the Red Hat Icon, then click on System Settings, then Click on User and Groups and give it the root user password if it asks for it, then click on Add User then click on Specify ID Manually then click on the UID number and change it. If I remember correctly, doing that under Red Hat 8.0 was the same.
I have several copies of Linux and always make sure that I have the same User ID number in each version of Linux. The reason that I do that is that I have one partiton that I use with each version of Linux. Having the same user ID is helpful because when I create a file and later open it with a different version of Linux the file still belongs to me! If I had a different user ID number in that version of Linux I would not be able to open the file.
I think when I tried the find command I got some errors in the /proc/<random 4 numbers> when trying to change ownership and group. I cd'd into those directories and they seemed to be a mirror of almost the whole / directory. What is this?