- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: .profile issue
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
03-29-2005 12:39 PM
03-29-2005 12:39 PM
.profile issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 12:44 PM
03-29-2005 12:44 PM
Re: .profile issue
Check shell in /etc/passwd....
Check /etc/profile....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 12:50 PM
03-29-2005 12:50 PM
Re: .profile issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 02:07 PM
03-29-2005 02:07 PM
Re: .profile issue
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 03:35 PM
03-29-2005 03:35 PM
Re: .profile issue
In the /var/tmp directory the sh**** files are set at 6 and I changed the ownership to oracle:dba.
Also with this point system how do I award the points? I tried it once before, but was unsuccessful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 12:57 AM
03-30-2005 12:57 AM
Re: .profile issue
"But I do still get a minor error saying (su/var/tmp/sh2950.13: Cannot create the specified file.) In the /var/tmp directory the sh**** files are set at 6 and I changed the ownership to oracle:dba.
First, the path: su/var/tmp/sh2950.13 means that in whatever directory you are now located, the su directory as well as the subdirectories var and tmp must exist before the file can be created. I doubt that this is what was intended. If the "su" was a typo and the directory is /var/tmp, then the permissions on /var/tmp are 777 (or 1777) and owner is bin:bin.
Now the files can be 666 although that is bad sysadmin practice, they should be 644 or even 600. Look at the contents of the sh* files--they are probably temp files that can be removed.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 01:20 AM
03-30-2005 01:20 AM
Re: .profile issue
chmod +t /var/tmp
As far as points go:
How Do I Assign Points?
Only the question author can assign points to a given response. If you submit a question or new topic and another member replies to it, you will see a dropdown menu of points next to the reply (you must be logged in to see the menu). Select the point value and then click the "submit points" button. Note that you can rate multiple replies and submit them at one time.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 02:23 AM
03-30-2005 02:23 AM
Re: .profile issue
The other suggestions you've both gave has helped me to allow other users onto the system, but not these users. Any more suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 02:51 AM
03-30-2005 02:51 AM
Re: .profile issue
set > /tmp/user1-localenv
env > /tmp/user-2myglobalenv
Then login to a working user's account and do the same thing. Now compare the two files:
diff /tmp/user1-localenv /tmp/user2-localenv
diff /tmp/user1-globalenv /tmp/user2-globalenv
Now this all assumes a *NORMAL* login using telnet and /usr/bin/sh as the shell. Since you said that users are sharing the same $HOME directory (is that correct?), this can be extremely problematic (anyone of them can mess around with local files and directories). Shared $HOME is not a stable way to control environments, in fact it has the opposite effect.
If the users are not Unix-savvy, don't give them any command shell at all. Instead, write a clean shell script menu so they never get a shell prompt. This script becomes the user's shell in /etc/passwd and each user has their own $HOME with a simple .profile (the menu program takes care of all the required settings).
You might have to explain a bit more on how the users actually login (what is their shell and what is run automatically?).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 03:03 AM
03-30-2005 03:03 AM
Re: .profile issue
We've had problems with the unix server in the past, due to the network switching to Active Directory, or the network people running scans on the network, or using SMS to different systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 03:11 AM
03-30-2005 03:11 AM
Re: .profile issue
grpck
logins -d
logins
Still confused about what exactly is your problem.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 03:22 AM
03-30-2005 03:22 AM
Re: .profile issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 03:39 AM
03-30-2005 03:39 AM
Re: .profile issue
Run the menu script through set -vx and check if it executes ok or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 04:18 AM
03-30-2005 04:18 AM
Re: .profile issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 05:23 AM
03-30-2005 05:23 AM
Re: .profile issue
Can you post the menu?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 05:50 AM
03-30-2005 05:50 AM
Re: .profile issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 05:58 AM
03-30-2005 05:58 AM
Re: .profile issue
type apps1
type apps2
Does it resolve?? Does menu script sets the PATH?? If yes, Change to
PATH=$PATH:/something/xx:/cc/vv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 06:15 AM
03-30-2005 06:15 AM
Re: .profile issue
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 06:20 AM
03-30-2005 06:20 AM
Re: .profile issue
Thanks for all of the help. This makes me feel more confiednt in using the HP forums as solid viable resources.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 06:23 AM
03-30-2005 06:23 AM
Re: .profile issue
export PATH=$PATH:/some/new/path/or/2
You're going to have to trace the menu operations because the visible errors aren't giving you any clues. Login to a user that works OK but don't run the menu. If the menu is run automatically, put the word: echo in front of it. Once in the shell, run the menu program like this:
sh -x /comp 2>/tmp/menu.log
Now the menu will run but a trace of each step will be put into the menu.log file. NOTE: /comp is a bad place for any executables or scripts. Once you get the trace output, you can see where it fails UNLESS the script has a number of functions (sh -x only traces the main program) or the script calls other scripts. You can put set -x into each of the menu functions and subscripts.
The error message: jssadp: /var/tmp/sh****.## likely indicates that the jssadp script needs some tracing. If there are any sh****.## files in /var/tmp, look at the contents and see if you can correlate them to something in the jssadp script.
Bill Hassell, sysadmin