UNIX security questions
Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: UNIX security questions

  1. #1

    UNIX security questions

    does anybody her know off hand how to make the UNIX box (Freebsd 4.3) display messages when you get a login prompt? Looked everywhere and couldn't find it

  2. #2
    Senior Member linuxcomando's Avatar
    Join Date
    Sep 2001
    Posts
    432
    Hey dude just edit the /etc/motd file.

  3. #3
    Originally posted here by linuxcomando
    Hey dude just edit the /etc/motd file.
    I DO need to change /etc/motd but what I want to do is get the box to display a message when a user sees a login prompt (ex. an unauthorised usage warning)

  4. #4
    Senior Member linuxcomando's Avatar
    Join Date
    Sep 2001
    Posts
    432
    Oh ok heres how yah do it then
    Create a file with the message you wish to display, say /etc/issue. Give it 644 permissions.
    Open (as root) /etc/gettytab with a text editor and add to the section that says "default" if=/etc/issue: and save the file. Note that the entries are separated by colons and the section ends with a colon Instead of using if as in 2a, add your message to the im variable and put a \n after it for a newline. You can do this before or after the other stuff, which determines whether it will come before or after the line listing the operating system and so forth. Be sure you don't split the "default" line into more than one line; use \r, \n, and \t to format your message. Beware pico, with its automatic wrap. You should not need to get gettytab reread by restarting init, which you could do either by rebooting (a last resort) or sending init a signal to restart with kill -1 1 (init is always process 1). Note that you can't test by logging in from an existing prompt; you need to test it from the outside or by using the command telnet localhost
    You can also create a message attached to the P|Pc|Pc console:\ entry in gettytab with an if=etc/issuemsg: added to the next line that will show up internally.

  5. #5
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,255
    Ratman, you're looking for the /etc/issue file... Anything you put in there will be displayed on the login screen before you log in.
    Chris Shepherd
    The Nelson-Shepherd cutoff: The point at which you realise someone is an idiot while trying to help them.
    \"Well as far as the spelling, I speak fluently both your native languages. Do you even can try spell mine ?\" -- Failed Insult
    Is your whole family retarded, or did they just catch it from you?

  6. #6
    Originally posted here by chsh
    Ratman, you're looking for the /etc/issue file... Anything you put in there will be displayed on the login screen before you log in.
    It won't display what's in that file, don't know why

  7. #7
    Senior Member linuxcomando's Avatar
    Join Date
    Sep 2001
    Posts
    432
    Then follow my post and create it.
    I toor\'d YOU!

  8. #8
    Here's the current contents of the gettytab default line:

    default:\
    :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\
    :if=/etc/issue:

    and here is /etc/issue:
    *******************************************************************************
    WARNING: Use of this UNIX workstation is restricted to AUTHORIZED users ONLY.
    Users activities may be monitored at ALL TIMES. Unauthorized useage of this
    workstation WILL BE PROSECUTED!!!!!!!!
    *******************************************************************************

    FreeBSD 4.3/i386

  9. #9
    Senior Member linuxcomando's Avatar
    Join Date
    Sep 2001
    Posts
    432
    So did it work?
    I toor\'d YOU!

  10. #10
    nope....and that's what I don't get

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •