LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-28-2004, 10:30 PM   #1
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
make multiple distros "see" the same user


hi,
i have a home partition that is (goinf) to be shared among multiple distros (mdk, slk). while in mdk, i create user rgiggs. now, when i get into slk, i want to create a user with the same name and owns /home/rgiggs. basically, i want to use "rgiggs" with both distros. how can i do it?
thanks.
 
Old 06-28-2004, 10:44 PM   #2
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
It should do it easily. When you do adduser, it may ask when it comes to making /home/rgiggs if this is correct since it already exists. Just say yes. Be warned however that what you are going to do is a bad idea. mdk uses special icons that are not available in slack. So there is going to be conflicts.
 
Old 06-28-2004, 11:43 PM   #3
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Icons? What? Conflicts from using different icons... ?

Ring, it's a just a tad more complicated than that, and the icons have nothing to do with it.

rgiggs -- first of all, realize that when creating a user that's going to be sharing the same home, settings and priveleges, it is not the username that is important -- it's the user ID #.

Slack defaults to user 1000 + for UID numbers. Some distros use 500+.
My first user created in slack is user #1000.

Go ahead and create the user in the newer distro. Then look at /etc/passwd in the existing distro and identify your user's name and ID #. Example as follows.

Code:
mike:x:1000:100:Mike Shade,,,:/home/mike:/bin/bash
mike is my user name, and 1000 is the user ID number -- the first user I created in Slack.

Once you create your user in the second distro, open up /etc/passwd and change the ID number to whatever it was in the pre-existing distro. The UID number has to match between distros to actually have the same owner and be usable between the two.

If you're still getting trouble sharing the same home, it may take a
chown -R username
to get it all working.
But once you've got the user id changed to the same in both distros, it should be all gravy.

--Shade

Last edited by Shade; 06-28-2004 at 11:45 PM.
 
Old 06-29-2004, 01:16 PM   #4
alhobbel
LQ Newbie
 
Registered: Mar 2004
Location: The Netherlands
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
You could also just symlink the relevant files from one distro ('/etc/passwd' etc) to the other distro's files, then, when you add a user later on one distro, you can use that account on the other distro too.
 
Old 06-29-2004, 01:56 PM   #5
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Make sure you mount the other partition as /home on both distros.

There could be icon problems. If you use a GUI and the path and icon are different on the distros it won't show up on the other one. For example, they're stored for KDE in a session file in /home/username/.kde

Some distros look for different files in different paths which could create a conflict in a ~/.config_file. I personally don't know how similar Mandrake and Suse do this.

I would create a user in one distro and use its /etc/password /etc/shadow as an example to configure those respective users in the second distro.
 
Old 06-29-2004, 02:47 PM   #6
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
hi,
so i used "adduser," entered same name, entered usedid that is recognized by mdk, don't change the path /home/rgiggs, chown /home/rgiggs.
so far, everything seems to work ok.
thanks.
 
Old 06-29-2004, 04:21 PM   #7
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Rep: Reputation: 30
Not a very good idea to do.. I tried that once and everything got screwed up.. Had to delete .kde every time i switched distros.. Example i restarted in gentoo delete .kde redo all settings reboot to debian same thing.. But if its working i guess it cant hurt..
 
Old 06-30-2004, 01:00 AM   #8
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
hi,
i also considered possible conflicts, but i thought they should be few because mdk10 and slk10 are released close to each other. the packages shouldn't change that much. so far, it's been smooth.
 
Old 06-30-2004, 01:20 AM   #9
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
Quote:
Originally posted by rgiggs
hi,
i also considered possible conflicts, but i thought they should be few because mdk10 and slk10 are released close to each other. the packages shouldn't change that much. so far, it's been smooth.
Just because they aren't release too far apart doesn't mean they couldn't have completely different structures. I think you'd spend more time trying to iron it out than it's worth. Why not just have a partition to store things like your documents, and then have the user settings be independant?
 
Old 06-30-2004, 01:35 AM   #10
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
hi,
i think it's a good idea, too. and that's what i'll do if i see any conflicts. but the reason i installed slack is because i really want to use it. and the reason i have mandrake at all is because i couldn't get slack to work properly when i switched from winxp. so now, since it's working like a charm, i won't be using mandrake much (if at all), so there should be no problems.
yay. thanks.
 
  


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
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 03:33 PM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 05:51 AM
[Redhat] make "admin" account same privledges as "root" Bi0haZarD Linux - Networking 20 01-12-2005 11:47 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 04:31 PM
make-kpkg errors "multiple instances" rickenbacherus Linux - Software 0 06-06-2003 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration