- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to restrict a user from logging remotely as a ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
09-11-2001 10:42 PM
09-11-2001 10:42 PM
how can I restrict a user from
logging remotely(rlogin or telnet)
as a root user?
A user can use "su" to be
a root user after logging as a regular user remotely.)
(In other words, a root user can login to the system only from the console.)
Please let me know.
Thanks,
Seizen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 10:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 10:55 PM
09-11-2001 10:55 PM
Re: How to restrict a user from logging remotely as a root user
"passwd" is a very good tool for preventing users to log on as root ;)
To limit the terminals where root can log on directly, create /etc/securetty and list the terminals (console!) where root may logon. (stay logged on as root on a terminal when setting this up!)
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 11:04 PM
09-11-2001 11:04 PM
Re: How to restrict a user from logging remotely as a root user
another way :-
Edit .profile of root as like these
#root.allow
user=`logname`;
sulog="/var/adm/sulog"
TTY="`tty | cut -d/ -f3`"
if [ ${user} = "root" ]
then
if [ ${TTY} != "console" ]
then
echo "
exit
fi
else
grep ${user} /etc/root.allow > /dev/null 2>&1
if [ ${?} -ne 0 ]
then
echo "
date=`date "+%m/%d %H:%M"`
echo "ERR ${date} - ${TTY} ${user}-root" >> ${sulog}
exit
fi
fi
*****
create a file /etc/root.allow and enter user name who will allowed to do su.
best of luck
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 11:06 PM
09-11-2001 11:06 PM
Re: How to restrict a user from logging remotely as a root user
Thanks,
Seizen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 07:40 AM
10-03-2001 07:40 AM
Re: How to restrict a user from logging remotely as a root user
How can i do to enable remote connection with Xwindow ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2001 08:37 AM
10-05-2001 08:37 AM
Re: How to restrict a user from logging remotely as a root user
ssh can be restricted from the configuration file.
X can be restricted by the following:
# cp -p /usr/dt/config/Xstartup /etc/dt/config/Xstartup
# print "[[ ${USER} = root ]] && exit 1" >>/etc/dt/config/Xstartup
dave