Jump to content

uid preferences


polemicz
 Share

Recommended Posts

IMHO you do the right thing, I don't know any better solution apart of using a NIS system.

 

A bizarre way, --don't do it, I'm just bored-- could be:

#! /bin/bash
USERNAME=foo
DEBUID=1000 MDKUID=500
case $(cat /etc/release) in
   Mandrake*) OLDUID=$DEBUID;;
   Debian*)   OLDUID=$MDKUID;; # you'll need to create a debian /etc/release 
esac

find / -uid $OLDUID -exec chown $USERNAME {} \;

run it on every boot for every different user. As another way, you may sync both /etc/passwd files (dangerous, insane and ...silly)... as I said, I'm bored

 

:P :screwy:

 

seriously what you do is what it has to be done :)

Edited by aru
Link to comment
Share on other sites

I just use the reverse....1000:1000 though I have reason...

its more logical to split real users (those that can login via kdm for instance) from a nice round no. like 1000 and nothing else is going to create a pseudo user (like mysql etc) with 1000 but they might use 500.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...