05-30-2007
Beware!
Note that changing your login shell can pose problems as in AIX the allowed login shells are listed in /etc/shells AND in /etc/security/login.defs. You must edit both files and make sure your desired shell is listed in there, otherwise you would lock yourself out from the system by changing your login shell.
bakunin
10 More Discussions You Might Find Interesting
1. AIX
:confused:
Hello everybody, I am a totel dummy when it comes to UNIX!!!
Must be wondering what I am doing here right?
I'm most keen on knowing about-it-all.
I need help.
Wanna know all about the IBM AIX. The versions, the latest.
Please tell me how do I go about my search.
Thanks a... (3 Replies)
Discussion started by: rtanuja
3 Replies
2. UNIX for Advanced & Expert Users
why IBM-AIX is preferred over HP-UX .....
In what way it is better for infrastructure......?
Suggestions are welcome...
Suggest you read the RULES (0 Replies)
Discussion started by: bishweshwar
0 Replies
3. AIX
Hi All :b:,
Motto : I am in need of IBM-AIX INTERVIEW QUESTIONS.
I am working as an a operator, on solaris 5.10 env. i have got an opportunity of IBM-AIX Administrator Job. I really don't want to miss this opportunity.
By the way i have basic knowledge of Solaris UNIX, I have confident i... (7 Replies)
Discussion started by: imrankhan.in
7 Replies
4. AIX
hello all,
can anyone send me ibm aix L1 interview questions...
thank u guys...jiyojith (0 Replies)
Discussion started by: jiyojith
0 Replies
5. UNIX for Dummies Questions & Answers
hi. im new here. im taking a UNIX OS class and im in need of some help
how do i change my shell in UNIX?
for homework i need to edit the tcshrc file (to include aliases) in my home directory but its not there. so i think switching shells will create the file. am i correct?
I'm using PuTTy.... (1 Reply)
Discussion started by: alpha_centauri
1 Replies
6. AIX
Hello everybody,
plz tell me the command for chaging the date paramater in IBM AIX.. (3 Replies)
Discussion started by: oracle_rajesh_k
3 Replies
7. AIX
Yesterday I complted IBM AIX Certification (000-223). Passed 74% (8 Replies)
Discussion started by: udayn
8 Replies
8. AIX
Hi,
I want to know whether IBM AIX can be installed on the IBM e series and x series server hardware?
Thanks & Regards
Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies
9. AIX
This is the password aging script for aix just completed. So far tested and still testing on one of our aix server running 5.3.0.0. So anyway as you can see it is very similar to pwage-hpux-T the only difference on aix /etc/passwd file looks in this format. Also for this script to work you need to... (0 Replies)
Discussion started by: sparcguy
0 Replies
10. AIX
Hi There,
I have zero information and zero knowledge for IBM virtual machine except Amazon cloud and VMware ESXi (Only Linux OS available).
Anyone could provide me the following answer -
Can IBM VM been deploy on X86 and X64 (Intel Chip)?
If answer is yes any chance to deploy AIX OS... (13 Replies)
Discussion started by: chenyung
13 Replies
CHSH(1) User Commands CHSH(1)
NAME
chsh - change login shell
SYNOPSIS
chsh [options] [LOGIN]
DESCRIPTION
The chsh command changes the user login shell. This determines the name of the user's initial login command. A normal user may only change
the login shell for her own account; the superuser may change the login shell for any account.
OPTIONS
The options which apply to the chsh command are:
-h, --help
Display help message and exit.
-R, --root CHROOT_DIR
Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory.
-s, --shell SHELL
The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.
If the -s option is not selected, chsh operates in an interactive fashion, prompting the user with the current login shell. Enter the new
value to change the shell, or leave the line blank to use the current one. The current shell is displayed between a pair of [ ] marks.
NOTE
The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser,
and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing /bin/rsh
in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell
back to its original value.
FILES
/etc/passwd
User account information.
/etc/shells
List of valid login shells.
/etc/login.defs
Shadow password suite configuration.
SEE ALSO
chfn(1), login.defs(5), passwd(5).
shadow-utils 4.5 01/25/2018 CHSH(1)