ADD-SHELL(8)

๐Ÿ“ฆ
version 5.24 ยท 3 versions
, in debian trixie, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

๐Ÿ’– ADD-SHELL(8) ๐Ÿ’–

bestie, this page is about add-shell, and it's giving list management ๐Ÿ’… It adds shells to the list of valid login shells โœจ


โœจ SYNOPSIS โœจ

add-shell shellname [shellname...]

๐ŸŽ€ DESCRIPTION ๐ŸŽ€

okay so add-shell goes and grabs /etc/shells and makes a copy called /etc/shells.tmp ๐Ÿ“„ then it adds whatever shells you give it into that temp file, but only if they aren't already in there ๐Ÿ™…โ€โ™€๏ธ and then it copies the temp file right back over /etc/shells. the whole thing is so clean ngl ๐Ÿซถ

the shells you pass in have to be given by their full pathnames. no shortcuts, no "just bash" ๐Ÿ’€ type the whole path or it won't slay.

๐ŸŒธ ENVIRONMENT ๐ŸŒธ

  • DPKG_ROOT lowkey the main environment variable here ๐Ÿงš it sets the base path that /etc/shells lives under.

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

  • shells(5) ๐Ÿ“– go read this one if you want the deeper lore on the shells file ๐Ÿ“

bestie, that's the whole page ๐Ÿ’œ we're signing off with the vibes from System Manager's Manual, the ADD-SHELL(8) page, dated 23 Sep 2021 ๐ŸŒˆ stay iconic and keep your shells fully pathed ๐Ÿซถโœจ