- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LOG IN
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-07-2000 10:29 PM
06-07-2000 10:29 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 11:16 PM
06-07-2000 11:16 PM
Re: LOG IN
this gets started from a global login-file or the users ,say .dtprofile that you have to secure properly (i.e. ownwership root with r-x for everybody
my 0.02, have a try.
dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 11:45 PM
06-07-2000 11:45 PM
Solutiontry this..
In your /etc/profile add the following lines
USER=$(whoami)
NBCNX=`who -H | grep ${USER} | grep -v root | wc -l`
if [ ${NBCNX} -gt 2 ]
then
echo "MSG login restrited"
exit
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 11:46 PM
06-07-2000 11:46 PM
Re: LOG IN
How do I create that SUID script in NIS.
Please write the procedure.
Thank you very much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2000 12:13 AM
06-08-2000 12:13 AM
Re: LOG IN
do you want the user to be deleted after first login? that was my answer.
or do you want to have only one
login at a time ?
then Anthonys script points the way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2000 01:00 AM
06-08-2000 01:00 AM
Re: LOG IN
login at a time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2000 07:44 PM
06-08-2000 07:44 PM
Re: LOG IN
USER=$(whoami)
NBCNX=`who -H | grep ${USER} | grep -v root | wc -l`
if [ ${NBCNX} -gt 2 ]
then
echo "MSG login restrited"
exit
fi
****
I followed this instructions but still users can login more than once.
The error I encountered was
/etc/profile [137] who: not found
One more thing, we are also using CDE Deskstop environment. Help is still needed.
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2000 08:03 PM
06-08-2000 08:03 PM
Re: LOG IN
i.e /usr/bin/who
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2000 10:22 PM
06-08-2000 10:22 PM
Re: LOG IN
For example, the user 'jessie' has logged in already and he wants to log in again using the same username using a remote terminal. How do I prevent Jessie from logging in again?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2000 11:25 PM
06-08-2000 11:25 PM
Re: LOG IN
then
echo "MSG login restrited"
exit
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2000 11:27 PM
06-08-2000 11:27 PM
Re: LOG IN
# comment got wrapped
# (line 1 and two)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2000 12:08 AM
06-09-2000 12:08 AM
Re: LOG IN
if you are using cde,
1. cp /usr/dt/sys.dtprofile /etc/dt
2. add the script from anthony
3. make sure users don't have .dtprofile
in their home-directories.
should do the trick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2000 12:39 AM
06-09-2000 12:39 AM
Re: LOG IN
grep -v root to grep -v jessie. To prevent Jessie from logging in twice?
I will be using jessie's account to test this and not root.