Changing the Login Path


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Changing the Login Path
# 1  
Old 01-23-2013
Changing the Login Path

Hi frnds!
i m installing a software named 'Gamit' by using bash.
bt i recieved the follwoing error:

.. removing any existing Makefiles or archive files from libraries directories
/root/Documents/ISP/Gamit_10.4/com/rmfresh: Permission denied.

.. removing any existing Makefiles or archive files from gamit directories
/root/Documents/ISP/Gamit_10.4/com/rmfresh: Permission denied.

.. making libraries and gamit
/root/Documents/ISP/Gamit_10.4/com/make_gamit: Permission denied.
Failure in make_gamit -- install_software terminated


while i have made sure that all the files are in their respective directories where they should be!
bt i guess i dont have permission to execute it!
then i reviewed the instruction and found a particular instruction given on shell and that was ,

To execute GAMIT and GLOBK you will need to set your login path to
include /root/Documents/ISP/Gamit_10.4/com /root/Documents/ISP/Gamit_10.4/gamit/bin /root/Documents/ISP/Gamit_10.4/kf/bin



after that i tried to change my login path by applying this
export PATH=include
export PATH=/root/Documents/ISP/Gamit_10.4/com
export PATH=/root/Documents/ISP/Gamit_10.4/gamit/bin
export PATH=/root/Documents/ISP/Gamit_10.4/kf/bin

and all of them are accepted !
bt then "sudo" command is not getting accepted by the shell!!

After changing the path when i give Sudo or chmod command then this happens:




SUSE1:~/Documents/ISP/Gamit_10.4 # chmod 755 install_software
If 'chmod' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf chmod




