LinuxQuestions.org
Visit Jeremy's Blog.
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 10-06-2010, 05:33 AM   #1
rainlinux
LQ Newbie
 
Registered: Oct 2010
Posts: 16

Rep: Reputation: 1
nobody uid


Hi all,

I just did a stuipd thing. I deleted nobody account because I thought that was kind of dummy account. I want to recover it. I'm using Redhat 7.0.

Can anyone tell me how to recover it? or

Can anyone give me nobody info. in vipw, etc/group and etc/shadow for nobody?

Thank you very much....
 
Old 10-06-2010, 05:41 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
I think you can't recover it. user id and group id of nobody is 99
 
Old 10-06-2010, 05:49 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Have a look in the /var/backups directory on your system. It holds an automatically created backup of several system files with the extension .bak. With some luck you can recover it from there.

Kind regards,

Eric
 
1 members found this post helpful.
Old 10-06-2010, 06:01 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
you can just create manually nobody account in your system.

if nobody grouup is not exists create group first.

Code:
# groupadd -g 99 nobody
create nobody user.

Code:
# useradd -u 99 -g nobody -c Nobody -d / -s /sbin/nologin nobody
Regards,
 
0 members found this post helpful.
Old 10-07-2010, 02:39 AM   #5
rainlinux
LQ Newbie
 
Registered: Oct 2010
Posts: 16

Original Poster
Rep: Reputation: 1
Thank you all you guys......
 
Old 10-07-2010, 03:02 AM   #6
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
Please mark thread as solved if you get solution?

and also please share your experience.

Regards,
 
  


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
Effective UID and real UID Milosevic Linux - General 1 01-06-2007 04:01 PM
Effective UID and Real UID Milosevic Linux - Newbie 1 01-06-2007 11:41 AM
Changing the UID of a Physical Volume to a specific UID jambraun Linux - Newbie 2 02-09-2006 03:34 PM
FREEBSD5.3 platform: PHP setcookie() successful, but $uid = $_COOKIE['uid']; fail tclwp Programming 1 03-30-2005 09:05 PM


All times are GMT -5. The time now is 04:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration