Class: Getch::Config::Account
- Inherits:
-
Object
- Object
- Getch::Config::Account
- Defined in:
- lib/getch/config/account.rb
Instance Method Summary collapse
-
#initialize ⇒ Account
constructor
A new instance of Account.
- #new_user ⇒ Object
- #root ⇒ Object
Constructor Details
Instance Method Details
#new_user ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/getch/config/account.rb', line 16 def new_user return unless @user create_user @log.info "Add a password for #{@user}.\n" ChrootOutput.new("passwd #{@user}") fix_perm end |
#root ⇒ Object
11 12 13 14 |
# File 'lib/getch/config/account.rb', line 11 def root @log.info "Add a password for root.\n" ChrootOutput.new('passwd') end |