Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

User account Management, i want delete user

Hi guys, i'm new in linux, i want to know how can i delete an user account in linux but leave the home directory intact? means i want to delete the account but still want the directories. how can i do this?

i cant type this 'userdel user' because it will delete all my directory inside. please help me..😖
Why not just leave the user there? 😧
01000101
No it doesn't, it only removes the /home/user folder if you specify -r

See:

Code
[root@failverse home]# ls
encfs-1.6  encfs-1.6-1.tgz  Joomla.sql  icecast  icecast-2.3.2  icecast-2.3.2.tar.gz  parse.sh  stuff  taco.fs  tacooo  ts3server
[root@failverse home]# useradd -m taco
[root@failverse home]# ls
encfs-1.6  encfs-1.6-1.tgz  gamelot  GamelotJoomla.sql  icecast  icecast-2.3.2  icecast-2.3.2.tar.gz  parse.sh  stuff  taco  taco.fs  tacooo  ts3server
[root@failverse home]# userdel taco
[root@failverse home]# ls
encfs-1.6  encfs-1.6-1.tgz  gamelot  GamelotJoomla.sql  icecast  icecast-2.3.2  icecast-2.3.2.tar.gz  parse.sh  stuff  taco  taco.fs  tacooo  ts3server
Yeah, just use userdel user, it will not touch it's directory.
You could see that in 'man' page.
..so close, no matter how far..
(Aug 22, 2010 10:53 PM)Ryuujinx Wrote:  No it doesn't, it only removes the /home/user folder if you specify -

See:

Code
[root@failverse home]# ls
encfs-1.6  encfs-1.6-1.tgz  Joomla.sql  icecast  icecast-2.3.2  icecast-2.3.2.tar.gz  parse.sh  stuff  taco.fs  tacooo  ts3server
[root@failverse home]# useradd -m taco
[root@failverse home]# ls
encfs-1.6  encfs-1.6-1.tgz  gamelot  GamelotJoomla.sql  icecast  icecast-2.3.2  icecast-2.3.2.tar.gz  parse.sh  stuff  taco  taco.fs  tacooo  ts3server
[root@failverse home]# userdel taco
[root@failverse home]# ls
encfs-1.6  encfs-1.6-1.tgz  gamelot  GamelotJoomla.sql  icecast  icecast-2.3.2  icecast-2.3.2.tar.gz  parse.sh  stuff  taco  taco.fs  tacooo  ts3server

yeah!! thanks man! u really help me..😉


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Hack3rzGodJan 12, 2016 06:21 AM 0 127 Jan 12, 2016 06:21 AM
Last Post: Hack3rzGod
by raxeJul 20, 2012 05:31 AM 2 80 Jul 20, 2012 05:31 AM
Last Post: raxe