Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

lchsh - Change login shell

Bugs

lchsh ignores /etc/shells.

libuser                                            Sep 20 2004                                          lchsh(1)

Description

       Displays and allows changing login shell of user.

       If the user argument is not provided, username of the invoking user is used; the user argument is ignored
       if lchsh is run set-uid to a different user.

       Entering  an  empty  string (by pressing Enter) at the "New Shell" prompt is interpreted as accepting the
       current value.

Exit Status

       The exit status is 0 on success, 1 on error.

Name

       lchsh - Change login shell

Options

-i, --interactive
              Ask all questions when connecting to the user database, even if default  answers  are  set  up  in
              libuser configuration.

Synopsis

       lchsh [OPTION]... [user]

See Also