--- Rony Bill ronbillypop@yahoo.co.uk wrote:
Suppose an existing user 'rony' was removed, and a new user called 'rony' was created, how will the system remove the older 'rony' and allot the existing ~rony directory to the new 'rony'
When you "remove" a user, you have to remove the user's entry in the passwd, shadow, group and gshadow files (using vipw and vigr commands). After that you have to manually delete /home/rony and /var/spool/mail/rony. Only after completing these steps, is the user rony removed completely from the system.
If you don't remove /home/rony and simply create a new user called rony again, the system allocates the directory to this user.
Regards, Nadiem.
__________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
Nadiem wrote:
If you don't remove /home/rony and simply create a new user called rony again, the system allocates the directory to this user.
Will the system update any damaged or deleted or misconfigured system files in the /home/rony directory? If so then this is the shortest method to repair a user's configuration as all other data will remain intact.
Regards,
Rony.