- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with chsh under HPUX 11
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
02-25-2003 05:18 AM
02-25-2003 05:18 AM
I can't change the login-shell from /usr/bin/csh to /usr/bin/bash with the "chsh"-command.
Also I can't change the login-shell from /usr/bin/bash to any other shell with the "chsh"-command.
The file "/etc/shells" contains all shells.
The error-message
"Couldn't change passwd/attributes for user" came from /usr/lib/security/libpam_unix.1 .
The patch PHCO_26089 is installed.
Is this an error in PAM ?
Thank you in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2003 05:45 AM
02-25-2003 05:45 AM
Re: Problem with chsh under HPUX 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2003 05:47 AM
02-25-2003 05:47 AM
Re: Problem with chsh under HPUX 11
you could try it with SAM.
Go to 'accounts for users ..'
then 'users' and try to modify
shell.
Regards
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2003 07:45 AM
02-25-2003 07:45 AM
Re: Problem with chsh under HPUX 11
To change the password is able.
Also change the login-shell from any login-shell to any login-shell is able so long as the is shell is not the bash but the shell is sh or ksh or csh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2003 12:38 AM
02-28-2003 12:38 AM
SolutionIf so, what about /etc/shells on the server?
Also, is the path an exact match?
For example, /bin/csh and /usr/bin/csh resolve to the same file but the validation routines aren't always smart enough to figure that out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2003 12:54 AM
02-28-2003 12:54 AM
Re: Problem with chsh under HPUX 11
Do this as root.
#chmod u+s /usr/bin/chsh
And try again
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2003 01:49 AM
02-28-2003 01:49 AM
Re: Problem with chsh under HPUX 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 01:44 AM
03-03-2003 01:44 AM
Re: Problem with chsh under HPUX 11
thanks for the help and support!
The file "/etc/shells" on the NIS-server - that's the solution !
(The bash isn't installed on our NIS-server hence it is absent in this file.)
But I'm disconcerted:
"shells" is NOT a NIS-file and the NIS-server needs not to be a NIS-client.
Therefore I'm surprised, that the "chsh"-command on the NIS-client checks the "shells"-file on the NIS-server.
Is this wrong?
I think : yes. Then I'd think the login-shell-field in the passwd-file works as the home-dir-field - the home-dir of an user must not exist on the NIS-server so long as it exists on the NIS-client-host where the user is logging on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2004 11:48 PM
06-22-2004 11:48 PM
Re: Problem with chsh under HPUX 11
I have the same problem.
but what is:
/etc/shell
what do you write to the file ?
Thanks
Ralf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 04:41 AM
06-23-2004 04:41 AM
Re: Problem with chsh under HPUX 11
To see the legal shells for your system run 'man getusershell'.
This file is consulted by chsh to determine whether a normal user may change the login shell for her own account. If the command name is not listed, the user will be denied of change.
It is a requirement for applications such as FTP daemons which traditionally disallow access to users with shells not included in this file.
All shells referred to in /etc/passwd or in the NIS passwd map should be valid shells or links on this system and be listed in /etc/shells.