su from root

From: Doug Hardie (bc979_at_lafn.org)
Date: 02/26/05

  • Next message: Louis LeBlanc: "Re: Portupgrading - portauditing"
    To: f-questions List <freebsd-questions@freebsd.org>
    Date: Sat, 26 Feb 2005 14:59:10 -0800
    
    

    I have encountered an unusual issue where the behavior is different
    between FreeBSD 4.6 and 5.3. If I login and then su to root
    successfully, then do a su to a non-root user I get:

    pam_login_access: pam_sm_acct_mgmt: user-id is not allowed to log in
    on /dev/ttyv0

    In chasing this down it appears that the restriction is coming from
    login.access which does have a limitation to prevent the non-root user
    from logging in. Only members of the wheel group are permitted to
    login. That restriction is essential to this system. However, I don't
    understand why su is concerned about that. I need su to switch me to
    that user. I suspect this may be controlled by PAM but haven't been
    able to figure out just where that would be. How can I make su work
    like it does in 4.6?

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Louis LeBlanc: "Re: Portupgrading - portauditing"

    Relevant Pages

    • Re: password
      ... To log in as root, ... >> hello ive got a problem login to freebsd. ... passwd: updating the database... ...
      (freebsd-questions)
    • Re: password
      ... > hello ive got a problem login to freebsd. ... Well, if you are right in the middle of the installation process, ... If you are past that stage and you did not create a password for root ...
      (freebsd-questions)
    • Re: Only root is able to login
      ... that only root is able to login to a new FreeBSD 5.2.1 ... Neither login nor su works. ... > Welcome to FreeBSD! ... They won't work without that SUID bit. ...
      (freebsd-questions)
    • Re: Only root is able to login
      ... Thomas Krause wrote: ... that only root is able to login to a new FreeBSD 5.2.1 ... Neither login nor su works. ... > Welcome to FreeBSD! ...
      (freebsd-questions)
    • Re: Only root is able to login
      ... Thomas Krause wrote: ... that only root is able to login to a new FreeBSD 5.2.1 ... Neither login nor su works. ... > Welcome to FreeBSD! ...
      (freebsd-questions)