INfact it is not accepting any of the command like
ls
dir
or
cnf itself
when i give 'cnf' commanbds it says ,
If 'cnf' is not atype you can use command-not-found to lookup the [ackage that contains it, like this:
cnf cnf





while i m already log in from 'root'


Kindly HELP me out from this!

---------- Post updated at 06:43 AM ---------- Previous update was at 06:05 AM ----------

I have changed the read/write/execute permission to that file on which permission was denied!
and it executed bt later on!
It give same error to another file! i know by giving chmod it will work to!
bt can anyone tell me that how can i apply chmod to all the files in the directory?

NOW acing thiis error!

SUSE1:~/Documents/ISP/Gamit_10.4 # sudo ./install_software

GAMIT and GLOBK to be installed into /root/Documents/ISP/Gamit_10.4

If you need help with command line options type CTL_C now and type
install_software -help on the command line

The compressed tarfiles will be removed after extraction of the
directories, but except for that, the script may be stopped and
rerun safely from any point. Tarfiles to be uncompressed:

ls: No match.


Continue ? (y/n)


.. uncompressing and extracting the directories:


.. adding /root/Documents/ISP/Gamit_10.4/com to your search path to continue installation


To execute GAMIT and GLOBK you will need to set your login path to
include /root/Documents/ISP/Gamit_10.4/com /root/Documents/ISP/Gamit_10.4/gamit/bin /root/Documents/ISP/Gamit_10.4/kf/bin

You will also need the alias or link gg --> /root/Documents/ISP/Gamit_10.4


Your Operating System type is: Linux
Your default awk version is: /usr/bin/awk

Searching directories set in libraries/Makefile.config for X11 installation
Verified these paths to X11 libs and includes
X11LIBPATH:
X11INCPATH: /usr/include

Are these paths complete and correct for your system? (y/n)

X11LIBPATH and X11INCPATH OK in libraries/Makefile.config.

GAMIT dimensions in /libraries/Makefile.config are set to
maxsit = 60
maxepc = 2880
maxatm = 13
maxsat = 32

Are these defaults found in Makefile.config correct?
If NOT edit the Makefile.config now before choosing to contine
Continue ? (y/n)


.. removing any existing Makefiles or archive files from libraries directories
Removing object and archive files from libraries directories
Removing machine-specific Makefiles from libraries directories
Removing residual trace files from libraries directories

.. removing any existing Makefiles or archive files from gamit directories
Removing object and archive files from gamit directories
Removing machine-specific Makefiles from gamit directories
Removing residual trace files from gamit directories

.. making libraries and gamit

Reading gamit/Makefile.config to get program dimensions

The old settings are:
dimpar.h PARAMETER (maxsat=32)
dimpar.h PARAMETER (maxsit=60)
dimpar.h PARAMETER (maxatm=13)
cview.h parameter(ncvsit=60)
makex.h PARAMETER (MAXEPC=2880)


++++++++++++++++++++++++++++++++++++++++++
Make sure the common libraries are current
++++++++++++++++++++++++++++++++++++++++++


Running unimake to create Makefile for comlib
System name: Linux SUSE1.site 3.1.0-1.2-desktop #1 SMP PREEMPT Thu Nov 3 14:45:45 UTC 2011 (187dde0) x86_64 x86_64 x86_64 GNU/Linux
System release number translated to 3101
No i86 compiler specification--assuming gfortran (gcc 4.2x)
ls: No match.
Machine-dependent source-files selected for com_lib : bit_util_gftn cand_gftn cor_gftn fmpopen_gftn getdir_gftn getmac_gftn inkey_gftn irename_gftn pickfn_gftn fseekg_gftn fmprename_gftn fmpshortname_gftn fmprunprog_gftn ferror_gftn systime_gftn execute_gftn
bit_util_gftn.[cf]: No match.
Failure in make_gamit -- install_software terminated



can anyone tell me what does this error in red , bold means????????????????????????????????? and how to resolve it?

Last edited by Engr. Shoaib; 01-23-2013 at 08:19 AM..
# 2  
Old 01-23-2013
Your system path variable "PATH" has changed by you completely.
Common path are /usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:.
To add new path into PATH variable use.
Code:
 
export PATH=$PATH:/new/path

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Convert Relative path to Absolute path, without changing directory to the file location.

Hello, I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies

2. UNIX for Dummies Questions & Answers

Changing path in many files

I have many html files in a directory tree and want to change the a path declaration within the files. Files will look as below I want to remove "geopdf/" so I get as example href=../../../geo1937/geo02n01/geo0201r00010016.pdf rather than keeping the entry as ... (1 Reply)
Discussion started by: kristinu
1 Replies

3. UNIX for Dummies Questions & Answers

Changing Path Variable

Blank Blank Blank (11 Replies)
Discussion started by: pvibien
11 Replies

4. Post Here to Contact Site Administrators and Moderators

Changing login details

Dear Administrators! I would like to change my username for this forum, would it be possible? Regards FR (1 Reply)
Discussion started by: fretagi
1 Replies

5. Shell Programming and Scripting

Changing the path

Hi , Iam changing the path in weblogic from /opt/user/shared/mydomain to /opt/users/shared/multidomain i have to change the below configuration files by using scripting am using for loop and sed to change the below files. for i in ${b}startWebLogic.sh... (1 Reply)
Discussion started by: sam1226
1 Replies

6. Shell Programming and Scripting

Executing Commands From Non-Standard Path (Changing user's PATH secretely???)

Hi: I have a requirement as below: I have some standard Unix commands modified and kept them in a directory say /usr/clsh/bin. For example I have a script named "ls" kept here which is modified version of "ls" (say it always gives long listing i.e. ls -l). When any user logs on and types... (2 Replies)
Discussion started by: ramesh_samane
2 Replies

7. Shell Programming and Scripting

How to change prompt color when changing path

Hi all, Can you tell me how to change the prompt color (only the path part) when I chnange directory with "cd"? I use the sequence below in ".bashrc" (Solaris 8) to change my prompt colors and I'd like to modify it to change the path color when I cange directory. PSC() { echo -ne "\"; }... (0 Replies)
Discussion started by: majormark
0 Replies

8. HP-UX

cannot login after changing login shell

Hello Everyone, I am a newbie in unix. I was practicing shell scripts on hp unix machine. I changed my current login shell (Korn) to Bourne shell giving the following command. $ chsh username /usr/bash I am using secure shell client for accessing the hp ux server. After which i... (4 Replies)
Discussion started by: hardesh
4 Replies

9. UNIX for Dummies Questions & Answers

changing login prompt on redhat

Hi... Can anyone help! I am in dire need to change the "login:" prompt to "username:" any ideas? Thanks in advance :) (6 Replies)
Discussion started by: juilan
6 Replies
Login or Register to Ask a Question