- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Login 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
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
05-05-2006 03:29 AM
05-05-2006 03:29 AM
I'm trying to create a new user with the only atribute to execute a menu shell, so I open sam and at Start-Up Program I put the path to the executable script but i wasn't able to set it. At older server i can proceed like this. Somebody?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 03:35 AM
05-05-2006 03:35 AM
Re: Login Shell
If all else fails you should be able to edit the /etc/passwd file and set the users default shell the what you need it to be.
Just be sure that the user has access to run that particular script/program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 03:45 AM
05-05-2006 03:45 AM
Re: Login Shell
We'll routinely put a menu call in the individual's .profile with an exit following.
Thus they have a choice of going into the menu and upon exiting the menu they are logged out.
Of course you will have to trap for cntrl-c, etc.
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 03:59 AM
05-05-2006 03:59 AM
Solution#!/usr/bin/sh
(or whatever shell interpreter you are using). The #! line should be in 100% of all your shell scripts along with replacing (never appending) PATH with the necessary paths, something like this:
export PATH=/usr/bin
And to prevent potential problems, always use set -u to halt/exit on spelling errors.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 04:05 AM
05-05-2006 04:05 AM
Re: Login Shell
The message is /path/menu is not a valid shell, i edit the passwd file and when connecting get the msg "no shell" ... I'll try the first line cmd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 04:08 AM
05-05-2006 04:08 AM
Re: Login Shell
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 04:34 AM
05-05-2006 04:34 AM
Re: Login Shell
I did what 'u suggest and everything works fine!
Thk 'u all!