- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how root deny in web server ?
Operating System - Linux
1753268
Members
4800
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2008 10:52 PM
тАО02-19-2008 10:52 PM
how root deny in web server ?
HI all,
1) how can deny root for access web server?
2) how can use grep to /var/log/maillog which is generated in between 2.00PM to 3.00PM?
Thanks,
MKS
1) how can deny root for access web server?
2) how can use grep to /var/log/maillog which is generated in between 2.00PM to 3.00PM?
Thanks,
MKS
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2008 12:58 AM
тАО02-20-2008 12:58 AM
Re: how root deny in web server ?
Shalom,
1) You can disable the root account in /etc/passwd Thats going to make it pretty hard to administer the machine.
I would suggest setting up ssh to only accept root access based on pre-placed public keys.
/etc/ssh/sshd_config
#PermitRootLogin no
PermitRootLogin without-password
SEP
1) You can disable the root account in /etc/passwd Thats going to make it pretty hard to administer the machine.
I would suggest setting up ssh to only accept root access based on pre-placed public keys.
/etc/ssh/sshd_config
#PermitRootLogin no
PermitRootLogin without-password
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2008 11:14 PM
тАО02-20-2008 11:14 PM
Re: how root deny in web server ?
Hello Manoj,
you need to disable root access over SSH. Just edit your /etc/ssh/sshd_config and reload the sshd.
PermitRootLogin no
To enable the more secure Pubkey Authentication, just add
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
to you /etc/ssh/sshd_config. You need to create a key pair and put your new generated public key in the /home/$USERNAME/.ssh/authorized_keys on the weberver. Now you can access the webserver with a normal user account and without a password. Root login is denied, so you need to use sudo or su to change you user.
Hope this helps.
Best regards,
Patrick
you need to disable root access over SSH. Just edit your /etc/ssh/sshd_config and reload the sshd.
PermitRootLogin no
To enable the more secure Pubkey Authentication, just add
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
to you /etc/ssh/sshd_config. You need to create a key pair and put your new generated public key in the /home/$USERNAME/.ssh/authorized_keys on the weberver. Now you can access the webserver with a normal user account and without a password. Root login is denied, so you need to use sudo or su to change you user.
Hope this helps.
Best regards,
Patrick
Best regards,
Patrick
Patrick
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP