- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with 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
11-12-2003 03:57 AM
11-12-2003 03:57 AM
I need to avoid that when an user logs out from an application come into the operating system, and when the users log into the sistem, execute directly an application. I did it by put in /etc/passwd, instead of the shell a program which executes a shell with the command that launches the application:
In /etc/passwd: user1:..:..:..:..:/home/user1/launcher
Content of launcher:
/usr/bin/sh -c application
This works fine, but into the application there is an ftp, and it does not work when I execute the application of this manner. I don´t know how is this application. Does somebody have any idea of where could be the problem?
Best regards,
R.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 04:01 AM
11-12-2003 04:01 AM
Re: Problem with shell
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 04:37 AM
11-12-2003 04:37 AM
Re: Problem with shell
Attached are documents outlining creating a restricted ftp user. We used the attached to create a number of ftp only accounts.
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 04:51 AM
11-12-2003 04:51 AM
Re: Problem with shell
-Tomek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 07:57 PM
11-12-2003 07:57 PM
Solutioneg, in .profile, put something like:
trap "" 1 2 3
exec /path/to/application
The trap statment stops them ^C ing out, and the exec launches their app such that it replaces the shell, so that when they quit the app, they log right out.
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 10:06 PM
11-12-2003 10:06 PM
Re: Problem with shell
Thank you very much, Graham. My boss suggest me the same solution as the yours and it is exactly what I wanted. So, 10 point for everyone.
Thanks too to the other people.
R.O.