LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Display the "lecture" when login as root with "su -" (https://www.linuxquestions.org/questions/linux-general-1/display-the-lecture-when-login-as-root-with-su-855770/)

angel115 01-12-2011 02:52 AM

Display the "lecture" when login as root with "su -"
 
Hello there,

I was just wondering if there is a way to enable the "lecture" (you know the well know sentence "We trust you have received the usual lecture from ...") when you login as root with the command "su -"

I already activate it in my sudoers file and it works well when I start a command with sudo.

But is it possible to activate it in case the user want to login as root with "su -"?

Code:

sudo su -      (display the lecture message)
su -            (doesn't display the lecture message)

Best regards,
Angel.

kbp 01-12-2011 06:08 AM

I don't think so .. maybe this will do the job ?

angel115 01-17-2011 04:57 AM

That will do,

Thanks,
Angel


All times are GMT -5. The time now is 12:13 AM.