Deleting Users

Donmumin

Registered
I am logged on as the admin user, I had created a user called ‘Test’ which I have used Net info manger to delete it.
However there is still a folder called ‘test’ under the following directory:
Hard Disk > Users > Test .. when I go to delete it it say’s I don’t have enough access privileges.

If anyone suggests using terminal command, please specify what to type ??

Any tips you UNIX gurus.

Thanks
 
Just log in as an admin and go to the Terminal and type

sudo -s
<your_password>
cd /Users
rm -rf Test
logout

To explain...

sudo -s creates a root shell that gives you root priviliges, it uses your admin password rather than the root password.

cd /Users changes to the directory that contains the user home directories.

rm -rf Test recursively removes the Test user home directory.

logout closes the root shell, and puts the shell back to your admin shell. This stops you from inadvertently doing any damage.

My advice. Never log into the machine as the root user. Always use sudo.

DC
 
Back
Top