Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-28-2004, 10:30 PM
|
#1
|
Member
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313
Rep:
|
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.
|
|
|
06-28-2004, 10:44 PM
|
#2
|
Senior Member
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272
Rep:
|
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.
|
|
|
06-28-2004, 11:43 PM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Rep:
|
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.
|
|
|
06-29-2004, 01:16 PM
|
#4
|
LQ Newbie
Registered: Mar 2004
Location: The Netherlands
Distribution: Slackware
Posts: 18
Rep:
|
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.
|
|
|
06-29-2004, 01:56 PM
|
#5
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
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.
|
|
|
06-29-2004, 02:47 PM
|
#6
|
Member
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313
Original Poster
Rep:
|
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.
|
|
|
06-29-2004, 04:21 PM
|
#7
|
Member
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248
Rep:
|
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..
|
|
|
06-30-2004, 01:00 AM
|
#8
|
Member
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313
Original Poster
Rep:
|
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.
|
|
|
06-30-2004, 01:20 AM
|
#9
|
Senior Member
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032
Rep:
|
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?
|
|
|
06-30-2004, 01:35 AM
|
#10
|
Member
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|