LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2006, 05:44 PM   #1
raven4d
Member
 
Registered: Feb 2006
Location: Mars
Posts: 124

Rep: Reputation: 15
how to recreat user after deleting /ets/shadow


hi
as i will install fc5 tomorrow i liked to play tough with my fc4 installation ..

i did alots of things that will not even think about if i have anything to do with the current installation //like playing with boot,kernel,...//
and i could fix them and make the system bootable again .

finaly i got a thought ..

why not deleting /ets/shadow ?! and see how to recreate the users from a rescue terminal ,i did delete the file! and boom ! i couldn't do anything .. as no users can be recognized anymore .

i just wanna know is there anyway to creat a user from a rescue ?!
 
Old 04-20-2006, 05:56 PM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
The only way I can think of, it to remove the user from /etc/passwd and /etc/group also, and then you should be able to put them back with adduser. You'll never get the old password back, though - you just have to pick a new one.
 
Old 04-20-2006, 06:35 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Or restore the file from your backups...
 
Old 04-21-2006, 07:00 PM   #4
raven4d
Member
 
Registered: Feb 2006
Location: Mars
Posts: 124

Original Poster
Rep: Reputation: 15
well ..

i couldn't add the users again ..

so i will keep away from thse files at future ..

thanx
 
Old 04-21-2006, 09:53 PM   #5
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
Quote:
Originally Posted by raven4d
well ..

i couldn't add the users again ..

so i will keep away from thse files at future ..
Yeah, these are the kind of files that you really want to have backups for, since they're hard to recreate.
 
Old 04-24-2006, 02:13 AM   #6
Bopi
LQ Newbie
 
Registered: Nov 2005
Location: Funchal , Madeira
Distribution: Debian SID
Posts: 26

Rep: Reputation: 15
some distros create /etc/passwd~ and /etc/shadow~ , its a backup
 
  


Reply


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
Non root user to View \etc\shadow dhammika Linux - Security 3 04-05-2006 11:06 PM
how passwd(1) for normal user changes /etc/shadow? sknowonweb Linux - Newbie 1 12-22-2005 01:06 PM
authentication user by /etc/shadow Thomas23 Linux - Security 2 05-22-2004 11:52 AM
User Migration: how do you move /etc/shadow? groovin Linux - General 4 04-13-2004 12:26 PM
/etc/shadow in user authentication katana Linux - General 3 06-25-2001 12:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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