[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Redhat to Debian: migrating a multi-user server



--- Ethan Benson <erbenson@alaska.net> wrote:

> uid's 100 - 999 are reserved for the packaging
> system/daemons etc.
> you won't likely have a problem but it would be
> better to migrate to
> debian policy anyway.  

Yeah, that's about how I'm thinking about it, too. 
Debian goes through so much to assure standard
policies are met that it seems a shame to break policy
on something that is so easy to fix.


> you can just write a small awk script to take the
> accounts from your
> redhat system (delete all of redhat's system
> accounts/groups before
> running it) to create all the users with proper UIDs
> on debian, just a
> quick not thought out script:
> 
> for i in `awk -F: rhpwd '{print $1}'` 
>     do adduser --no-create-home --gecos "$(grep ^$i
> rhpwd | awk -F: '{print $5}')" \
> 	--home "$(grep ^$i rhpwd | awk -F:'{print $6}')" 
> $i ; \
> 	chsh -s "$(grep ^$i | awk -F: '{print $7}')" $i
> done
> 
> another method would be to use sed to change the
> uid/gid.  

Thanks for the response and for the script.  I'll play
with it, and see what I can do with it.

Belloc

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Reply to: