- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to setup commands from /bin to run for all
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
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
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
тАО02-13-2002 07:30 AM
тАО02-13-2002 07:30 AM
I have some commands for a few of our apps, and there are links put in /bin/. When I am root, I can type the command anywhere, and it will work. If I am logged in as myself, I can't type it in (even in /bin); it says not found. If everyone has read access to /bin, how do I setup so that I can use the commands in it as a normal user. I figure something goes in my .profile, but can't think of what. Thanks, all!
Mark
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2002 07:34 AM
тАО02-13-2002 07:34 AM
SolutionThough everyone will not be able to use the commands in /bin, but still you can add it to their search path. Edit /etc/profile and add this line,
export PATH=$PATH:/bin
This will add /bin to the path of all the users and then can access the commands. Not sure they would be able to execute them too. You need root access to execute most of the commands in this directory.
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2002 07:34 AM
тАО02-13-2002 07:34 AM
Re: how to setup commands from /bin to run for all
the permissions should be 555 on the directory.
and if the PATH variable does have /bin or /sbin, then add it to /etc/profile.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2002 07:37 AM
тАО02-13-2002 07:37 AM
Re: how to setup commands from /bin to run for all
Two things to check up,
1) Set PATH in /etc/profile ( global profile )
eg: PATH=$PATH:/bin
export PATH
2) Permissions of /bin - should be 'r-x' for 'others'
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2002 07:39 AM
тАО02-13-2002 07:39 AM
Re: how to setup commands from /bin to run for all
If they are using a shell other than /usr/bin/sh then you will need to modify to appropriate file(s) for that shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2002 07:49 AM
тАО02-13-2002 07:49 AM
Re: how to setup commands from /bin to run for all
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2002 05:14 AM
тАО02-14-2002 05:14 AM
Re: how to setup commands from /bin to run for all
You should avoid using /bin and /lib. These, among others, are "transition" links initially provided with the advent of 10.x when the HP-UX filesystem layout changed from 9.x and earlier and was modeled after AT&T SVR4 and OSF/1.
If you do an 'ls -l' at the root level, you will see something like:
lr-xr-xr-t 1 root sys 8 Aug 20 1997 bin -> /usr/bin
lr-xr-xr-t 1 root sys 8 Aug 20 1997 lib -> /usr/lib
The 't' denotes a transition link and as the name implies is provided for some indefinite period while you "transition" your software to reference the new directories.
If the links are lost, you can recover all of them by running this:
# /opt/upgrade/bin/tlinstall -v
There are man pages available and are worth reading.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2002 05:58 AM
тАО02-14-2002 05:58 AM
Re: how to setup commands from /bin to run for all
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2002 07:49 AM
тАО02-15-2002 07:49 AM
Re: how to setup commands from /bin to run for all
Since you can run it as root and not as yourself, it smacks of a permissions problem.
Say the command is X, so under /usr/bin you have a soft link X -> /some/other/location/X.
Check the permissions on each level of /some/other/location to make sure that non root users can even see the directory, and that X is executable by everyone.
ls -ld /some /some/other /some/other/location /some/other/location/X
All of the directories and the file should be at least r-xr-xr-x for everybody to be able to execute X.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2002 11:50 AM
тАО02-16-2002 11:50 AM
Re: how to setup commands from /bin to run for all
You don't want to run into the problem of giving users permissions to some commands that should be only used by the super user. You can face a real administrive dilemma later on if things go wrong.
I mean, we all like to automate and make sure users can do things on their own, after all that's one of our main goals as administrators, to automate as much as possible. However, sometimes by trying to make things too easy on ourselves we end up with headaches that put us in a spot when burning some midnight oil is necessary.