- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Block all users access to the system
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
06-02-2005 10:25 PM
06-02-2005 10:25 PM
Block all users access to the system
I need to block all users access to change users id's to them. Any sugestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 10:32 PM
06-02-2005 10:32 PM
Re: Block all users access to the system
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 10:37 PM
06-02-2005 10:37 PM
Re: Block all users access to the system
Single user is'nt a good option cus some aplications will still up, like ftp applications and DB Oracle too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 10:37 PM
06-02-2005 10:37 PM
Re: Block all users access to the system
and see http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1117794907486+28353475&threadId=147806
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 10:40 PM
06-02-2005 10:40 PM
Re: Block all users access to the system
#!/bin/ksh
if [[ $LOGNAME != "root" ]]
then
echo "Permission denied to change UID"
echo "contact root"
sleep 1
exit 1
fi
========
Move /usr/sbin/usermod to /usr/sbin/usermodold and put this wrapper as /usr/sbin/usermod
It will work. And you may create users without -o option also.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 10:41 PM
06-02-2005 10:41 PM
Re: Block all users access to the system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 10:44 PM
06-02-2005 10:44 PM
Re: Block all users access to the system
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2005 11:12 PM
06-02-2005 11:12 PM
Re: Block all users access to the system
Thanks for all of you, I've done a script whith all users taht can't login in the system, i can't work in single user cus of users scripts running in cron.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2005 12:55 AM
06-03-2005 12:55 AM
Re: Block all users access to the system
I thought cron ran at a higher run level also.
Anyway, glad to hear you found a way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2005 03:00 PM
06-03-2005 03:00 PM
Re: Block all users access to the system
# touch /etc/nologin and that way no one logs in and also
# echo console > /etc/securetty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2005 03:02 PM
06-03-2005 03:02 PM
Re: Block all users access to the system
add this to /etc/profile
TTY=`tty`
if [ $LOGNAME = "root" -a $TTY != "/dev/console" ]
then
echo "No logins allowed at this time, please try back later"
exit 1
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2005 06:49 PM
06-03-2005 06:49 PM
Re: Block all users access to the system
#telnet
#rlogin
#ssh (if installed)