LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   usermod (https://www.linuxquestions.org/questions/linux-newbie-8/usermod-75531/)

thelight1 07-24-2003 11:52 AM

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

fancypiper 07-24-2003 12:00 PM

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


All times are GMT -5. The time now is 12:56 PM.