Find the answer to your Linux question:
Results 1 to 3 of 3
Hi This is my script.sh file cd /usr/X11R6/lib mv -f libXm.so.2 libXm.so.2.backup ln -s libXm.so.3 libXm.so.2 this file executed by only root user but i want oracle user execute this ...
  1. #1
    Just Joined!
    Join Date
    Nov 2007
    Posts
    31

    script execute problem

    Hi

    This is my script.sh file

    cd /usr/X11R6/lib
    mv -f libXm.so.2 libXm.so.2.backup
    ln -s libXm.so.3 libXm.so.2

    this file executed by only root user
    but i want oracle user execute this script.sh file...how ?please help me

    note : -rwxrwxrwx 1 root root script.sh

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Try the changing the ownership to Oracle. But I still doubt the if the Oracle user could do that. Because the to change files/links in /usr/X11R6 path, the ownership of the path also matters.
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  3. #3
    Just Joined!
    Join Date
    Nov 2007
    Posts
    31
    Hi
    thanks for reply
    i try it from oracle user,ownership oracle,chmod 777
    but
    mv: cannot remove `libXm.so.2.backup': Permission denied
    ln: creating symbolic link `libXm.so.2' to `libXm.so.3': File exists
    what i do ?please ....
    i am excepting ,don't give root password for oracle user,
    but scripts is working fine that is all.....any idea about hot code the password?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...