- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Limit a user to a single program
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
08-10-2001 12:39 AM
08-10-2001 12:39 AM
Limit a user to a single program
This programs should be launched each time the user logs in (with CDE login screen or with telnet/rlogin/su command). It should be the only program available to the user (no Xterm, no CDE pannel, no other program...).
When the user exits the program, the Unix session should exit too.
Note that the program is a graphical program so if cannot execute (for instance, because DISPLAY is not set, or because terminal screen is not graphical), Unix session should exit immediatly.
Thanks.
--
Tristan Savalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2001 12:50 AM
08-10-2001 12:50 AM
Re: Limit a user to a single program
You could try setting their login shell to be a wrapper script that, say, performs some environment checks, runs the program, then it will exit at the end and log the user out.
Rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2001 01:19 AM
08-10-2001 01:19 AM
Re: Limit a user to a single program
here an unsupported procedure:
Change in /usr/dt/bin/Xsession the lines:
dtstart_session[0]="$DT_BINPATH/dtsession"
dtstart_session[1]="$HOME/.xsession"
to
dtstart_session[1]="$DT_BINPATH/dtsession"
dtstart_session[0]="$HOME/.xsession"
(this will change the order for Xsession for looking what session has to be started)
Now you have to create a file $HOME/.xsession in the user home directory with executable rights (chmod 755 $HOME/.xsession)
Copy /usr/dt/config/Xfailsave to $HOME/.xsession.
Within $HOME/.xsession change the line
${CDEDIR}/dtterm -ls
to your needs (your X-application should be started here).
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2001 02:05 AM
08-10-2001 02:05 AM
Re: Limit a user to a single program
My simple way could be put exec statement in .profile of user.
Let say user has to run xyz.exe, then last line of .profile of user should be
exec xyz.exe
So when he logs in it will directly go to program and when he comes out of that program, it logs him out.
Hope this may help u.
Regards
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2001 05:55 AM
08-10-2001 05:55 AM
Re: Limit a user to a single program
I simply put the exec for what program I want them to run upon login into the users .profile...and I also add the command exit on the next line - so when they exit the program they are 'forced' out.
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2001 06:04 AM
08-10-2001 06:04 AM
Re: Limit a user to a single program
just put the absolute path of this program as the shell script to that user in /etc/passwd.
you would also desactivate all interrupts in order that the user couldn't work arround what permissions you are setting.
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2001 10:55 AM
08-10-2001 10:55 AM
Re: Limit a user to a single program
trap "echo error; exit 1" 1 2 3 4 5 6
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2001 11:40 AM
08-10-2001 11:40 AM
Re: Limit a user to a single program
As far as su???????? This will not work. However, the user should not have another account from which he can su. If he/she does, you should do the same with that account.
Also, I would chmod 755 $HOME/.profile $HOME/.dtprofile (assuming sh/ksh) and chown root:sys $HOME/.profile $HOME/.dtprofile.
Another thing I would do is add the user to /etc/ftpd/ftpusers
Just my thoughts.
...jcd...