HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- login scripts
Operating System - HP-UX
1832346
Members
2169
Online
110041
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-30-2002 12:56 AM
05-30-2002 12:56 AM
login scripts
Hi,
I need to write a login script which will set some env. params whenever the user login.
Can anybody suggest any template ...for that.
thnks
I need to write a login script which will set some env. params whenever the user login.
Can anybody suggest any template ...for that.
thnks
Never Say Die
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 01:02 AM
05-30-2002 01:02 AM
Re: login scripts
Use the following file as a template - thats what its for;
/usr/newconfig/.profile
And edit it and add any environmental variables or commands you want to run at the bottom of it then copy to users home directories. This is the normal procedure for doing what you want.
Im from Palmerston North, New Zealand, but somehow ended up in London...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 01:03 AM
05-30-2002 01:03 AM
Re: login scripts
Hi
Write a seperate script . can be different for each user . Directory /usersetup File=$LOGNAME
Then in /etc/profile at end
if [ -x /usersetup/$LOGNAME ]
then
. /usersetup/$LOGNAME
fi
Everybody runs /etc/profile and then if a
user needs special setup it will happen.
Note. 1 . The script must be executable
2. The . in the beginning of the line
which adds the data at the current process level.
Steve Steel
Write a seperate script . can be different for each user . Directory /usersetup File=$LOGNAME
Then in /etc/profile at end
if [ -x /usersetup/$LOGNAME ]
then
. /usersetup/$LOGNAME
fi
Everybody runs /etc/profile and then if a
user needs special setup it will happen.
Note. 1 . The script must be executable
2. The . in the beginning of the line
which adds the data at the current process level.
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 01:13 AM
05-30-2002 01:13 AM
Re: login scripts
Hi,
Once your script has been written as
a default profile, you could use it
in /etc/skel/profile. Once used it can
be deployed to new users on your system.
As suggested you can use the template
that is provided.
Cheers
~Michael~
Once your script has been written as
a default profile, you could use it
in /etc/skel/profile. Once used it can
be deployed to new users on your system.
As suggested you can use the template
that is provided.
Cheers
~Michael~
Anyone for a Mutiny ?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP