Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-07-2012, 02:10 AM   #1
LQ Newbie
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled

i create a new user with useradd command and then remove with userdel without -r options
Q1 - how to remove home dir for this new user from home dir
Q2 - after create this user and remove info from /etc/passwd a new file with name passwd- ( dash end of name ) creaated with same permission
PHP Code:
-rw-r--r--. 1 root root 1880 Feb  5 22:34 /etc/passwd
-rw-r--r--. 1 root root 1923 Feb  5 22:34 /etc/passwd
diff command outpute
PHP Code:
and shadow - group file same passwd file
PHP Code:
-rw-r--r--. 1 root root 901 Feb  5 19:30 /etc/group
-rw-r--r--. 1 root root 905 Feb  2 10:11 /etc/group
diff command output for group file
PHP Code:
how to edit this file whit vipw command and other files ( shadow - group) ?
Old 02-07-2012, 03:48 AM   #2
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I believe it's
rm -rf /home/newuser
As far as shadow group the first fle is the last time modified

Last edited by EDDY1; 02-07-2012 at 03:53 AM.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use Fedora 11 passwd, shadow, gshadow, group files in Fedora 12?? aimGuy Linux - Newbie 2 04-28-2010 07:05 PM
linking /etc/passwd , group, shadow to SAN storage jamied66 Linux - Server 5 03-27-2009 05:01 PM,, and after upgrade to slackware 12.1 rhermsen Slackware 6 11-08-2008 05:59 PM
/etc/passwd, /etc/shadow, /etc/group? Educate me :)! nutnut Linux - General 4 06-11-2005 08:47 PM
Trouble after copy shadow, group and passwd to ltsp server tapanga Linux - General 1 04-19-2004 01:59 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration