[CentOS] usermod under CentOS

Fred Smith fredex at fcshome.stoneham.ma.us
Tue Feb 21 23:56:46 UTC 2017


On Tue, Feb 21, 2017 at 01:48:50PM -0500, m.roth at 5-cent.us wrote:
> Beartooth wrote:
> >
> > 	My wife's PC, running CentOS 6, suddenly quit connecting to the
> > Net. Autodidact that I am, I fumbled with all the hard- and software I
> > could find or dared try, but did no good.
> 
> Should we assume that you have another computer running, and that it's not
> having network issues? What did dmesg say, or is this all water under the
> bridge?
> <snip>
> > 	They called to ask whether I wanted to specify a username &
> > password, or just use their default dummies. I chose the dummies -- and
> > realized in the night that I've never changed a username before.
> 
> Try this: do a useradd for her, and perhaps for you. Then, as root, move
> the files to her home directory, and then chown -R herusername:hergroup
> ~herhome/*
> >
> *THEN* userdel the dummy accounts.
> 
> That way, just in case they installed something you don't want (incl.
> malware), will be disabled. Then you can poke around in the dummy home,
> etc, and when you don't find anything you want, *then* rm -rf ~dummy
> <snip>

I'm not aware of any hard requirement that one's home directory
have the same name as the username.

therefore, I think you could create a new user for her, and in 
/etc/passwd enter the existing home folder as her home.

you might want to make sure you disable the old login.

Fred
-- 
-------------------------------------------------------------------------------
    Under no circumstances will I ever purchase anything offered to me as
    the result of an unsolicited e-mail message. Nor will I forward chain
    letters, petitions, mass mailings, or virus warnings to large numbers
    of others. This is my contribution to the survival of the online
    community.
 --Roger Ebert, December, 1996
----------------------------- The Boulder Pledge -----------------------------



More information about the CentOS mailing list