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


Closed Thread
  Search this Thread
Old 06-06-2012, 02:03 AM   #1
lalit singhania
LQ Newbie
 
Registered: Jun 2012
Posts: 20

Rep: Reputation: Disabled
Smile Legacy Account in /etc/passwd


Hello

How we find the legacy account in /etc/passwd /etc/shadow /etc/group ?
 
Old 06-06-2012, 11:30 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
If you want to find the account named 'legacy', then just

Code:
grep '^legacy:' /etc/passwd
Or have I misunderstood you?

EDIT: duplicate of https://www.linuxquestions.org/quest...estion-948821/, reported.

Last edited by Snark1994; 06-06-2012 at 11:32 AM.
 
Old 06-06-2012, 01:35 PM   #3
lalit singhania
LQ Newbie
 
Registered: Jun 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
Hello Sir,

The right question is.
Verify no legacy '+' entries exist in passwd, shadow, and group files

regadrs,
lallit singhania
 
Old 06-06-2012, 01:45 PM   #4
lalit singhania
LQ Newbie
 
Registered: Jun 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
hello sir,

Set retry limit for account lockout by setting RETRIES parameter to 5 and LOCK_AFTER_RETRIES parameter to YES. ? in redhat linux

Restrict root logins to system console by setting CONSOLE parmeter to /dev/console.?

Prevent Syslog from accepting messages from network by setting LOG_FROM_REMOTE parameter to NO. in linux
 
Old 06-06-2012, 07:18 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,258

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
These sound a lot like homework https://www.linuxquestions.org/linux/rules.html.
What have you got so far from eg google?
 
Old 06-06-2012, 07:39 PM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate. Please, follow discussion here: https://www.linuxquestions.org/quest...estion-948821/
 
  


Closed Thread


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
Account locked by pam_tally does not reflect in passwd -S anusuya_k Linux - General 0 10-18-2011 04:02 AM
Account in /etc/passwd but not /etc/shadow jeriryan Linux - Security 4 07-25-2011 10:05 AM
Commented out the root account in /etc/passwd bsd13 Linux - Newbie 2 08-22-2008 10:12 PM
Change account passwd in one command christopher_c Linux - Newbie 11 10-19-2007 01:26 AM
Disable passwd change for user account sodhilogin Linux - General 6 09-01-2004 01:43 AM


All times are GMT -5. The time now is 09:57 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