- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how can i limit some users only login in conso...
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
Discussions
Discussions
Discussions
Forums
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
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
тАО12-21-2003 01:55 PM
тАО12-21-2003 01:55 PM
how can i limit some users only login in console
or maybe can deny these users direct login but can su to them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2003 04:58 PM
тАО12-21-2003 04:58 PM
Re: how can i limit some users only login in console
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=274006
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2003 08:41 PM
тАО12-21-2003 08:41 PM
Re: how can i limit some users only login in console
You could also use SAM to deactivate the user - this would prevent their being able to login, but would also disable their password, so if you wanted to su to the user, you would first have to gain root privilege.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2003 09:37 PM
тАО12-21-2003 09:37 PM
Re: how can i limit some users only login in console
(not applicable to login implementations that use PAM)
If this file does not exist, no additional access restrictions are imposed.
The file consists of a sequence of sections.
There are three possible section types: CLASSES, GROUPS and USERS.
I think that the USERS-SECTION can to be useful,.
See into your manual for explanations.
HTH
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2003 10:17 PM
тАО12-21-2003 10:17 PM
Re: how can i limit some users only login in console
2]if you want to deny direct console login then user /etc/securetty file.
3]Write a small script checking which users u want to allow to do su or use program like sudo which can be downloaded.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2003 12:11 PM
тАО12-22-2003 12:11 PM
Re: how can i limit some users only login in console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2003 12:54 PM
тАО12-22-2003 12:54 PM
Re: how can i limit some users only login in console
echo console > /etc/securetty
There are no other controls for console logins for other users.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2003 01:03 PM
тАО12-22-2003 01:03 PM
Re: how can i limit some users only login in console
If you could use the script it should look like this (it should be a portion in the ".profile" for each users' home directory)...
The users who needs to have access to the system using "su" should be specified in the file "/etc/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
--------------------------------------------
Cheers!!!
Mathew.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2003 01:17 PM
тАО12-22-2003 01:17 PM
Re: how can i limit some users only login in console
I do it. edit the /etc/profile
and I want to know more about how to use
/etc/usertty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2003 08:05 PM
тАО12-22-2003 08:05 PM
Re: how can i limit some users only login in console
more info for usertty (man in attachment)
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2003 11:58 PM
тАО12-22-2003 11:58 PM
Re: how can i limit some users only login in console
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2003 01:33 AM
тАО12-23-2003 01:33 AM
Re: how can i limit some users only login in console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2003 10:49 PM
тАО12-30-2003 10:49 PM
Re: how can i limit some users only login in console
If you want to assign points rad here
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Happy Holidays
Bruno