- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to modify User Path Enviornemt to include addi...
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
Discussions
Discussions
Forums
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
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
тАО01-26-2011 10:08 AM
тАО01-26-2011 10:08 AM
How to modify User Path Enviornemt to include additional dir
Also how can I identify at setup or modify existing accounts if I want their shell to be BASH instead of what it is currently?
A million thanks
John
- Tags:
- PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2011 10:21 AM
тАО01-26-2011 10:21 AM
Re: How to modify User Path Enviornemt to include additional dir
PATH=$PATH:.
You could add to this as follows:
PATH=$PATH:/opt/Opensource/software:.
Or if you want every user to have access to this path edit the file /etc/PATH to include the directory. This file is sourced by /etc/profile for every user.
You do not mention the OS version, but the simplest way to change a user's default shell is to use the utility "sam" (for version 11.11 and 11.23) or the utility "smh" (for version 11.31). Either way look for Users and Groups and edit that user's "start up program" as needed. This will edit the /etc/passwd file making the needed changes.
-Bob
Was this helpful? Like this post by giving me a thumbs up below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2011 10:21 AM
тАО01-26-2011 10:21 AM
Re: How to modify User Path Enviornemt to include additional dir
something like the below.
export PATH=$PATH:/opt/Opensource/software
I do not believe bash is fully operational on hpux but if you really want it then,
edit /etc/passwd for the user and change the last field. or usermod -s /path/to/bash username
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2011 11:18 AM
тАО01-26-2011 11:18 AM
Re: How to modify User Path Enviornemt to include additional dir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2011 11:37 AM
тАО01-26-2011 11:37 AM
Re: How to modify User Path Enviornemt to include additional dir
Very new to _which_ HP-UX?
uname -a
Changing the shell for user "root" can cause
serious problems, so I'd advise leaving that
user's shell unchanged. Changing the shell
for other users should be mostly harmless.
> I do not believe bash is fully operational
> on hpux but if you really want it then,
I use it without any trouble. What do you
think doesn't work properly? (In which
"bash" version? On which HP-UX version?)
> [...] please forgive my simple question.
You really should do some reading.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2011 11:47 AM
тАО01-26-2011 11:47 AM
Re: How to modify User Path Enviornemt to include additional dir
For HP-UX, easiest is to edit /etc/PATH and add the software's executable's path. It will set all user's PATH to include the changes you made irrespective of their SHELL.
Now to change the SHELL of your users, you can USE:
usermod
OR
chsh
whch is the PROPER way to do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2011 11:53 PM - edited тАО07-09-2011 03:26 PM
тАО01-29-2011 11:53 PM - edited тАО07-09-2011 03:26 PM
Re: How to modify User Path Environment to include additional dir
>for user smithj
Any reason you don't let each user do this themselves?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2011 08:19 AM
тАО01-30-2011 08:19 AM
Re: How to modify User Path Enviornemt to include additional dir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2011 10:09 AM
тАО01-30-2011 10:09 AM
Re: How to modify User Path Enviornemt to include additional dir
SInce you mentioned the Bash shell, I will caution you that that's fine for non-root users to have defined (in '/etc/passwd') their default shell to be Bash. *However* do not ever change root's default shell from the statically linked '/sbin/sh'. To do so may leave you with an un-startable system.
Regards!
...JRF...