Help! Adding user with a specific home directory that already exists
Hey everyone,
Im trying to add users to my nfs server with a specific home directory that already exists. Can this be done? I've done some research on google and other forums but cant seem to find the answer. Maybe I'm searching the wrong question, im not sure, anyway any help would be great! Thanks, Dave |
Quote:
Quote:
|
i get the following errors:
Code:
[root@MRB home]# useradd -d /mnt/sdb/home/10aielmi/ 10aielmi |
Quote:
|
i know that they are not in use. heres whats goin on: i backed up the home directory to a hard drive before i reinstalled. i upgraded to fc12 and hooked that backup drive with home on it as a slave drive. i set that drive to be mounted to /mnt/sdb. the path of the home directory is /mnt/sdb/home.
there is about 30 users in the home directory i need to make an account for that all need to use those directories. Maybe something inside of the user home directories needs to be removed. i dont know. |
Quote:
Create a user first then change its home directory by editing the /etc/passwd file, see if it works. |
Instead of using adduser you can use useradd which will not try to create the home dir or copy the skel files.
Read the man page for details. Cheers, Evo2. |
Regards
Code:
[root@MRB home]# su 10aielmi If it was my personal system (where I don't mind breakage to learn things) I'd copy the lines for those 30 users from the old passwd and shadow files to the new one ... take care (make sure you can always get back to where you started). You might have similar issues with group names/numbers. Useful to create any new groups with same numbers as old system if copying files from old system. |
All times are GMT -5. The time now is 05:07 AM. |