LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
problem with PASSWD SHADOW GROUP


hi
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:
newuser:x:503:500::/home/newuser:/bin/bash 
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:
1c1
root:x:0:
---
root:x:0:root 
how to edit this file whit vipw command and other files ( shadow - group) ?
 
Old 02-07-2012, 02:48 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I believe it's
Quote:
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 02:53 AM.
 
1 members found this post helpful.
  


Reply



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 06:05 PM
linking /etc/passwd , group, shadow to SAN storage jamied66 Linux - Server 5 03-27-2009 04:01 PM
passwd.new, shadow.new, group.new and gshadow.new after upgrade to slackware 12.1 rhermsen Slackware 6 11-08-2008 04:59 PM
/etc/passwd, /etc/shadow, /etc/group? Educate me :)! nutnut Linux - General 4 06-11-2005 07:47 PM
Trouble after copy shadow, group and passwd to ltsp server tapanga Linux - General 1 04-19-2004 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:30 AM.

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