Visit The New, Modern Unix Linux Community

Profile use

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Profile use
# 1  
Profile use


does anyway know how I can make a script which resides in dir:


available to other users without them having to set their environment to

export PATH

in their profiles. This is done so they can simply type myscript on the command line.

i.e. I don't want every user having to update their profiles or even using them. Is there an easier way to have control of users settings? by the way I am just another user so I haven't got access to /local/bin etc so this would be my own directory.
# 2  
They could just type the full path to the script?

Or, you could always ask (nicely) an Admin to add the path in /etc/profile, /etc/environment, or some such. But that might fall on deaf ears.

Would it really kill them just to add either the path, or an alias to the script, in their .profile?

edit: or a sysadmin-created sym-link in some public bin directory (I forgot to mention), as cabrao says Smilie
# 3  
If you are not 'root' in order to update /etc/profile or in order to create a symbolic link to /usr/local/bin or something, I believe you are forced to tell users to type full script path or update their PATH variable
# 4  
interesting points, yet I guess it leaves me still with the same problem.

ummmm, may have to ask nicely to the admin person then
# 5  
On a minor point of syntax there should only be one equals sign in an assignment.

export PATH

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #106
Difficulty: Easy
A kernel is at the heart of the Linux OS; and this kernel acts as an interface between the user and underlying hardware.
True or False?

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

profile name

How to chage my profile name? (1 Reply)
Discussion started by: kkalyan
1 Replies

2. Shell Programming and Scripting


Hi, I have entry in .profile like this : alias GH='. /opt/dba/oraadmin/tools/' and script has some thing like this : #!/bin/ksh echo "Setting the GRID_HOME env variables" ORACLE_SID=GRID_HOME;export ORACLE_SID ORACLE_HOME=$GRID_HOME;export ORACLE_HOME... (1 Reply)
Discussion started by: talashil
1 Replies

3. Infrastructure Monitoring

trap in etc/profile and user .profile

Hello I really wonder what's trap in etc/profile and in each user .profile. I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing. I want to know ... 1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies

4. UNIX for Dummies Questions & Answers

difference between /etc/profile and .profile?

What is the difference between /etc/profile and .profile? (5 Replies)
Discussion started by: gehlnar
5 Replies

5. UNIX for Dummies Questions & Answers

$ . ./.profile

Could anyone explain what the following command means: $ . ./.profile (3 Replies)
Discussion started by: MikeBigjohn
3 Replies

6. UNIX for Dummies Questions & Answers

Where can I read about the difference between "..profile" and ".profile"

Hi I know from reading O Riley's Classic Shell Scripting' that the .profile file is " the shells configuration file" but I am unable to find a reference to what "..profile" means. I have searched on the net, Sams Teach Yourself Unix, Unix Visual Quickstart Guide and Linux in a Nutshell. I have... (2 Replies)
Discussion started by: zorrokan
2 Replies

7. SCO

Difference between .profile and .~/.profile

what is the difference between these two lines, if we use it in korn shell script: .profile .~/.profile (3 Replies)
Discussion started by: maneesh mehta
3 Replies

8. UNIX for Dummies Questions & Answers

How to get to my .profile?

Hi, When I logon to UNIX I go to the root directory. I don't have an assigned user directory. I need to get to my .profile so that I can change things like command prompt. How do I do this? By the way I am using SUN Solaris Thanks. (3 Replies)
Discussion started by: GMMike
3 Replies

9. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies

10. UNIX for Dummies Questions & Answers

why i have local.profile, local.cshrc,local.login instead of .profile, .login ?

Hello again ! Thanks for response of my first question. there is my second quesiton why i have local.profile instead of .profile file ? my all files in pwd shoes local. before any file. is anybody can tell me about that ? Thanks Abid Malik (5 Replies)
Discussion started by: abidmalik
5 Replies

Featured Tech Videos