09-07-2005
Yes. it shows the login shell, which I should have mentioned.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do you know what shell you're in? I'm not looking for my login shell, but the one that i'm in currently.
Example:
bash-2.03$ csh
aries% ksh
$
What indicates that i'm in the c shell or the korn shell? (4 Replies)
Discussion started by: shad0w75
4 Replies
2. UNIX for Dummies Questions & Answers
Hi Guru's,
How do I find and set the login idle time setting in HP-UX 32?
Thanks in advance,
Mani (1 Reply)
Discussion started by: jvmani
1 Replies
3. UNIX for Dummies Questions & Answers
Hi all
Is ther anyway I can findout the date on which a file was created???
Regards
Sube (3 Replies)
Discussion started by: sube
3 Replies
4. HP-UX
Hi,
In unix box GCC installed under the /usr/local/bin/gcc, i want to know the version of GCC.
Could you please let me know the process for that.
Thanks & Regards,
Suji (1 Reply)
Discussion started by: srujana
1 Replies
5. Shell Programming and Scripting
How to run another shell and have all current shell dectaration copied to that new shell?
I would like to have available all current declarations in a new shell. That are functions, aliases, variables.
I need to test some functions that use the 'exit', but running it in current shell on... (9 Replies)
Discussion started by: alex_5161
9 Replies
6. UNIX for Dummies Questions & Answers
when I get from my shell into other shell, what is the best way to identify the current new shell in a script ?
for example: logged on with bash, and typed csh.
I got out the following option:
ps -ef | awk -v PID=$$ '{ if ( $2 == PID ) { gsub ("-","") ; print $NF}}'
any other idea ? (3 Replies)
Discussion started by: ynixon
3 Replies
7. UNIX for Advanced & Expert Users
Hi all,
How to findout the file sytem type which is NFS and which is Local?
Suppose i have 5 different folders my in Root directory. dir 4 and 5 are mounted on different file system and dir 1,2 and 3 are mounted on different fild system
Now i wanted know which file sytem is Local and which... (1 Reply)
Discussion started by: psiva_arul
1 Replies
8. Linux
I have to write Linux script to findout what kind of ilo is been installed in the given ip address either ilo/LO100 or no device found.
IP address will be given in the command line of the script.
-> With out log on to the ip address, should get the ilo type installed in that machine.
1. I... (1 Reply)
Discussion started by: skmdu
1 Replies
9. Shell Programming and Scripting
hi
Friends,pls help me ,
1.I have one directory,in that directory i have one path like /user/bin/perl
like this.
2.how to find out that path and how to know the that path is existed or not in
that directory.
3.can u people give me one shellscript for this scenario.
Regards
vasu (1 Reply)
Discussion started by: vas
1 Replies
10. AIX
Frequently i am getting "total CPU is now 100.00%, which is above the error threshold (90%)" this error . (3 Replies)
Discussion started by: ranjithm
3 Replies
chsh(1) General Commands Manual chsh(1)
NAME
chsh - change default login shell
SYNOPSIS
login-name [shell]
login-name [shell]
login-name [shell]
login-name [shell]
DESCRIPTION
The command changes the login-shell for a user's login name in the repository (see passwd(1)).
The DCE repository is only available if Integrated Login has been configured; see auth.adm(1M). If Integrated Login has been configured,
other considerations apply. A user with appropriate DCE privileges is capable of modifying a user's shell; this is not dependent upon
superuser privileges.
If the repository is not specified (as in [login-name]), the login shell is changed in the file only.
Run after running to make sure the information was processed correctly.
Notes
The command is a hard link to the command. When is executed, actually the command gets executed with appropriate arguments to change the
user login shell in the repository specified in command line. If no repository is specified, the login shell is changed in the file.
Arguments
login-name A login name of a user.
shell The absolute path name of a shell. If the file exists, the new login shell must be listed in that file. Otherwise, you
can specify one of the standard shells listed in the getusershell(3C) manual entry. If shell is omitted, it defaults to
the POSIX shell,
Options
The following option is recognized:
Specify the repository to which the operation is to be applied.
Supported repositories include and
Security Restrictions
You must have appropriate privileges to use the optional login-name argument to change another user's login shell.
NETWORKING FEATURES
NFS
File can be implemented as a Network Information Service (NIS) database.
EXAMPLES
To change the login shell for user to the default:
To change the login shell for user to the C shell:
To change the login shell for user to the Korn shell in the DCE registry:
WARNINGS
If two or more users try to write the file at the same time, a passwd locking mechanism was devised. If this locking fails after subse-
quent retrying, terminates.
AUTHOR
was developed by HP and the University of California, Berkeley.
FILES
SEE ALSO
chfn(1), csh(1), ksh(1), passwd(1), sh(1), sh-posix(1), getusershell(3C), pam(3), passwd(4), shells(4).
chsh(1)