- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disable "set home session" ability
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-21-2003 01:07 PM
08-21-2003 01:07 PM
I have several users that use the same login, and work on different shifts. I don't like it that way, but it is beyond my power to change. At any rate, they have little "battles" amongst themselves where one sets up the CDE session one way and saves the home session, another changes it and does the same. Now they are complaining to me. Is there any way to make it impossible for the users to set their home session, making it read-only or something? That would be very nice.
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 01:35 PM
08-21-2003 01:35 PM
SolutionBut, you can do a few things.
You can modify the .profile to prompt the user for their real identity, or make an assumption based on time of day.
Whatever your methodology, you can moidfy the $HOME variable.
This becomes a little trickier based on CDE login, because I don't think you can prompt the user for any input. Usually this is controlled by different logins.
Again, you can check the time, and set the $HOME variable based on time of day so that the profiles are protected.
I'd say do an env > /tmp/env.text to get a handle on all the possible environment variables what will need to be checked.
Lastly, if they are logging in from different workstations you might be able to make script decitions based on the IP they login from.
who -u
root console Aug 10 01:15 old 1673 system console
root pts/0 Aug 21 17:31 . 12128 192.168.0.2
Thu Aug 21 22:31:11 2003:/root
Note the IP address of the second user.
That output can be accessed by punching it through awk as follows:
who -r | awk '{print $7}'
You will have to refine it to get it into an environment variable, but with the right tools you can accomplish your goal.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 01:54 PM
08-21-2003 01:54 PM
Re: Disable "set home session" ability
Thanks Steven, your replies are always quick and helpful. I like all of your suggestions, but this is a production environment so I think I want to just restrict their settings completely. The problem being that they all use the same machine (IP, etc) just at different times of day.
I am worried about the effects of this, but I just ended up making the directory ~/.dt/sessions and everything under it read only and owned by root. In addition, the session is set to always use the home session.
The effect is that when a user tries to press "Set Home Session" after making changes, the screen locks with the hourglass for about 5 minutes (I guess it is _trying_ to change files,) then starts working again. Upon logging in again, they find nothing has changed. At least they can't mess with the settings now.
Any better ideas? I am hoping in the future to get permission to give them all their own logins.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 02:04 PM
08-21-2003 02:04 PM
Re: Disable "set home session" ability
Then you can set environment settings accordingly.
Unfortunately, I have no idea how to implement it, not being a CDE maven.
Its an environment variables though. Nice solution though, even though it inconveniences the user that tries to save settings. Permissions are quite useful aren't they.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 02:12 PM
08-21-2003 02:12 PM
Re: Disable "set home session" ability
Have a look in $HOME/.dt/sessions
There is a directory there called home.
Change the permissions so that they are read only.
Further, have a look at the suggestions in this posting by Alex. (He is a guru in CDE)
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcc0e06350fe2d61190050090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 02:35 PM
08-21-2003 02:35 PM
Re: Disable "set home session" ability
Thanks Steven and Mike. I think that I may try the sessionexit script. Since they work different shifts, one exits before the other comes. That script could copy the session settings over the home session each time they exit from another source, effectively resetting them upon each logout. Thanks for linking me to Alex's suggestions.