Re: [newbie] /home ownership changes itself

2003-03-25 Thread Vahur Lokk

 Have a look at /etc/passwd on both distributions and synchronize
 them - at least for the users. It would seem to me that one
 distribution uses different user numbers for the users; for instance,
 mandrake starts at 500, the other distro might start at 100.
Naah, it started at 501 ;-)
Case closed. Thanks!

Wahur

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] /home ownership changes itself

2003-03-24 Thread Vahur Lokk
Hello!

I have installed Mandrake 9.0. Yesterday I installed ALT Linux Junior (Russian 
Mandrake derivative) on an empty partition. Both installations share one 
/home partition.
Problem is, if I have used ALTLinux and reboot to Mandrake, my home directory 
belongs to another user. If I use Mandrake and reboot to ALT Linux my home 
directory belongs to user 501. In both cases I have to log in as root first, 
change directory ownership and only then log in as user.
What is the problem and how to cure it?

Wahur


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] /home ownership changes itself

2003-03-24 Thread Derek Jennings
On Monday 24 Mar 2003 12:07 pm, Vahur Lokk wrote:
 Hello!

 I have installed Mandrake 9.0. Yesterday I installed ALT Linux Junior
 (Russian Mandrake derivative) on an empty partition. Both installations
 share one /home partition.
 Problem is, if I have used ALTLinux and reboot to Mandrake, my home
 directory belongs to another user. If I use Mandrake and reboot to ALT
 Linux my home directory belongs to user 501. In both cases I have to log in
 as root first, change directory ownership and only then log in as user.
 What is the problem and how to cure it?

 Wahur


When files are saved in Linux the ownership of the file is saved as the UID 
number (User Identification Number) of the user. What you have done is assign 
different UID numbers in each of the two distributions. By default Mandrake 
will assign UID of 501 to the first user, then 502 etc.  Most likely AltLinux 
does the same, but if you assigned users in a different order when you 
installed, you will end up with different UID numbering.

The solution is to use kuser or Linuxconf to reassign the UID numbers (not 
userdrake) and then chown all the files in your /home.

HTH

derek


-- 
--
www.jennings.homelinux.net

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] /home ownership changes itself

2003-03-24 Thread David E. Fox
 change directory ownership and only then log in as user.
 What is the problem and how to cure it?

Have a look at /etc/passwd on both distributions and synchronize
them - at least for the users. It would seem to me that one
distribution uses different user numbers for the users; for instance,
mandrake starts at 500, the other distro might start at 100.

 Wahur


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com