Re: login.cfg and ODM



On Tue, Mar 11, 2008 at 06:23:02PM -0400, Little Guru wrote:
our user needs to change the temporary password that we have assigned.

he can do it when /usr/false is assigned to user's shell,
but when we lock the account no one can login, therefore there will be
no password change prompt.

When root sets a new users password, the ADMCHG flag gets set in
/etc/security/passwd for that user. The user can't proceed with login without
setting their password. If you require strict rules for password settings,
see the /etc/security/user file.

we are looking to have a user like nobody, who can run some
processes but no one can login with that user id.

I would look into 'sudo', or a restricted shell for the user. You don't
really want generic accounts issuing commands without being able to audit
who is logging in.

tried to set "user can login" and "user can login remotely" to false
but it does not let me change the temp password.

My main concern was changing login.cfg manually.
it there any command that will add additional shell to login.cfg.

You can change it by hand.

I read a document that was saying if we change any conf file
that is in ODM, server will have problem in future as the config
in ODM is different to actual conf file.

There is nothing in the ODM for these files.

hth,

bob



Relevant Pages

  • Environment Poisoning and login -p
    ... login -p can be used to propagate environment flags ... in order to trojan the user shell of the target account. ... I will note that in -CURRENT, both "nologin" and /bin/sh ...
    (FreeBSD-Security)
  • Re: Dangers of using a non-base shell
    ... The suggested solution was to use a base shell and ... The root account has a duplicate `toor'. ... change `toor' login shell to their preferred, ... I decided to try TCSH: ...
    (freebsd-questions)
  • Re: [Q] create account which can ONLY transfer file use ssh???
    ... Don't think you can use scp because that requires a shell. ... account--create an account with an invalid shell like /bin/false. ... could "login" using sftp. ...
    (comp.unix.solaris)
  • Re: Limit user login to only one time ever
    ... >> kill the shell so it doesn't execute .bash_logout. ... > #0 for login or 1 for no login ... After new remote user logs in and copies file the ... account and files will be deleted, or after N period of time account ...
    (comp.os.linux.security)
  • Re: Limit user login to only one time ever
    ... >> kill the shell so it doesn't execute .bash_logout. ... > #0 for login or 1 for no login ... After new remote user logs in and copies file the ... account and files will be deleted, or after N period of time account ...
    (comp.os.linux.security)