Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop obsolete comment documenting a feature that does not exists #392

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/lib/y2users/autoinst_profile/user_section.rb
Expand Up @@ -89,8 +89,7 @@ def self.attributes
# @return [String,nil] Default shell
#
# @!attribute user_password
# @return [String,nil] User's password. If set to an exclamation mark ('!'),
# a random password is generated. See #encrypted.
# @return [String,nil] User's password.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeap, it is not random, but it disables login with password. Quotation from man page for shadow:

If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the
           user may log in the system by other means).

#
# @!attribute encrypted
# @return [Boolean,nil] Determine whether #user_password is encrypted or not.
Expand Down