* Password File Sync Script
@ 2006-06-19 20:44 Sashikanth Madduri
2006-06-19 20:59 ` Scott Taylor
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: Sashikanth Madduri @ 2006-06-19 20:44 UTC (permalink / raw)
To: linux-admin
Hi,
I am writing a script to update password files from the server to
all the clients in the network.
I will be copying the following files periodically to all the clients:
/etc/passwd
/etc/shadow
/etc/group
scp is one option to do the remote copying. But, root ssh is disabled
in the clients and I cannot use scp. Is there any alternative
way(other than scp) to do this. Do I have to enable root ssh inorder
to do a remote copy of the above files. Please help.
PS: I am not using NIS for password management.
Thank you.
Sashikanth Madduri.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Password File Sync Script
2006-06-19 20:44 Password File Sync Script Sashikanth Madduri
@ 2006-06-19 20:59 ` Scott Taylor
2006-06-19 21:36 ` Sashikanth Madduri
2006-06-19 20:59 ` Adrian C.
` (3 subsequent siblings)
4 siblings, 1 reply; 9+ messages in thread
From: Scott Taylor @ 2006-06-19 20:59 UTC (permalink / raw)
To: Sashikanth Madduri; +Cc: linux-admin
On Mon, June 19, 2006 13:44, Sashikanth Madduri wrote:
> Hi,
> I am writing a script to update password files from the server to
> all the clients in the network.
>
> I will be copying the following files periodically to all the clients:
>
> /etc/passwd
> /etc/shadow
> /etc/group
>
> scp is one option to do the remote copying. But, root ssh is disabled
> in the clients and I cannot use scp. Is there any alternative
> way(other than scp) to do this. Do I have to enable root ssh inorder
> to do a remote copy of the above files. Please help.
>
> PS: I am not using NIS for password management.
That's crazy, not to mention dangerous. If you are at a point where you
need a script to update your passwords, perhaps you should consider using
NIS or something.
That said, you could always enable root ssh and just disable it again.
--
Scott
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Password File Sync Script
2006-06-19 20:44 Password File Sync Script Sashikanth Madduri
2006-06-19 20:59 ` Scott Taylor
@ 2006-06-19 20:59 ` Adrian C.
2006-06-19 21:02 ` Matt Hemingway
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Adrian C. @ 2006-06-19 20:59 UTC (permalink / raw)
To: Sashikanth Madduri, linux-admin
Sashikanth Madduri wrote:
> I will be copying the following files periodically to all the clients:
>
> /etc/passwd
> /etc/shadow
> /etc/group
Wait. Why in the world would you want to do that?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Password File Sync Script
2006-06-19 20:44 Password File Sync Script Sashikanth Madduri
2006-06-19 20:59 ` Scott Taylor
2006-06-19 20:59 ` Adrian C.
@ 2006-06-19 21:02 ` Matt Hemingway
2006-06-20 4:34 ` urgrue
[not found] ` <fe077a3b0606201254n64151c0bu347481f0ebe5ef13@mail.gmail.com>
4 siblings, 0 replies; 9+ messages in thread
From: Matt Hemingway @ 2006-06-19 21:02 UTC (permalink / raw)
To: Sashikanth Madduri; +Cc: linux-admin
What if you went the other way? Instead of pushing the files, the clients "grab" them. Would allowing root to ssh in only to the "main" server be a problem?
-Matt
On Mon, 19 Jun 2006 13:44:01 -0700
"Sashikanth Madduri" <mail.to.sashi@gmail.com> wrote:
> Hi,
> I am writing a script to update password files from the server to
> all the clients in the network.
>
> I will be copying the following files periodically to all the clients:
>
> /etc/passwd
> /etc/shadow
> /etc/group
>
> scp is one option to do the remote copying. But, root ssh is disabled
> in the clients and I cannot use scp. Is there any alternative
> way(other than scp) to do this. Do I have to enable root ssh inorder
> to do a remote copy of the above files. Please help.
>
> PS: I am not using NIS for password management.
>
> Thank you.
>
> Sashikanth Madduri.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Password File Sync Script
2006-06-19 20:59 ` Scott Taylor
@ 2006-06-19 21:36 ` Sashikanth Madduri
2006-06-19 21:40 ` Adrian C.
0 siblings, 1 reply; 9+ messages in thread
From: Sashikanth Madduri @ 2006-06-19 21:36 UTC (permalink / raw)
To: linux-admin
I am not using NIS because, it is insecure and password information is
passed over the network unencrypted.
So, I am thinking of copying the password files in an ssh tunnel(using scp).
Is NIS really insecure?
What is the best way to manage user accounts in a network if security
is a concern?
On 6/19/06, Scott Taylor <scott@dctchambers.com> wrote:
>
> On Mon, June 19, 2006 13:44, Sashikanth Madduri wrote:
> > Hi,
> > I am writing a script to update password files from the server to
> > all the clients in the network.
> >
> > I will be copying the following files periodically to all the clients:
> >
> > /etc/passwd
> > /etc/shadow
> > /etc/group
> >
> > scp is one option to do the remote copying. But, root ssh is disabled
> > in the clients and I cannot use scp. Is there any alternative
> > way(other than scp) to do this. Do I have to enable root ssh inorder
> > to do a remote copy of the above files. Please help.
> >
> > PS: I am not using NIS for password management.
>
> That's crazy, not to mention dangerous. If you are at a point where you
> need a script to update your passwords, perhaps you should consider using
> NIS or something.
>
> That said, you could always enable root ssh and just disable it again.
>
> --
> Scott
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Password File Sync Script
2006-06-19 21:36 ` Sashikanth Madduri
@ 2006-06-19 21:40 ` Adrian C.
0 siblings, 0 replies; 9+ messages in thread
From: Adrian C. @ 2006-06-19 21:40 UTC (permalink / raw)
To: Sashikanth Madduri, 'Linux Mail List'
Sashikanth Madduri wrote:
> I am not using NIS because, it is insecure and password information is
> passed over the network unencrypted.
>
> So, I am thinking of copying the password files in an ssh tunnel(using
> scp).
>
> Is NIS really insecure?
> What is the best way to manage user accounts in a network if security
> is a concern?
Kerberos/OpenLDAP would be a good start.
--Adrian.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Password File Sync Script
2006-06-19 20:44 Password File Sync Script Sashikanth Madduri
` (2 preceding siblings ...)
2006-06-19 21:02 ` Matt Hemingway
@ 2006-06-20 4:34 ` urgrue
[not found] ` <fe077a3b0606201254n64151c0bu347481f0ebe5ef13@mail.gmail.com>
4 siblings, 0 replies; 9+ messages in thread
From: urgrue @ 2006-06-20 4:34 UTC (permalink / raw)
To: Sashikanth Madduri; +Cc: linux-admin
On 06/19/2006 11:44:01 PM, Sashikanth Madduri wrote:
> Hi,
> I am writing a script to update password files from the server to
> all the clients in the network.
>
> I will be copying the following files periodically to all the clients:
>
> /etc/passwd
> /etc/shadow
> /etc/group
In general ldap is probably a better idea. Fedora Directory Server is
free and very easy to setup.
However, if for some reason that isnt an option:
-have the clients fetch the files instead
-have the server put the files in some non-root user's homedir, from
where a script running on the client verifies them and copies them into
place
Security-wise ldap is a better option, although I don't find these
scripts to be as bad as they seem.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Password File Sync Script
[not found] ` <fe077a3b0606201254n64151c0bu347481f0ebe5ef13@mail.gmail.com>
@ 2006-06-20 19:55 ` Sashikanth Madduri
2006-06-20 20:15 ` Sashikanth Madduri
0 siblings, 1 reply; 9+ messages in thread
From: Sashikanth Madduri @ 2006-06-20 19:55 UTC (permalink / raw)
To: linux-admin
Hi,
How can I make sure that all the (human) users that are added to
the system have uids > 500. What is the configuration file for doing
that.
Thank You.
Sashi.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Password File Sync Script
2006-06-20 19:55 ` Sashikanth Madduri
@ 2006-06-20 20:15 ` Sashikanth Madduri
0 siblings, 0 replies; 9+ messages in thread
From: Sashikanth Madduri @ 2006-06-20 20:15 UTC (permalink / raw)
To: linux-admin
Sorry for the previous mail. I found the answer. The file is
/etc/login.defs (useradd uses those values as defaults).
Thank You.
Sashi.
On 6/20/06, Sashikanth Madduri <mail.to.sashi@gmail.com> wrote:
> Hi,
> How can I make sure that all the (human) users that are added to
> the system have uids > 500. What is the configuration file for doing
> that.
>
> Thank You.
>
> Sashi.
>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-06-20 20:15 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-19 20:44 Password File Sync Script Sashikanth Madduri
2006-06-19 20:59 ` Scott Taylor
2006-06-19 21:36 ` Sashikanth Madduri
2006-06-19 21:40 ` Adrian C.
2006-06-19 20:59 ` Adrian C.
2006-06-19 21:02 ` Matt Hemingway
2006-06-20 4:34 ` urgrue
[not found] ` <fe077a3b0606201254n64151c0bu347481f0ebe5ef13@mail.gmail.com>
2006-06-20 19:55 ` Sashikanth Madduri
2006-06-20 20:15 ` Sashikanth Madduri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).