Standard login shell


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Standard login shell
# 1  
Old 11-05-2001
Bug Standard login shell

Hello

By default for root the login shell is /bin/sh. In the file /etc/passwd I changed it to /bin/bash. (/bin/bash does exists!) After I logged out and in again I still have /bin/sh as the shell and not /bin/bash. Are the more files to be edited? I am using SCO-Unix.

I am thankfull for any tipps and information.

Thanks
Marcus
# 2  
Old 11-05-2001
What do you get when you type...

env | grep SHELL

...you should see somthing like...

SHELL=/bin/bash

...if not, verify that SHELL is not
being set in root's .profile (or something).
# 3  
Old 11-05-2001
Usually if the login shell cannot be found (eg. /bin/noshell) then the account will not be logged in. Check to see that /bin/bash is not just a link to /bin/sh. You might want to type /bin/bash when you login to see if that changes the shell, if not then you really don't have bash.
# 4  
Old 11-05-2001
That is what I do normally. The first thing is to start bash. So it does exists.

After I changed the passwd file (/bin/sh to /bin/bash) I logged in and issued the command env | grep SHELL. The output I got was SHELL=/bin/sh. Now, rwb10959 adviced me to look in .profile or something. The only file for the sh-Shell is .sh_history in my home-directory.

Marcus
# 5  
Old 11-05-2001
A couple more things to look at...

Check to see if SHELL is being set in
/etc/profile or /etc/defaults/profile (not sure if SCO has this)

Also, check to see if you have a /etc/shells file.
Normally, this file is used to tell the system what the
"valid" shells are for that system. If /bin/bash is not listed,
you will have to add it in. Again, I'm not sure SCO has this.

Worst case, you should be able to add the line

exec /bin/bash -l

...to root's .profile file. This will change your execution
environment to bash and run it as a login (-l) shell.
This way, you can have a .bash_profile file that will be sourced.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script as login shell (passing args to login shell)

Hello all, for security reasons my compagny imposes that my script be launch remotly via ssh under the users login shell. So serverA launches the ssh command to serverB which has a local user with my script as a login shell. Local script works like a charm on his own. serverB$ grep... (20 Replies)
Discussion started by: maverick72
20 Replies

2. UNIX for Dummies Questions & Answers

Mounting a standard user, windows share at login

I know how to mount my share via /etc/fstab automatically when the system boots but since I do not have root permission to access the /etc/fstab nor do I think that the system admin wants me to add an entry in /etc/fstab all together. So what file could I add my mount entry in? mount -t cifs... (8 Replies)
Discussion started by: metallica1973
8 Replies

3. Shell Programming and Scripting

Unix Shell scripting -How to skip User Standard input section from another script

All, problem Description: For example: I have two shell scripts(executables). let name it as script1 and script2.I'm trying to execute script1 from script2. while executing script2, script1 is asking for manual input(input from keyboard). Now i need to know how I can skip this user input... (3 Replies)
Discussion started by: techie99
3 Replies

4. UNIX for Dummies Questions & Answers

Redirect Standard output and standard error into spreadsheet

Hey, I'm completely new at this and I was wondering if there is a way that I would be able to redirect the log files in a directories standard output and standard error into and excel spreadsheet in anyway? Please remember don't use too advanced of terminology as I just started using shell... (6 Replies)
Discussion started by: killaram
6 Replies

5. Shell Programming and Scripting

standard error to standard out question

Hi there how can i get the result of a command to not give me its error. For example, on certain systems the 'zfs' command below is not available, but this is fine becaues I am testing against $? so i dont want to see the message " command not found" Ive tried outputting to /dev/null 2>&1 to no... (5 Replies)
Discussion started by: hcclnoodles
5 Replies

6. Linux

How to Start a Shell as Login shell instead of ordinary shell

Hi I tried with bash --login option. but the output is siva:~$ bash --login siva:~$ is there any way to make the shell ask for user id and password ( and login as different user instead of using sudo / su ) Thx in advance Siva (3 Replies)
Discussion started by: Sivaswami
3 Replies

7. Solaris

Run fsck from standard login

Hello. I have created a FS /u00/ and created a non-root login under this FS. Also, disabled direct root login. Now is it possible or worth moving this login over to the root partition or allowing mount/umount + fsck from a standard account. As I am not able to run fsck for this FS. How to... (5 Replies)
Discussion started by: panchpan
5 Replies

8. Shell Programming and Scripting

Convert from standard epoch time from a shell script?

Is there an easy method to do an on the fly conversion of a standard epoch time (seconds from 1970) to more readable date format? Does Unix have anything built in to do this? (4 Replies)
Discussion started by: LordJezo
4 Replies

9. 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

10. Shell Programming and Scripting

Coding Standard For Unix Shell Scripting!!!

Is there any site on Coding Standard for Shell Scripting in UNIX. Please help me know!!!!! Thanks Om (1 Reply)
Discussion started by: Omkumar
1 Replies
Login or Register to Ask a Question