04-07-2009
$SHELL, the name of the user's login shell, may be set from /etc/passwd or in an "init" script
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
When i was trying to store a file of size 743 MB into a directory i got a msg. that the disk is full. But when i used the df -k . command on that directory it showed only 40% in usage and the disk had more than enough memory for the file. When i checked the syslog i found that at that instant of... (2 Replies)
Discussion started by: spdas
2 Replies
2. Shell Programming and Scripting
Input File:
1234567890123456789012345678901234
----------------------------------
11111 XXX xxxxx 6666666666
22222 YYY 2222222222
33333 AAA TTT xxxxx 9999999999
44444
55555 RRR UUU 5555555555
66666 TTT nnnnn 2222222222
77777 XXX ... (4 Replies)
Discussion started by: lordsmiter
4 Replies
3. UNIX for Advanced & Expert Users
Hi
I'm executing a menu script in which I `cat a file` but it's giving different output some times. Following is the code fragment taken from my script.
while true
do
cat procs.configured
echo ---------separator--------------
sleep 3
done
when I execute this code fragment, `cat` outputs... (2 Replies)
Discussion started by: axes
2 Replies
4. Shell Programming and Scripting
The command ps -eaf gives inconsistent result when executed on XYZ server (the command shows 1, 2 or 3 instances of the process. Ideally it should show only 1). I have attached the script file that was executed and the corresponding output. When the same script was executed on ABC server it gave... (1 Reply)
Discussion started by: rebels
1 Replies
5. Shell Programming and Scripting
I have an input list of:
I am just trying to turn this list into its seconds since epoch "+%s" time equivalent. I'm trying to use the following, but every time I run the command it gives me different answers, they are close, but never the same... any clues as to why?
xargs -I{} date -j -f... (3 Replies)
Discussion started by: mdlloyd7
3 Replies
6. Shell Programming and Scripting
Hi,
I have a file that has inconsistently numbered columns.
Like row1 has 23 columns, and row 2 has 34 columns etc.
I would like to re-order the first 8 columns as required and from the 9th column till the end, I would like to print it as it is.
I tried to read the re-ordered 8 columns... (7 Replies)
Discussion started by: jacobs.smith
7 Replies
7. UNIX for Advanced & Expert Users
Hi Experts,
I have an issue with performance of oracle, the db sits on EBS volumes on and aws EC2 instance. I have captured the iostat data and feed it to iostat_plotter to forward it to the DB administrators. However what I'm trying to understand is the variable avgrq-sz, it is quite in... (0 Replies)
Discussion started by: maverick_here
0 Replies
8. Shell Programming and Scripting
I'm trying to sort the list below, so that multiple instances of the form
pass=i_d=j
are contiguous. Curiously, the standard sort command to do this works some of the time (it produced the output below) but not all of the time.
the command I used was
cat fileName | sort -k1.26,1.26n... (3 Replies)
Discussion started by: LeoKSimon
3 Replies
9. UNIX for Advanced & Expert Users
On one of the Unix server B.11.31. a disk that has been provisioned from the VMAX, but according to the diskinfo its show coming from clarion.
sudo /opt/emc/SYMCLI/bin/symvg sho /dev/vg_<name>
Volume Group Name : /dev/vg_<name>
Volume Group Type : HP-UX LVM
Volume Group State ... (0 Replies)
Discussion started by: kpatel786
0 Replies
10. UNIX for Beginners Questions & Answers
Could you please advise on the following: I have two space-delimited files with 9 and 10 columns, respectively, with exactly the same values in column 1. However, the order of column 1 differs between the two files, so I want to sort both files by column 1, so that I can align them and... (6 Replies)
Discussion started by: aberg
6 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)