Re: [CentOS] Change from Root
What I was interested in doing was to make it impossible for root to login directly, but rather enable other users to login and then su to root. So I edited /etc/ssh/sshd_config to read: #PermitRootLogin no (It was the dir I didn't know.) It initially said yes, but it was and is commented. How is it that I then and still can login directly as root? Is reboot necessary? TIA, V On Mon, Oct 26, 2009 at 4:17 PM, Neil Aggarwal n...@jammconsulting.comwrote: I am not sure what a VPS is VPS stands for virtual private server. Neil -- Neil Aggarwal, (281)846-8957, http://www.JAMMConsulting.com CentOS 5.4 KVM VPS $55/mo, no setup fee, no contract, dedicated 64bit CPU, 1GB dedicated RAM, 40GB RAID storage, 500GB/mo premium BW ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Change from Root
Did you remove the # in front of the line? You still have it in your example. -- Neil Aggarwal, (281)846-8957, http://www.JAMMConsulting.com http://www.jammconsulting.com/ CentOS 5.4 KVM VPS $55/mo, no setup fee, no contract, dedicated 64bit CPU 1GB dedicated RAM, 40GB RAID storage, 500GB/mo premium BW, Zero downtime _ From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of Victor Subervi Sent: Tuesday, October 27, 2009 9:52 AM To: CentOS mailing list Subject: Re: [CentOS] Change from Root What I was interested in doing was to make it impossible for root to login directly, but rather enable other users to login and then su to root. So I edited /etc/ssh/sshd_config to read: #PermitRootLogin no (It was the dir I didn't know.) It initially said yes, but it was and is commented. How is it that I then and still can login directly as root? Is reboot necessary? TIA, V On Mon, Oct 26, 2009 at 4:17 PM, Neil Aggarwal n...@jammconsulting.com wrote: I am not sure what a VPS is VPS stands for virtual private server. Neil -- Neil Aggarwal, (281)846-8957, http://www.JAMMConsulting.com CentOS 5.4 KVM VPS $55/mo, no setup fee, no contract, dedicated 64bit CPU, 1GB dedicated RAM, 40GB RAID storage, 500GB/mo premium BW ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Change from Root
On Tue, Oct 27, 2009 at 9:51 AM, Victor Subervi victorsube...@gmail.com wrote: What I was interested in doing was to make it impossible for root to login directly, but rather enable other users to login and then su to root. So I edited /etc/ssh/sshd_config to read: #PermitRootLogin no (It was the dir I didn't know.) It initially said yes, but it was and is commented. How is it that I then and still can login directly as root? Is reboot necessary? remove the # and save the file, then service sshd restart ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Change from Root
Victor Subervi wrote: What I was interested in doing was to make it impossible for root to login directly, but rather enable other users to login and then su to root. So I edited /etc/ssh/sshd_config to read: #PermitRootLogin no (It was the dir I didn't know.) It initially said yes, but it was and is commented. How is it that I then and still can login directly as root? Is reboot necessary? It's not going to have any effect unless you remove the # sign. You don't need to reboot, but do a 'service sshd restart'. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Change from Root
Victor: Also, check out section 4.4.2 of the security guide: http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/security-guide/s 1-wstation-privileges.html It addresses your question precisely. Neil -- Neil Aggarwal, (281)846-8957, http://www.JAMMConsulting.com http://www.jammconsulting.com/ CentOS 5.4 KVM VPS $55/mo, no setup fee, no contract, dedicated 64bit CPU 1GB dedicated RAM, 40GB RAID storage, 500GB/mo premium BW, Zero downtime _ From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of Victor Subervi Sent: Tuesday, October 27, 2009 9:52 AM To: CentOS mailing list Subject: Re: [CentOS] Change from Root What I was interested in doing was to make it impossible for root to login directly, but rather enable other users to login and then su to root. So I edited /etc/ssh/sshd_config to read: #PermitRootLogin no (It was the dir I didn't know.) It initially said yes, but it was and is commented. How is it that I then and still can login directly as root? Is reboot necessary? TIA, V On Mon, Oct 26, 2009 at 4:17 PM, Neil Aggarwal n...@jammconsulting.com wrote: I am not sure what a VPS is VPS stands for virtual private server. Neil -- Neil Aggarwal, (281)846-8957, http://www.JAMMConsulting.com CentOS 5.4 KVM VPS $55/mo, no setup fee, no contract, dedicated 64bit CPU, 1GB dedicated RAM, 40GB RAID storage, 500GB/mo premium BW ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Change from Root
Hi; Can someone please remind me how to update my VPS so that I have to authenticate first as user before I can su to root? TIA, Victor ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Change from Root
I am not sure what a VPS is, but assuming you only have SSH login enabled, then this will do it : grep -i root /etc/ssh/sshd_config #PermitRootLogin yes and restart sshd On Mon, Oct 26, 2009 at 4:05 PM, Victor Subervi victorsube...@gmail.com wrote: Hi; Can someone please remind me how to update my VPS so that I have to authenticate first as user before I can su to root? TIA, Victor ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of In Defense of Food ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Change from Root
I am not sure what a VPS is VPS stands for virtual private server. Neil -- Neil Aggarwal, (281)846-8957, http://www.JAMMConsulting.com CentOS 5.4 KVM VPS $55/mo, no setup fee, no contract, dedicated 64bit CPU, 1GB dedicated RAM, 40GB RAID storage, 500GB/mo premium BW ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos