LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 10:46 AM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
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, 12:04 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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, 12:23 PM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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, 01:02 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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, 02:09 PM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Thanks sag.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:15 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
Open Source Consulting | Domain Registration