- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command line
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
10-07-2003 03:39 AM
10-07-2003 03:39 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:42 AM
10-07-2003 03:42 AM
Re: Command line
su -
If you get a shell prompt up then they have command line access. Even if they dont if they can run vi then they can get to command line access with a !sh the same applies from other programs. You should presume most users can get to the command line if they try hard enough.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:43 AM
10-07-2003 03:43 AM
SolutionGenerally, a user without command line access will have an application specified in the last field of /etc/passwd, so that when they log in they are forced into a menu or program which they can (hopefully) not break out of. Check /etc/passwd.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:44 AM
10-07-2003 03:44 AM
Re: Command line
Look to /etc/passwd. In the last entry of every user there is a shell. If it is a valis shell (/bin/sh, usr/bin/sh, ksh, csh, bash etc) - this user can login to the system. If there is something like "/usr/bin/false", "/nonexistent" etc - this user dont have an access.
-Tomek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:45 AM
10-07-2003 03:45 AM
Re: Command line
Most Oracle applcations do not setup a UNIX id, just a database id.
But you could check to see if the user is in /etc/passwd and has valid shell listed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:51 AM
10-07-2003 03:51 AM
Re: Command line
Disable console:
if ['tty'=/dev/console]
then
exit 1
fi
Enable console only:
if ['tty'!=/dev/console]
then
exit 1
fi
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:27 PM
10-07-2003 03:27 PM
Re: Command line
cut -f1,7 -d: /etc/passwd
Now it is possible that some users have a local .profile that starts a menu that restricts the user but that is a poor idea. The user should have the menu program as their shell so that there is no possibility of getting a shell prompt (command line).
Bill Hassell, sysadmin