LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-24-2003, 12:52 PM   #1
thelight1
LQ Newbie
 
Registered: May 2003
Posts: 28

Rep: Reputation: 15
usermod


Hi

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?

thanks
Simon
 
Old 07-24-2003, 01:00 PM   #2
fancypiper
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 -)
Then:
useradd darkness
chown -R darkness.darkness /userhome/darkness
userdel ali

# Redhat links
RedHat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
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:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
Manage software:
redhat-config-packages

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

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


Reply


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 02:26 AM
usermod and groupadd meDream Linux - Newbie 0 10-05-2005 06:01 AM
usermod / useradd ? bibilit Linux - Software 1 12-19-2003 03:16 AM
usermod shanenin Linux - Software 4 12-08-2003 09:49 AM
/etc/shadow and useradd -p usermod -p granny Linux - Security 3 08-29-2003 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:06 AM.

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