- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problems using /bin/false as a shell user
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
07-18-2003 07:00 AM
07-18-2003 07:00 AM
Problems using /bin/false as a shell user
I'm having problems when I use /bin/false as a shell user in /etc/passwd. When I run "su - user" the comand shows a coredump:
# su - user
su: No shell
Memory fault(coredump)
I think this is a security problem. Is this correct? Can anyone help me? Is there any patch for this problem?
I am using HP-UX 11.00.
Thanks,
Jansen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 07:09 AM
07-18-2003 07:09 AM
Re: Problems using /bin/false as a shell user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 07:09 AM
07-18-2003 07:09 AM
Re: Problems using /bin/false as a shell user
Problem Description
When doing a su within the NIS environment, I get a memory
fault core dump on HP-UX 11.0. I have the latest NIS patch.
What is causing this problem?
Configuration Info
Operating System - HPUX
Version - 11.0
Hardware System - HP 9000
Series - T500
Solution
su(1) can dump core when used on a system with NIS, because NIS uses
heap memory that su(1) expects to be initialized to all "\0".
Apply the new su patch PHCO_15232 in order to solve this problem.
Patches can be superseded by subsequent versions; be sure to load
the current version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 07:14 AM
07-18-2003 07:14 AM
Re: Problems using /bin/false as a shell user
The /bin/false is not a shell but just a script for auto exit. It is given to ftp users to fix a possible security problem.
You cannot use it for a normal user.
su needs a realshell or it aborts.
cat /bin/false
# @(#) $Revision: 64.1 $
exit 1
# what /bin/false
/bin/false:
$Revision: 64.1 $
file /bin/false
/bin/false: commands text
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 07:23 AM
07-18-2003 07:23 AM
Re: Problems using /bin/false as a shell user
User's with /bin/false or similar shells can really only change the UID with the setuid() system call with C. If you want to do this in a scripting language,use Perl. You can use the POSIX::setuid Perl function or simply reassign $<.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 08:07 AM
07-18-2003 08:07 AM
Re: Problems using /bin/false as a shell user
I'm using /bin/false as a user shell because I need configure ftp only users. But, I think that coredump is a local security problem. On Linux, for example, when I configure a user's shell to /bin/false and I run su, the user logon process fail but I don't have coredump.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 08:58 AM
07-18-2003 08:58 AM
Re: Problems using /bin/false as a shell user
Because you get a core dump with su - ID and they have no shell is not a security issue, it's a login/pam patch issue where login is not aborting correctly when you have no valid shell and force login.
Make sure your patched correctly, but more importantly... Dont test your ID's with su! The only way to test the ID is to attemp different login in methods (telnet, rsh, ftp). Using su ftponlyid will not show you anything about the ID.
Regards,
Shannon