Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-24-2003, 11:52 AM   #1
LQ Newbie
Registered: May 2003
Posts: 28

Rep: Reputation: 15


Im trying to change the name of a user on my rh9 machine from ali to darkness, and also move his files from /userhome/ali/ to /userhome/darkness

From the usermod manual id guess the command would be:

usermod ali -d /userhome/darkness -m -l darkess

but when i run that command i get:

usermod: user darkness does not exist

What else do i have to do to get this move done?

Old 07-24-2003, 12:00 PM   #2
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Rename /userhome/ali to /userhome/darkness (see info mv as I like to use Midnight Commander for file administration)
Alternate way to /copymove:
mkdir /userhome/darkness
cd /userhome/ali
tar cf - . | (cd /userhome/darkness && tar xBfp -)
useradd darkness
chown -R darkness.darkness /userhome/darkness
userdel ali

# Redhat links
RedHat Linux Manuals
Get your mp3 support here
Maximum RPM
Easier software management: apt4rpm - Red Carpet
RedHat 8.0 Tips & Tricks

# Redhat 7.3 down configuration commands
setup leads to several configuration tools

# Redhat 7.3 up configuration commands
Configure soundcard:
Configure X server:
Configure network:
Manage software:

# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project

Last edited by fancypiper; 07-24-2003 at 12:09 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
command usermod not found bowie101 Linux - Newbie 12 08-18-2021 01:26 AM
usermod and groupadd meDream Linux - Newbie 0 10-05-2005 05:01 AM
usermod / useradd ? bibilit Linux - Software 1 12-19-2003 02:16 AM
usermod shanenin Linux - Software 4 12-08-2003 08:49 AM
/etc/shadow and useradd -p usermod -p granny Linux - Security 3 08-29-2003 12:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration