LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 02-13-2004, 07:08 AM   #1
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 379

Rep: Reputation: 37
Dual boot owner and user problem


I've just installed Mandrake 9.2 on /dev/hda1.
Already had Redhat 9 on /dev/hdc2 with it's home directory on /dev/hde3 pointed to using /etc/fstab.


I want Mandrake 9.2 to use the same /home directory so changed Mandrakes /etc/fstab.

When I start up Mandrake it complains about invalid permissions for /home. As a result i can't log onto any users but can log on as root.

I check the permissions using ls -l on /home it look like -

total 5
drwx------ 27 production alex 2048 Feb 13 12:48 alex
drwx------ 2 root root 1024 Feb 11 23:10 lost+found
drwx------ 16 alex production 1024 Feb 10 15:14 production
drwxr-xr-x 2 root root 1024 Sep 24 15:56 temp


whereas on Redhat 9 it looks like -

total 5
drwx------ 27 alex alex 2048 Feb 13 12:48 alex
drwx------ 2 root root 1024 Feb 11 23:10 lost+found
drwx------ 16 production production 1024 Feb 10 15:14 production
drwxr-xr-x 2 root root 1024 Sep 24 15:56 temp

and loads up OK.

I change the owner and group in Mandrake so the user can log on but when I start Redhat 9 it companins about invalid permissions for /home. As a result I can not log on any users ls -l on /home looks like -

total 5
drwx------ 27 production alex 2048 Feb 13 12:48 alex
drwx------ 2 root root 1024 Feb 11 23:10 lost+found
drwx------ 16 alex production 1024 Feb 10 15:14 production
drwxr-xr-x 2 root root 1024 Sep 24 15:56 temp

Whats's going on and can I fix it so that Mandrake and RedHat can share the same home directory?
 
Old 02-13-2004, 07:39 AM   #2
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Make sure the users on RH and MDK have the same user id number, if the numbers are different, then the users are different even though they have the same name.
 
Old 02-13-2004, 07:56 AM   #3
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 379

Original Poster
Rep: Reputation: 37
Thanks

There is a difference between the UID/GID on the two systems. On Mandake it is for alex 501/501 for production 500/500 whereas on Redhat it is 500/501 and 501/500 respectively.

I've checked /etc/passwd and /etc/group and it seems that it is /etc/passwd I need to change as the gid seems consistent.

Changed /etc/passwd and everything seems to be Ok.


Thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with dual boot/dual drive setup Norab Linux - Hardware 10 08-29-2005 03:13 PM
User login but not the owner ust Linux - Software 1 09-14-2004 12:37 AM
Any software that allows window user to copy files from linux(dual boot sys)? karfei00 Linux - Software 3 06-01-2004 02:28 AM
Linux User Wannabee - Dual Boot (SuSe 9) with XP Question kumarv3 Linux - Distributions 6 01-26-2004 04:43 AM
Group as owner instead of a user dtournas Linux - General 1 09-11-2003 10:13 AM


All times are GMT -5. The time now is 09:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration