Re: disabling root access from ssh login /forcing user to change passowrd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# chage -d 0 <username>

On Friday 21 March 2003 12:12 pm, Bruce Douglas wrote:
> got it!!
> 
> thanks .. the little things...
> 
> however, i have another question ... how does one go about forcing a 
new
> user to have to immeadiately change their password upon logging in.
> 
> i created a new user foo
> 
> i did >chage -d 0 foo
> 
> when i log in to test, i get the user prompt, when i enter the 
password for
> foo, the window disappears.
> 
> any idea as to what i'm doing wrong....
> 
> thanks
> 
> -bruce
> bedouglas@xxxxxxxxxxxxx
> 
> 
> -----Original Message-----
> From: psyche-list-admin@xxxxxxxxxx
> [mailto:psyche-list-admin@xxxxxxxxxx]On Behalf Of Jay Turner
> Sent: Friday, March 21, 2003 11:07 AM
> To: psyche-list@xxxxxxxxxx
> Subject: Re: disabling root access from ssh login
> 
> 
> On Fri, Mar 21, 2003 at 10:44:39AM -0800, Bruce Douglas wrote:
> > i tried the following with no luck:
> >
> > vi to /etc/ssh/ssh_config and added the line:
> >
> > PermitRootLogin no
> >
> > i then restarted with
> > /etc/rc.d/init.d/sshd restart
> >
> > i can still login as root...
> 
> Right change, wrong file.  You need to make this change in the
> "sshd_config" file (as opposed to "ssh_config")  Actually, the stub 
shoud
> PermitRootLogin should already be in the file, so you can just 
uncomment
> the line and change the "yes" at the end to "no" and restart sshd.
> 
> "ssh_config" is utilized to configure client ssh usage.
> 
> - jkt
> 
> 
> 
> --
> Psyche-list mailing list
> Psyche-list@xxxxxxxxxx
> https://listman.redhat.com/mailman/listinfo/psyche-list
> 
> 
> 
> -- 
> Psyche-list mailing list
> Psyche-list@xxxxxxxxxx
> https://listman.redhat.com/mailman/listinfo/psyche-list
> 
> 

-- 
Stephen Carville http://www.heronforge.net/~stephen/gnupgkey.txt
===========================================
The difference between robbery and taxes is simple:   The first is 
someone threatening to hurt you if you do not give them your money.   
The second is legal.



-- 
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux