LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 11-19-2010, 05:16 PM   #1
neel_learning_linux
LQ Newbie
 
Registered: May 2008
Posts: 13

Rep: Reputation: 0
Question Commands to change authentication information


Hi!

I wanted to change authentication options in
1) /etc/pam.d directory files common-password, common-auth, common-account
2) /etc/login.defs - PASS* fields

I know the fields that need to be changed but what I could not find was
a) commands that change these options similar to useradd\usermod and so on but those which can change system wide settings
b) API that can change these options (C API)

I have almost accepted that there in fact aren't such things. You have to manually update the files. I would prefer not though.

So I am asking here as last attempt to find such commands\API. Please let me know if they are available.

Thanks in advance,
-Neel.
 
Old 11-21-2010, 05:12 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
1. authconfig depending on what you're trying to do
2. use 'useradd -D -K ...' to change the defaults for new accounts, login.defs will not affect existing users.

hth
 
  


Reply

Tags
api, authentication, commands


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
How to store authentication information in Nautilus for smb? sadha_123 Linux - Newbie 3 02-21-2007 02:43 PM
sharing user information / authentication across DNS / Mail / Web server vasanthi Linux - General 1 10-18-2006 07:39 AM
Exhaustive source for information on LDAP/Authentication? jantman Linux - Software 1 06-09-2006 11:28 AM
LDAP Authentication w/ Local User Information Adrian W Linux - Security 13 08-17-2004 12:09 PM
Cannot find reliable information on shell commands Rakin Linux - Newbie 7 02-21-2003 11:55 AM


All times are GMT -5. The time now is 04:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration