- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: su - user .........No Shell
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
09-20-2006 11:14 PM
09-20-2006 11:14 PM
i am getting no shell message when i am doing su - user .The users default shell is called /abc/rgf/rtf.sh.......its shell mentioned in systems passwd file....
and when i run grep zxw /etc/passwd | od -x
i get 00000...what is this....And when i login throgh his id the window gets closed after entering password..........plz help me its urgent...............
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 11:18 PM
09-20-2006 11:18 PM
Re: su - user .........No Shell
The user shell listed in /etc/passwd for must be valid, and must appear in /etc/shells.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 11:22 PM
09-20-2006 11:22 PM
Re: su - user .........No Shell
Those are the shells that you might want to use:
#ll /usr/bin/ksh /usr/bin/sh /usr/bin/csh
-r-xr-xr-x 1 bin bin 155648 Jun 21 2004 /usr/bin/csh
-r-xr-xr-x 2 bin bin 159744 Jul 14 2004 /usr/bin/ksh
-r-xr-xr-x 2 bin bin 204800 Oct 21 2003 /usr/bin/sh
For more information, please refer to this old thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1042841
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 11:23 PM
09-20-2006 11:23 PM
Re: su - user .........No Shell
Regards,
Sudhakaran.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 11:38 PM
09-20-2006 11:38 PM
Re: su - user .........No Shell
Actually i need to access an applicn with help of script /abc/def/Mydef.sh ...And what do u mean by shell is valid or not..please explain.......when the user logs in..he gets an menu....
And reg pwck shows some login directories not found and everything ok.....
grpck gives nothing.........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 12:04 AM
09-21-2006 12:04 AM
SolutionBy valid shell, I mean an actual shell--not a shell script. Furthermore, the shell executable must have appropriate ownership/permissions. Examples of valid shells:
# cat /etc/shells
/usr/bin/csh
/usr/bin/ksh
/usr/bin/sh
/sbin/sh
To force a user to use a front-end program:
1) Make sure the user has a valid shell assigned in /etc/passwd (e.g. /usr/bin/sh).
2) Add a reference to the front-end script to ~user/.profile:
exec abc/rgf/rtf.sh
exit
3) Optionally:
# chown root:root ~user/.profile
so that the user cannot make changes.
'exec' replaces the user's current environment with that of
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 01:00 AM
09-21-2006 01:00 AM
Re: su - user .........No Shell
Check if user has read privileges to .profile and .login files.
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 01:59 AM
09-21-2006 01:59 AM
Re: su - user .........No Shell
Regds,
Kaps
But guys, It should work in any case though it is a shell script right ?.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 02:15 AM
09-21-2006 02:15 AM
Re: su - user .........No Shell
I think my password file is corrupt....B'coz i have ftp'd this file from the server where the backup was kept..now i am planning to create all users agin through script....Let us see.....I will surely let u know the status..........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 03:09 AM
09-21-2006 03:09 AM
Re: su - user .........No Shell
Technically, you can set a user's shell to a script, as long as the script is +x and has correct ownership. However, this is not recommended.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 10:57 PM
09-21-2006 10:57 PM
Re: su - user .........No Shell
Actually i am able to access the shell when using telnet ..but when i try to login through ssh i am not able 2 login....the window just opens and gets killed immediately...............
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2006 01:51 AM
09-22-2006 01:51 AM
Re: su - user .........No Shell
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2006 03:26 AM
09-22-2006 03:26 AM
Re: su - user .........No Shell
Actually the scripts entry is already therein /etc/shells......what should be the permission for /etc/shells.......