LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem in user creation (https://www.linuxquestions.org/questions/linux-software-2/problem-in-user-creation-259696/)

skvasistha 11-26-2004 10:06 PM

problem in user creation
 
hi all!
i have created users using
useradd -d /home/students/2001/cs101 -p ''
the directory cs101 was already there for some other user that has been deleted.
now after creating this user whwn i tried to log in
kde is unable to start.
it shows some pop up error messages like.........
--check that dcopserver program is running.
--no write access to $home(/home/2001/cs101)
however there is no problem in logging in to root.
pl help.

/bin/bash 11-27-2004 01:24 AM

Quote:

the directory cs101 was already there for some other user that has been deleted.
Thats probably the problem. The new user doesn't have ownership of the directory /home/students/2001/cs101. You can do this as root to fix:

chown <user>:<user> /home/students/2001/cs101

Andrew Benton 11-27-2004 05:50 AM

Shouldn't that be
chown -R $USER:$GROUP /home/students/2001/cs101
Or perhaps it would be better to delete the old students files and start with defaults?
rm -rf /home/students/2001/cs101


All times are GMT -5. The time now is 09:22 PM.