04-23-2009
You didn't indicate what release of Linux/Unix you were using.
Check man pages for pam_login.
some setting may come from /etc/login.defs
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm using Linux-Mandrake 8.0 in my laptop. After I logged in as a "root", I added a new path in my .bashrc file (I use bash shell). Then I can observe it has been set correctly by typing echo $PATH.
But, when I log in again as a personal account, not "root", then I open my bash shell, and type... (5 Replies)
Discussion started by: yishen
5 Replies
2. UNIX for Dummies Questions & Answers
I am a corporate user of Solaris ?? I have to write a lot of scripts to do little repetitive actions. To make this easier I would like to set the PATH so that I do not have to type ./ first before the script name.
Is there an easy script that will allow me to set this path when I log in???
... (2 Replies)
Discussion started by: jagannatha
2 Replies
3. Solaris
hi
how do i change the default PATH in my system.
i log in as root, and i have .profile file in my / directory. ive put the PATH=.:/usr.......... statement, but that doesnt seem to be working
i also wanted to know why exactly we need the profile file in etc? (6 Replies)
Discussion started by: strider
6 Replies
4. UNIX for Dummies Questions & Answers
Hey eveyone, I am new to unix, and I just installed java 6, however it doesn't recognize javac command
I tried to set the path such as:
set path="/usr/java/jdk1.6.0_06/bin/
but i still got the same error message.
any ideas?
-andi (1 Reply)
Discussion started by: adtd8
1 Replies
5. Solaris
Hi,
I want to set the path for my application so I am setting the path as below --
PATH=${PATH}:.:/envs/mldev/tools:/envs/mldev/common/tools:${HOME}:/bin/p4v:/usr/j2se:/usr/j2se/bin:/usr/j2se/lib
or
PATH="\
/usr/bin:\
/usr/sbin:\
/usr/dt/bin:\
... (7 Replies)
Discussion started by: smartgupta
7 Replies
6. Solaris
Hi all,
I am trying ping command in SUN v240 server but it is not working
but when i am using the full path
/usr/sbin/ping <ip address> then it is working.
how to set the path of ping command so that by simply typing
ping <ip address>
it should work ?
Plz help me out:( (7 Replies)
Discussion started by: saurabh84g
7 Replies
7. UNIX for Dummies Questions & Answers
Very new to this type of thing so go easy on me.......
I have downloaded a command language for data display.
It came as ncl_ncarg-5.2.1.MacOS_10.6_i386_64bit_gcc421.tar.gz and I unzipped/tarred it into my local directory.
The new directory, ncl_ncarg-5.2.1.MacOS_10.6_i386_64bit_gcc421,... (7 Replies)
Discussion started by: davcra
7 Replies
8. UNIX for Dummies Questions & Answers
Something changed on my unix box.
Now when I log in it is showing entire path. It used to show only $ prompt before.
I know I need to do something in .profile to show only $ prompt
Could you please tell me what I should do, to show only $ prompt. (4 Replies)
Discussion started by: raopatwari
4 Replies
9. UNIX for Dummies Questions & Answers
OS Platform : Oracle Linux 6.5
We are creating a shell script to purge old log files . It uses find command with rm in it.
The syntax is
find <Path of Log Directory> -exec rm -fr {} \;
Example:
find /tmp/test3 -exec rm -fr {} \;
For rm command , we use -r option to... (4 Replies)
Discussion started by: kraljic
4 Replies
10. Shell Programming and Scripting
Hi Folks -
I was wondering if you could help convert batch code in Linux? For instance, I use the following piece of code in DOS to find a file/executable, and then the FULL path as a variable.
::-- If startMaxl.exe exists, set full path --::
for %%D in (c d e f g h i j k l m n o p q r s t... (4 Replies)
Discussion started by: SIMMS7400
4 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)