Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


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

Rep: Reputation: 0
Question Commands to change authentication information


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,
Old 11-21-2010, 04:12 AM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
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.



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

All times are GMT -5. The time now is 05:25 PM.

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