1354:
1376:
156:
displays a text file in the default editor (initially set to vim) allowing the user to change all of the features of their user account that they are permitted to change, the pathname of the shell being the name next to "Shell:". When the user quits vim, the changes made there are transferred to the
124:
file, with the pathname of the shell being required to be exactly as it appears in that file. (This security feature is alterable by re-compiling the source code for the command with a different configuration option, and thus is not necessarily enabled on all systems.) The superuser can, however,
119:
can modify the shells of other users, by supplying the name of the user whose shell is to be modified as a command-line argument. For security reasons, the shells that both ordinary users and the superuser can specify are limited by the contents of the
1402:
516:
742:
574:
197:-aware application. As such, its behaviour can be tailored, using PAM configuration options, for individual users. For example, an
194:
178:
may or may not prompt the user for a password before changing the shell, or entering interactive mode. On some systems, use of
1407:
1367:
1362:
619:
459:
428:
394:
365:
337:
125:
also modify the password file directly, setting any user's shell to any executable file on the system without reference to
297:
735:
494:
269:
711:
265:
1339:
1309:
690:
1324:
520:
1380:
1085:
754:
728:
720:
650:
1255:
1203:
90:
of the shell that they wish to change to on the command line, or supply no arguments, in which case
329:
72:
60:
55:
928:
918:
705:
268:, where non-administrators are unable to change their shell unless a network name server such as
186:
611:
605:
144:
command-line option (to specify the name of the shell), it prompts the user to select one. On
615:
543:
455:
451:
445:
424:
390:
361:
333:
79:
578:
209:
access to individual users, by specifying a file of the usernames to deny access to with the
1155:
1060:
1055:
575:"SGI - Services & Support: SGI Support of MIPS IRIX Products Continues to December 2013"
321:
277:
87:
39:
1334:
1278:
1183:
984:
887:
560:
17:
322:
1273:
1208:
1193:
1130:
1090:
969:
933:
827:
383:
684:
1396:
1314:
1175:
1110:
882:
857:
758:
1288:
1188:
1105:
1100:
1004:
913:
877:
832:
476:
420:
414:
1224:
1198:
1135:
1125:
1115:
1080:
1070:
1065:
948:
938:
892:
1040:
999:
802:
772:
447:
Linux System
Security: The Administrator's Guide to Open Source Security Tools
83:
29:
1329:
1283:
1263:
1160:
1140:
1095:
943:
867:
852:
837:
822:
817:
812:
807:
116:
115:
file, and only allows ordinary users to modify their own login shells. The
76:
48:
1245:
1025:
715:
698:
677:
660:
145:
1050:
974:
249:
1035:
777:
656:
245:
106:
667:
273:
1268:
1165:
1145:
1075:
994:
897:
872:
847:
797:
792:
787:
782:
694:
673:
253:
225:
1319:
1293:
1229:
1150:
1045:
1030:
989:
979:
923:
751:
281:
241:
44:
724:
1120:
1020:
964:
862:
842:
324:
Learning the Bash Shell: [Unix shell programming]
157:/etc/passwd file which only root can change directly.
182:
by non-root users is disabled entirely by the sysadmin.
561:"User chsh shell change function needed for Solaris"
111:
1302:
1254:
1238:
1217:
1174:
1013:
957:
906:
765:
232:, which are used for modifying the user's entry in
165:
94:allows the user to change the shell interactively.
54:
38:
28:
1403:Unix user management and support-related utilities
382:
244:-based systems provided a similar capability with
171:) greatly simplifies the task of changing shells.
672:: change your login shell β
736:
8:
358:A Practical Guide To Unix For Mac Os X Users
23:
320:Cameron Newham and Bill Rosenblatt (2005).
1375:
743:
729:
721:
22:
16:For the theorem in quantum mechanics, see
607:Developing Bioinformatics Computer Skills
444:Scott Mann and Ellen L. Mitchell (2000).
356:Mark G. Sobell and Peter Seebach (2005).
351:
349:
71:(an abbreviation of "change shell") is a
413:Deborah S. Ray and Eric J. Ray (1998).
309:
248:. Two of the three remaining systems (
604:Cynthia Gibas and Per Jambeck (2001).
315:
313:
213:option to that module (along with the
7:
559:Henry van Cleef (February 4, 2005).
228:does not describe utilities such as
495:"IBM Knowledge Center chsh command"
408:
406:
626:— some examples of invoking
360:. Prentice Hall PTR. p. 448.
236:. Most Unix-like systems provide
14:
519:. Hewlett Packard. Archived from
1374:
1353:
1352:
542:Peter Smulder (March 12, 2000),
475:Nelson Beebe (August 11, 2005).
385:Essential System Administration
86:. Users can either supply the
82:that is used to change a login
450:. Prentice Hall PTR. pp.
1:
201:directive that specifies the
298:Comparison of command shells
276:is installed. The obsolete
419:. Peachpit Press. pp.
205:module can be used to deny
1424:
109:program that modifies the
15:
1348:
389:. O'Reilly. p. 238.
174:Depending on the system,
169:chsh-s/usr/local/bin/bash
148:, if invoked without the
714:User Commands Reference
140:is invoked without the
1408:Standard Unix programs
1368:Unix SUS2008 utilities
1363:Standard Unix programs
755:command-line interface
136:On most systems, when
610:. O'Reilly. pp.
481:command availability"
381:Γleen Frisch (2002).
328:. O'Reilly. pp.
164:option (for example:
1256:Software development
264:. The exception is
523:on January 28, 2015
187:Linux distributions
25:
129:and without using
30:Original author(s)
1390:
1389:
697:General Commands
659:General Commands
80:operating systems
66:
65:
34:Salvatore Valente
1415:
1378:
1377:
1356:
1355:
958:User environment
745:
738:
731:
722:
709:
708:
688:
687:
671:
670:
654:
653:
637:
633:
629:
625:
591:
590:
588:
586:
577:. Archived from
571:
565:
564:
556:
550:
549:
539:
533:
532:
530:
528:
513:
507:
506:
504:
502:
491:
485:
484:
472:
466:
465:
441:
435:
434:
410:
401:
400:
388:
378:
372:
371:
353:
344:
343:
327:
317:
287:
263:
259:
239:
235:
231:
216:
212:
208:
204:
200:
192:
181:
177:
170:
168:
163:
155:
151:
143:
139:
132:
128:
123:
114:
104:
93:
40:Operating system
26:
1423:
1422:
1418:
1417:
1416:
1414:
1413:
1412:
1393:
1392:
1391:
1386:
1344:
1298:
1250:
1234:
1213:
1170:
1014:Text processing
1009:
953:
902:
761:
749:
704:
703:
683:
682:
666:
665:
649:
648:
645:
635:
631:
627:
622:
603:
600:
598:Further reading
595:
594:
584:
582:
581:on July 6, 2009
573:
572:
568:
558:
557:
553:
545:chsh on Solaris
541:
540:
536:
526:
524:
515:
514:
510:
500:
498:
493:
492:
488:
474:
473:
469:
462:
443:
442:
438:
431:
412:
411:
404:
397:
380:
379:
375:
368:
355:
354:
347:
340:
319:
318:
311:
306:
294:
285:
261:
260:in addition to
257:
237:
233:
229:
223:
214:
210:
206:
203:pam_listfile.so
202:
198:
190:
179:
175:
166:
161:
153:
149:
141:
137:
130:
126:
121:
110:
102:
100:
91:
21:
18:CHSH inequality
12:
11:
5:
1421:
1419:
1411:
1410:
1405:
1395:
1394:
1388:
1387:
1385:
1384:
1372:
1371:
1370:
1365:
1349:
1346:
1345:
1343:
1342:
1340:true and false
1337:
1332:
1327:
1322:
1317:
1312:
1306:
1304:
1300:
1299:
1297:
1296:
1291:
1286:
1281:
1276:
1271:
1266:
1260:
1258:
1252:
1251:
1249:
1248:
1242:
1240:
1236:
1235:
1233:
1232:
1227:
1221:
1219:
1215:
1214:
1212:
1211:
1206:
1201:
1196:
1191:
1186:
1180:
1178:
1176:Shell builtins
1172:
1171:
1169:
1168:
1163:
1158:
1153:
1148:
1143:
1138:
1133:
1128:
1123:
1118:
1113:
1108:
1103:
1098:
1093:
1088:
1083:
1078:
1073:
1068:
1063:
1058:
1053:
1048:
1043:
1038:
1033:
1028:
1023:
1017:
1015:
1011:
1010:
1008:
1007:
1002:
997:
992:
987:
982:
977:
972:
967:
961:
959:
955:
954:
952:
951:
946:
941:
936:
931:
926:
921:
916:
910:
908:
904:
903:
901:
900:
895:
890:
885:
880:
875:
870:
865:
860:
855:
850:
845:
840:
835:
830:
825:
820:
815:
810:
805:
800:
795:
790:
785:
780:
775:
769:
767:
763:
762:
759:shell builtins
750:
748:
747:
740:
733:
725:
719:
718:
701:
680:
676:User Commands
663:
644:
643:External links
641:
640:
639:
620:
599:
596:
593:
592:
566:
551:
534:
508:
486:
467:
460:
436:
429:
402:
395:
373:
366:
345:
338:
308:
307:
305:
302:
301:
300:
293:
290:
222:
219:
99:
96:
64:
63:
58:
52:
51:
42:
36:
35:
32:
13:
10:
9:
6:
4:
3:
2:
1420:
1409:
1406:
1404:
1401:
1400:
1398:
1383:
1382:
1373:
1369:
1366:
1364:
1361:
1360:
1359:
1351:
1350:
1347:
1341:
1338:
1336:
1333:
1331:
1328:
1326:
1323:
1321:
1318:
1316:
1313:
1311:
1308:
1307:
1305:
1303:Miscellaneous
1301:
1295:
1292:
1290:
1287:
1285:
1282:
1280:
1277:
1275:
1272:
1270:
1267:
1265:
1262:
1261:
1259:
1257:
1253:
1247:
1244:
1243:
1241:
1239:Documentation
1237:
1231:
1228:
1226:
1223:
1222:
1220:
1216:
1210:
1207:
1205:
1202:
1200:
1197:
1195:
1192:
1190:
1187:
1185:
1182:
1181:
1179:
1177:
1173:
1167:
1164:
1162:
1159:
1157:
1154:
1152:
1149:
1147:
1144:
1142:
1139:
1137:
1134:
1132:
1129:
1127:
1124:
1122:
1119:
1117:
1114:
1112:
1109:
1107:
1104:
1102:
1099:
1097:
1094:
1092:
1089:
1087:
1084:
1082:
1079:
1077:
1074:
1072:
1069:
1067:
1064:
1062:
1059:
1057:
1054:
1052:
1049:
1047:
1044:
1042:
1039:
1037:
1034:
1032:
1029:
1027:
1024:
1022:
1019:
1018:
1016:
1012:
1006:
1003:
1001:
998:
996:
993:
991:
988:
986:
983:
981:
978:
976:
973:
971:
968:
966:
963:
962:
960:
956:
950:
947:
945:
942:
940:
937:
935:
932:
930:
927:
925:
922:
920:
917:
915:
912:
911:
909:
905:
899:
896:
894:
891:
889:
886:
884:
881:
879:
876:
874:
871:
869:
866:
864:
861:
859:
856:
854:
851:
849:
846:
844:
841:
839:
836:
834:
831:
829:
826:
824:
821:
819:
816:
814:
811:
809:
806:
804:
801:
799:
796:
794:
791:
789:
786:
784:
781:
779:
776:
774:
771:
770:
768:
764:
760:
757:programs and
756:
753:
746:
741:
739:
734:
732:
727:
726:
723:
717:
713:
710: β
707:
702:
700:
696:
692:
689: β
686:
681:
679:
675:
669:
664:
662:
658:
655: β
652:
647:
646:
642:
623:
617:
613:
609:
608:
602:
601:
597:
580:
576:
570:
567:
563:. LinuxForum.
562:
555:
552:
547:
546:
538:
535:
522:
518:
512:
509:
496:
490:
487:
482:
480:
471:
468:
463:
457:
453:
449:
448:
440:
437:
432:
426:
422:
418:
417:
409:
407:
403:
398:
392:
387:
386:
377:
374:
369:
363:
359:
352:
350:
346:
341:
335:
331:
326:
325:
316:
314:
310:
303:
299:
296:
295:
291:
289:
283:
279:
275:
271:
267:
255:
251:
247:
243:
227:
220:
218:
196:
193:command is a
188:
183:
172:
158:
147:
134:
118:
113:
108:
97:
95:
89:
85:
81:
78:
74:
70:
62:
59:
57:
53:
50:
46:
43:
41:
37:
33:
31:
27:
19:
1379:
1357:
712:Solaris 11.4
606:
583:. Retrieved
579:the original
569:
554:
548:, LinuxForum
544:
537:
525:. Retrieved
521:the original
511:
499:. Retrieved
489:
478:
470:
446:
439:
415:
384:
376:
357:
323:
284:also lacked
280:SVr4 system
224:
184:
173:
159:
135:
101:
68:
67:
766:File system
585:January 24,
527:January 24,
501:January 24,
234:/etc/passwd
221:Portability
127:/etc/shells
122:/etc/shells
112:/etc/passwd
1397:Categories
1358:Categories
621:1565926641
461:0130158070
430:0201353954
396:0596003439
367:0131863339
339:0596009658
304:References
256:) provide
215:sense=deny
160:Using the
1218:Searching
907:Processes
706:passwd(1)
630:with the
517:"chsh(1)"
262:passwd -e
217:option).
211:listfile=
117:superuser
77:Unix-like
49:Unix-like
1026:basename
292:See also
185:On many
152:option,
146:Mac OS X
88:pathname
1131:strings
1051:dirname
975:logname
924:crontab
685:chsh(1)
668:chsh(1)
651:chsh(1)
638:options
452:101β102
266:Solaris
250:IBM AIX
73:command
61:Command
1111:printf
1036:csplit
778:chattr
716:Manual
699:Manual
691:Darwin
678:Manual
661:Manual
657:4.2BSD
618:
458:
427:
393:
364:
336:
282:IRIX64
246:passwd
189:, the
107:setuid
1335:sleep
1289:strip
1269:ctags
1204:unset
1184:alias
1166:xargs
1146:troff
1106:patch
1101:paste
1076:iconv
1005:write
995:uname
898:umask
888:touch
878:split
873:rmdir
848:mkdir
833:fuser
798:cksum
793:chgrp
788:chown
783:chmod
695:macOS
674:Linux
612:89β90
497:. IBM
254:HP-UX
226:POSIX
105:is a
98:Usage
84:shell
1381:List
1320:expr
1294:yacc
1279:make
1230:grep
1225:find
1209:wait
1199:test
1194:echo
1151:uniq
1136:tail
1126:sort
1116:read
1091:more
1081:join
1071:head
1066:fold
1046:diff
1031:comm
990:tput
985:talk
980:mesg
970:exit
949:time
939:nice
934:kill
893:type
828:file
752:Unix
693:and
634:and
628:chsh
616:ISBN
587:2015
529:2015
503:2015
479:chsh
456:ISBN
425:ISBN
416:Unix
391:ISBN
362:ISBN
334:ISBN
286:chsh
274:NIS+
258:chsh
252:and
242:SVr4
238:chsh
230:chsh
207:chsh
199:auth
191:chsh
180:chsh
176:chsh
154:chsh
138:chsh
131:chsh
103:chsh
92:chsh
69:chsh
56:Type
47:and
45:Unix
24:chsh
1315:cal
1274:lex
1246:man
1121:sed
1041:cut
1021:awk
1000:who
965:env
883:tee
863:pwd
858:pax
803:cmp
773:cat
330:272
278:SGI
272:or
270:NIS
240:.
195:PAM
75:on
1399::
1330:od
1325:lp
1310:bc
1284:nm
1264:ar
1189:cd
1161:wc
1156:vi
1141:tr
1096:nl
1086:m4
1061:ex
1056:ed
944:ps
929:fg
919:bg
914:at
868:rm
853:mv
843:ls
838:ln
823:df
818:du
813:dd
808:cp
636:-l
632:-s
614:.
454:.
423:.
421:47
405:^
348:^
332:.
312:^
288:.
167:%
162:-s
150:-s
142:-s
133:.
744:e
737:t
730:v
624:.
589:.
531:.
505:.
483:.
477:"
464:.
433:.
399:.
370:.
342:.
20:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.