1838619 Members
2130 Online
110128 Solutions
New Discussion

./

 
SOLVED
Go to solution
navin
Super Advisor

./

Hi ,
i have an oracle account and has /usr/bin/sh as the login shell. in order to run the script - needed to excecute as ./script0.sh ,
i would like to do just script.sh ..how can i set the default shell
thanks much
Learning ...
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: ./

Hi:

If you truly mean that in place of presenting the user with a shell prompt upon login, you want to unconditionally execute a script, called "script.sh", then yes, specify an absolute path like '/home/orauser/script.sh' in the last field of the '/etc/passwd' line for "orauser".

Regards!

...JRF...
Kenan Erdey
Honored Contributor

Re: ./

Hi,

As /home/orauser/script.sh is not a standart shell, this shell should be in /etc/shells with other shells in /etc/passwd. if /etc/shells isn't there you can create and put them in this file.

Kenan.
Computers have lots of memory but no imagination