LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-30-2013, 11:46 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Rep: Reputation: 46
passwordless rsync after changing password


if you use an account that can rsync without typing in a password, if you change the password on that account, do you have to redo the keys because of the new password or does that still work?
 
Old 09-30-2013, 01:04 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,831
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Password and keys are independent for the most part. authorized_keys does not change so you don't need a new key. If an account is locked or the password expires then the account will need to be unlocked/password changed before shared keys can be used again.
 
1 members found this post helpful.
Old 09-30-2013, 01:23 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
ok, great, so sounds like even if we change the password, the rsync should still work since the account isn't locked or anything like that, just has a different password.

thanks for the reply.
 
Old 09-30-2013, 02:02 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,831
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
For explicit reference see the authorized_keys(8) man page.
Quote:
Regardless of the authentication type, the account is checked to ensure
that it is accessible. An account is not accessible if it is locked,
listed in DenyUsers or its group is listed in DenyGroups . The defini-
tion of a locked account is system dependant. Some platforms have their
own account database (eg AIX) and some modify the passwd field ( '*LK*'
on Solaris and UnixWare, '*' on HP-UX, containing 'Nologin' on Tru64, a
leading '*LOCKED*' on FreeBSD and a leading '!' on most Linuxes). If
there is a requirement to disable password authentication for the account
while allowing still public-key, then the passwd field should be set to
something other than these values (eg 'NP' or '*NP*' ).
When I need to generate long, never to be used, passwords I like to use uuidgen(1).
 
1 members found this post helpful.
Old 09-30-2013, 03:09 PM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
Thanks sag.
 
  


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
Rsync password asked even after generating key (while ssh works passwordless) frsechet Linux - Server 46 02-06-2015 06:55 PM
LXer: Linux Backup Server: Refining Rsync, Passwordless Authentication LXer Syndicated Linux News 0 03-01-2011 06:20 AM
After changing Windows AD password Samba\Winbind still uses old password Criller Linux - Security 2 02-28-2008 05:14 AM
Rsync changing owner of dirs Harlin Linux - Security 1 03-30-2007 02:11 PM
ssh keeps asking for password, have set up passwordless gorbgorb Linux - Networking 4 03-21-2007 05:24 PM


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