Linux Debian support - change user login

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > February 2006 > change user login





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author change user login
Walter Mitty

2006-02-08, 2:49 am

Aby recommendations how best to change a use login ID from "abc" to
"def"?

Just create new, copy "abc data" from ~abc to ~def? rename and chown?

Thanks.

--
Snow White's dwarfs become gnomes
-- http://news.bbc.co.uk/1/hi/england/kent/4349726.stm
The world has gone mad.
rich

2006-02-10, 8:46 pm

On Wed, 08 Feb 2006 07:14:31 +0000, Walter Mitty wrote:

> Aby recommendations how best to change a use login ID from "abc" to "def"?
>
> Just create new, copy "abc data" from ~abc to ~def? rename and chown?


You should be able to change abc to def in /etc/passwd, /etc/shadow,
and /etc/group (don't miss /home/abc in /etc/passwd).
Then mv /home/abc to /home/def and login.


rich


Michael Paoli

2006-02-12, 2:45 am

Walter Mitty wrote:
> Aby recommendations how best to change a use login ID from "abc" to
> "def"?
> Just create new, copy "abc data" from ~abc to ~def? rename and chown?


# usermod -l def abc

You may also want to change and relocate the home directory. You might

need to tweak group names/memberships. You might also have to deal
with
issues such as mail spool files, sudoers entries, etc.

references/excerpts:
usermod(8)

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com